Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

server: add max one peer count balance support. #173

Merged
merged 1 commit into from
Jul 1, 2016

Conversation

qiuyesuifeng
Copy link
Contributor

No description provided.

// only need to add new peer and remove leader peer.
meta := cluster.getMeta()
if meta.GetMaxPeerCount() == 1 {
addPeerOperator := newAddPeerOperator(regionID, newPeer)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When the new peer is added, will pd remove one peer automatically?

@siddontang
Copy link
Contributor

LGTM

1 similar comment
@shenli
Copy link
Member

shenli commented Jul 1, 2016

LGTM

@qiuyesuifeng qiuyesuifeng merged commit 098669f into master Jul 1, 2016
@qiuyesuifeng qiuyesuifeng deleted the qiuyesuifeng/max-peer-one branch July 1, 2016 05:21
rleungx pushed a commit to rleungx/pd that referenced this pull request Dec 1, 2023
* pd-ctl: make `TestShowKeyspaceGroupPrimary` stable (tikv#6903)

close tikv#6783

Signed-off-by: lhy1024 <admin@liudos.us>

Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>

* pd-ctl: fix keyspace group split hang when pd is in pd-mode (tikv#6907)

close tikv#6906

Signed-off-by: lhy1024 <admin@liudos.us>

Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
Signed-off-by: lhy1024 <admin@liudos.us>

* mcs/tso: add log to show the progress of group cleaning up (tikv#6971)

ref tikv#6589

Add log to show the progress of group cleaning up.

Signed-off-by: JmPotato <ghzpotato@gmail.com>

* etcdutil, leadership: use RequestProgress in watch loop (tikv#6961)

close tikv#6889

Signed-off-by: lhy1024 <admin@liudos.us>

---------

Signed-off-by: lhy1024 <admin@liudos.us>
Signed-off-by: JmPotato <ghzpotato@gmail.com>
Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
Co-authored-by: JmPotato <ghzpotato@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants