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

Reduce conflict potential between rebuilding and queries #3047

Merged
merged 2 commits into from Mar 31, 2023

Conversation

dominiklohmann
Copy link
Member

With a large value in vast.rebuild.parallel or vast.automatic-rebuild and a low value in vast.max-queries, VAST may end up in a state in which the state at which it is able to respond to queries is limited by the speed at which it is able to rebuild.

This fixes that issue, and then adds some additional logging that helped find this bug.

@dominiklohmann dominiklohmann added the bug Incorrect behavior label Mar 30, 2023
@dominiklohmann dominiklohmann requested review from tobim and patszt and removed request for tobim March 30, 2023 16:42
Rather than treating high as 4x medium and that as 25x low, we now
always use a scaling factor of 1000x between query priorities, and
consider partition transforms to have a priority of zero. In addition,
we now prefer partitions with more related queries over those with fewer
related queries given an otherwise equal priority. This reduces the
conflict potentual between rebuilds, compaction, and queries.

Additionally, this commit adds logs for the number of scheduled
partitions by the index, which helped debug this issue and is generally
worth having.
@dominiklohmann dominiklohmann force-pushed the topic/partition-transform-priority branch from 0b95819 to 4dfdaae Compare March 31, 2023 07:48
Copy link
Member

@tobim tobim left a comment

Choose a reason for hiding this comment

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

It's good that we fix this issue, albeit with a band-aid. However I would like to avoid allowing an even bigger value space for priorities at the same time.

When we refactor the catalog we should eventually change this so rebuilds don't appear as queries any more to avoid similar problems in the future.

libvast/include/vast/query_context.hpp Show resolved Hide resolved
dominiklohmann added a commit that referenced this pull request Mar 31, 2023
This PR backports #3047 and prepares the repository for a new patch
release on the v2.4.x branch.
@dominiklohmann dominiklohmann merged commit fc2167b into main Mar 31, 2023
38 of 39 checks passed
@dominiklohmann dominiklohmann deleted the topic/partition-transform-priority branch March 31, 2023 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Incorrect behavior
Projects
None yet
3 participants