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

Implement key count estimation via AAE trees #1030

Merged
merged 2 commits into from Dec 19, 2014
Merged

Conversation

jtuple
Copy link
Contributor

@jtuple jtuple commented Oct 7, 2014

This pull-request updates riak_kv_index_hashtree to provide an API around the new AAE-based key count estimation feature added to the hashtree module in riak_core.

This provides a mechanism to estimate the number of keys in a given K/V vnode based on its AAE trees.

This estimate is used to enable an improvement in the operation of AAE-based fullsync replication in Riak Enterprise.

Sibling pull-requests: basho/riak_core#633, basho/riak_repl#623

Mikael Lixenstrand and others added 2 commits October 6, 2014 19:16
This commit updates riak_kv_index_hashtree to provide an API around
the new AAE-based key count estimation feature added to the hashtree
module in riak_core.

This provides a mechanism to estimate the number of keys in a given K/V
vnode based on its AAE trees.

This estimate is used to enable an improvement in the operation of
AAE-based fullsync replication in Riak Enterprise.

Authored-by: Mikael Lixenstrand <mikael.lixenstrand@erlang-solutions.com>
Rebased-by:  Joseph Blomstedt <joe@basho.com>
This commit changes riak_kv_index_hashtree to return not_responsible
when provided an illegal IndexN in estimate_keys/2. Prior to this
commit, an invalid IndexN would cause the hashtree process to crash.

Authored-by: Kresten Krab Thorup <krab@trifork.com>
Rebased-by:  Joseph Blomstedt <joe@basho.com>
@engelsanchez
Copy link
Contributor

👍 5b47019

@engelsanchez
Copy link
Contributor

@borshop merge

borshop added a commit that referenced this pull request Dec 19, 2014
Implement key count estimation via AAE trees

Reviewed-by: engelsanchez
@borshop borshop merged commit 5b47019 into 2.0 Dec 19, 2014
@seancribbs seancribbs deleted the feature/aae-estimate-keys branch April 1, 2015 23:38
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