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

pd: speed up reconnecting to a pd leader #2207

Merged
merged 5 commits into from Aug 29, 2017

Conversation

Projects
None yet
3 participants
@overvenus
Member

overvenus commented Aug 24, 2017

Client may spend a lot to time to reconnect when the pd leader is isolated. Speed it up by adding a timeout.
Also it puts the previous leader at the last when reconnecting.

@overvenus overvenus requested review from siddontang, BusyJay and disksing Aug 24, 2017

Show outdated Hide outdated src/pd/util.rs
@siddontang

This comment has been minimized.

Show comment
Hide comment
@siddontang

siddontang Aug 28, 2017

Contributor

LGTM

Contributor

siddontang commented Aug 28, 2017

LGTM

@disksing

This comment has been minimized.

Show comment
Hide comment
@disksing

disksing Aug 29, 2017

Contributor

LGTM.

Contributor

disksing commented Aug 29, 2017

LGTM.

@disksing disksing merged commit fcc693c into master Aug 29, 2017

2 checks passed

ci/circleci Your tests passed on CircleCI!
Details
license/cla Contributor License Agreement is signed.
Details

@disksing disksing deleted the ov/pd-conn-timeout branch Aug 29, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment