Skip to content

grpc: server-side health check default: 5s->500ms#8681

Open
jsha wants to merge 1 commit intomainfrom
faster-healthcheckers
Open

grpc: server-side health check default: 5s->500ms#8681
jsha wants to merge 1 commit intomainfrom
faster-healthcheckers

Conversation

@jsha
Copy link
Contributor

@jsha jsha commented Mar 18, 2026

Since the RA always starts unhealthy (it needs to load overrides), this allows it to become healthy sooner.

This speeds up integration test startup by about 20s, because we start four instances of RA, and they were all waiting on their second internal health check before they could become healthy.

Note that our health-checker binary (used from startservers.py) checks health every 100ms, but no requests are actually sent over the wire because the server side has not sent the client a streaming reply to the HealthClient.Watch() RPC. We do have the option of plumbing things up so that RA can call serverBuilder.healthSrv.SetServingStatus() as soon as its overrides are loaded, which would speed things up a bit more, but this seems good enough for now.

Since the RA always starts unhealthy (it needs to load overrides),
this allows it to become healthy sooner.

This speeds up integration test startup by about 20s, because we start four
instances of RA, and they were all waiting on their second internal health check
before they could become healthy.
@jsha jsha marked this pull request as ready for review March 18, 2026 05:38
@jsha jsha requested a review from a team as a code owner March 18, 2026 05:38
@jsha jsha requested a review from beautifulentropy March 18, 2026 05:38
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.

1 participant