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

Add participate_in_2i_coverage riak option #917

Merged
merged 1 commit into from
Mar 22, 2018
Merged

Add participate_in_2i_coverage riak option #917

merged 1 commit into from
Mar 22, 2018

Conversation

russelldb
Copy link
Member

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.

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),
Copy link

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.

@ghost
Copy link

ghost commented Mar 4, 2018

The structure looks OK - but I notice there are no tests for this new functionality - are they in a separate repository?

@ghost
Copy link

ghost commented Mar 4, 2018

Duh, just read comments above.

@russelldb
Copy link
Member Author

Don't you think maybe your comments about the schema from basho/riak_kv#1664 should be on this PR?

@ghost
Copy link

ghost commented Mar 5, 2018

I don't mind which PR is used to do it. the cuttlefish one could be merged in (to here) first.

@russelldb
Copy link
Member Author

I don't understand.

@ranisen
Copy link
Contributor

ranisen commented Mar 21, 2018

Looks ok for me.

@russelldb russelldb merged commit 94d9d6d into basho:develop-2.2 Mar 22, 2018
@russelldb russelldb deleted the rs-participate-in-2i-coverage-rebase branch March 22, 2018 16:46
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.

2 participants