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

Stop fold when a vnode reaches page size #586

Merged
merged 1 commit into from Jun 25, 2013

Conversation

engelsanchez
Copy link
Contributor

Currently, 2i pagination may, with a sufficiently slow participating
node, receive many, many more keys than the page size (max_results) from
all the other participating nodes.
This change will track how many results have been received per vnode,
and send a stop fold message to a vnode as soon as it has sent more than
max_results.
Note, however, that vnodes will send in chunks possibly much larger than
the page size (100 items at a time I believe). It would be ideal to pass
max_results to the folding function and have it stop when it reaches
that number. But that will have to wait until later. Release is near.
This should at least help prevent a worst case of unbounded growth that could
consume all the node memory simply because one node is too slow.

/cc @russelldb @jtuple @evanmcc @jrwest

Currently, 2i pagination may, with a sufficiently slow participating
node, receive many, many more keys than the page size (max_results) from
all the other participating nodes.
This change will track how many results have been received per vnode,
and send a stop fold message to a vnode as soon as it has sent more than
max_results.
Note, however, that vnodes will send in chunks possibly much larger than
the page size (100 items at a time I believe). It would be ideal to pass
max_results to the folding function and have it stop when it reaches
that number. But that will have to wait until later. Release is near.
This should at least prevent a worst case of unbounded growth that could
consume all the node memory
@russelldb
Copy link
Member

Looks good to me. A sensible addition.

engelsanchez added a commit that referenced this pull request Jun 25, 2013
Stop fold when a vnode reaches page size
@engelsanchez engelsanchez merged commit 89177c7 into master Jun 25, 2013
@engelsanchez engelsanchez deleted the eas-2i-pag-per-vnode-limit branch June 25, 2013 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants