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

vtgateproxy: sticky random balancer and remote zone backup connections v19 #598

Merged
merged 4 commits into from
Feb 6, 2025

Conversation

dedelala
Copy link

@dedelala dedelala commented Feb 5, 2025

#593 onto vtgateproxy v19

add test coverage

#593)

* gist of the idea of a sticky_random balancer

* make sticky_random actually work

* include the zone locality in the address attributes

Make it available to the picker layer along with the pool type. Also rework how
the locality is computed to do it as part of building the target host rather
than deferring the comparisons to the sorter.

* include IsLocal in debug output

* add support for local zone affinity to sticky_random

Using the zone local attribute inhjected by discovery (if it exists), update
sticky_random so that it biases to only use the local zone connections if there
are any available, otherwise fall back to remote.

* add num_backup_conns option to force discovery of non-zone-local vtgates
@dedelala dedelala requested a review from a team as a code owner February 5, 2025 03:02
@github-actions github-actions bot added this to the v19.0.7 milestone Feb 5, 2025
@dedelala dedelala force-pushed the vtgateproxy-v19-593 branch from cc699bb to 36e1d94 Compare February 5, 2025 04:46
@dedelala dedelala merged commit aa0835a into vtgateproxy-v19 Feb 6, 2025
17 of 165 checks passed
@dedelala dedelala deleted the vtgateproxy-v19-593 branch February 6, 2025 23:18
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