Skip to content

CockroachDB: Optimize quota manager by using follower reads#2853

Merged
AlCutter merged 1 commit intogoogle:masterfrom
equinixmetal-security:crdb-quota-follower-read
Nov 25, 2022
Merged

CockroachDB: Optimize quota manager by using follower reads#2853
AlCutter merged 1 commit intogoogle:masterfrom
equinixmetal-security:crdb-quota-follower-read

Conversation

@JAORMX
Copy link
Copy Markdown
Contributor

@JAORMX JAORMX commented Nov 23, 2022

This takes into use CockroachDB's follower reads feature [1] which
allows for the expensive SELECT query to be executed on a local node
instead of the leader. This reduces latency for multi-region
deployments; though it slows down the tests as we now allow for some
time for the database writes to converge.

[1] https://www.cockroachlabs.com/docs/stable/follower-reads.html#when-to-use-exact-staleness-reads

Checklist

This takes into use CockroachDB's follower reads feature [1] which
allows for the expensive `SELECT` query to be executed on a local node
instead of the leader. This reduces latency for multi-region
deployments; though it slows down the tests as we now allow for some
time for the database writes to converge.

[1] https://www.cockroachlabs.com/docs/stable/follower-reads.html#when-to-use-exact-staleness-reads

Signed-off-by: Juan Antonio Osorio <juan.osoriorobles@eu.equinix.com>
@JAORMX JAORMX requested a review from a team as a code owner November 23, 2022 12:25
@JAORMX JAORMX requested a review from pphaneuf November 23, 2022 12:25
@roger2hk
Copy link
Copy Markdown
Contributor

/gcbrun

@roger2hk roger2hk requested review from AlCutter and removed request for pphaneuf November 23, 2022 13:08
@AlCutter AlCutter merged commit 8cfc251 into google:master Nov 25, 2022
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.

3 participants