-
Notifications
You must be signed in to change notification settings - Fork 393
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
Add participate_in_2i_coverage riak option #917
Add participate_in_2i_coverage riak option #917
Conversation
Allows marking of nodes 'down' in calculations for 2i coverage queries. In create_plan, it queries each node for the value of the participate_in_2i_coverage and treats those with the value set explicitly to `false` as 'down' for the calculation of avaiable vnodes. See related riak_kv commit that adds a default value to the KV schema. This is an operator feature. The operator must bring down the node, change the config, and start the node, for it to have effect.
@@ -159,7 +159,13 @@ standard_join(Node, Ring, Rejoin, Auto) -> | |||
node(), | |||
gossip_vsn, | |||
GossipVsn), | |||
{_, Ring5} = riak_core_capability:update_ring(Ring4), | |||
ParticipateInCoverage = app_helper:get_env(riak_core,participate_in_coverage), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All this Ring2, Ring3, Ring4, Ring4a, Ring5, Ring6 might be nicer as a fold - but that's outside the scope of this change request.
The structure looks OK - but I notice there are no tests for this new functionality - are they in a separate repository? |
Duh, just read comments above. |
Don't you think maybe your comments about the schema from basho/riak_kv#1664 should be on this PR? |
I don't mind which PR is used to do it. the cuttlefish one could be merged in (to here) first. |
I don't understand. |
Looks ok for me. |
Allows marking of nodes 'down' in calculations for 2i coverage
queries. In create_plan, it queries each node for the value of the
participate_in_2i_coverage and treats those with the value set
explicitly to
false
as 'down' for the calculation of avaiablevnodes.
See related riak_kv commit that adds a default value to the KV schema.
This is an operator feature. The operator must bring down the node,
change the config, and start the node, for it to have effect.