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

Set a better default for maxP and fix maxP value after bootstrap. #97

Merged
merged 1 commit into from Feb 10, 2016

Conversation

severb
Copy link
Contributor

@severb severb commented Feb 8, 2016

Two things going on:

  • maxP should never be lower than 15, considering the math used to adjust it.
  • after bootstrap, the initial value for maxP doesn't reflect the ring size.

@severb
Copy link
Contributor Author

severb commented Feb 9, 2016

It's worth noting that the if condition I removed doesn't appear in the node codebase.

@CorgiMan
Copy link
Contributor

CorgiMan commented Feb 9, 2016

That's a useful comment, thanks 👍

s.node.Bootstrap(&BootstrapOptions{
Hosts: bootstrapList,
Stopped: true,
})
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we test here that maxP of s.node is not smaller than pFactor?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeap!

@CorgiMan
Copy link
Contributor

CorgiMan commented Feb 9, 2016

lgtm except the one comment. Have you tested with tickcluster etc? Are there effects on number of full syncs? I'll rebase your work on mine and test it on the cluster as soon as Ben's change has landed

@severb
Copy link
Contributor Author

severb commented Feb 9, 2016

@CorgiMan Good question. Here's how the full syncs look now (each cell has the number of observed full syncs):

cluster size (nodes) 1st run 2nd run 3rd run 4th run 5th run
3 0 0 0 0 0
5 1 0 0 0 0
15 0 3 1 0 0
45 15 2 1 6 2

I'd say it's a good improvement over what we used to see before.

@dansimau
Copy link
Contributor

dansimau commented Feb 9, 2016

How did you gather these metrics? Can you post the command/script? It would be interesting for all to see.

@severb
Copy link
Contributor Author

severb commented Feb 9, 2016

@dansimau I've run tickcluster with different cluster sizes and counted the number of full sync log messages printed until the cluster converged. It's all manual. ☕

@dansimau
Copy link
Contributor

dansimau commented Feb 9, 2016

MANUAL!??? I'm disgusted. 😉

@thanodnl
Copy link
Contributor

thanodnl commented Feb 9, 2016

lgtm

@CorgiMan
Copy link
Contributor

CorgiMan commented Feb 9, 2016

lgtm, before merging, let me deploy on ringpopd-go

@severb
Copy link
Contributor Author

severb commented Feb 9, 2016

Thanks! I'll wait with the merge.

@CorgiMan
Copy link
Contributor

Let's get the Merge!

@severb severb merged commit 2f8e4bc into master Feb 10, 2016
severb pushed a commit that referenced this pull request Feb 10, 2016
@severb severb deleted the fix/maxP branch February 10, 2016 15:44
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.

None yet

4 participants