Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

feat: support single replica #932

Merged
merged 1 commit into from
Oct 9, 2021

Conversation

empiredan
Copy link
Contributor

As is well known, it's not reliable enough for most replication protocols that a table has only one replica, or just two replicas. However, considering the cost, some of our customers choose to set single replica, or double replicas for a table.

In fact, PacificA Protocol can support single replica or double replicas well. Therefore, to support single replica, we can just eliminate the restriction while creating a table.

On the other hand, as described in apache/incubator-pegasus#820, now greedy_load_balancer cannot support single replica or double replicas well, since if a cluster has only one replica server, or two replica servers, meta server will core dump. By this PR, meta server will run normally when a cluster a cluster has one or two replica servers, especially when min_live_node_count_for_unfreeze is set to 1.

@levy5307
Copy link
Contributor

levy5307 commented Oct 9, 2021

LGTM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants