Skip to content

Use a Qorb pool to choose pantry clients - #6822

Merged
jgallagher merged 5 commits into
mainfrom
john/qorb-pantry
Oct 11, 2024
Merged

jgallagher merged 5 commits into
mainfrom
john/qorb-pantry

Conversation

@jgallagher

Copy link
Copy Markdown
Contributor

The meat of this PR is the change in implementation of get_pantry_address: instead of asking our internal DNS resolver to look up a crucible pantry (which does not randomize, so in practice we always get whichever pantry the DNS server listed first), we ask a Qorb connection pool for the address of a healthy client. get_pantry_address itself does not use the client directly and only cares about its address, but the pool does keep a client around so that it can call pantry_status() as a health check. (It doesn't look at the contents of the result; only whether or not the request succeeded - @jmpesp if that should be more refined, please say so.)

This partially addresses #3763; once this lands, if a pantry is down or unhealthy but still present in DNS (i.e., not expunged), Qorb + the status health checks should mean we'll pick a different pantry for new operations, instead of the current behavior of always sticking to the first pantry in DNS.

@jgallagher
jgallagher requested review from jmpesp and smklein October 10, 2024 18:53

@smklein smklein left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good to me!

jgallagher and others added 2 commits October 11, 2024 10:22
Co-authored-by: Sean Klein <[email protected]>
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.

2 participants