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

kvserver: delay range quiescence #103266

Merged
merged 2 commits into from May 18, 2023

Commits on May 14, 2023

  1. kvserver: move testingDisableQuiescence to replica_raft_quiesce.go

    Epic: none
    Release note: None
    erikgrinaker committed May 14, 2023
    Configuration menu
    Copy the full SHA
    be4ee00 View commit details
    Browse the repository at this point in the history
  2. kvserver: delay range quiescence

    This patch only quiesces ranges after 6 ticks (3 seconds) without any
    proposals, configurable via `COCKROACH_QUIESCE_AFTER_TICKS`.
    Unquiescence incurs a proposal, which has a non-negligible cost, and on
    low-latency clusters with steady write load this may otherwise
    (un)quiesce ranges very frequently, as often as every tick.
    
    Epic: none
    Release note (performance improvement): ranges now only quiesce after 3
    seconds without proposals, to avoid frequent unquiescence which incurs
    an additional Raft proposal. This is configurable via
    `COCKROACH_QUIESCE_AFTER_TICKS` which defaults to 6.
    erikgrinaker committed May 14, 2023
    Configuration menu
    Copy the full SHA
    da5be73 View commit details
    Browse the repository at this point in the history