Skip to content

test: add health check for bvitess#8658

Draft
jsha wants to merge 4 commits intovschemas-and-vindexesfrom
healthcheck-vitess
Draft

test: add health check for bvitess#8658
jsha wants to merge 4 commits intovschemas-and-vindexesfrom
healthcheck-vitess

Conversation

@jsha
Copy link
Contributor

@jsha jsha commented Mar 5, 2026

This replaces the health check inside test/entrypoint.sh. Advantage: if bvitess exits outright during health checking, docker compose can report that more clearly than test/entrypoint.sh can, and can also terminte the run of the boulder container early, rather than waiting for the health check to timeout.

We can apply the same transformation to the other health checks if we like this one.

Warning

This PR is based on top of #8634. Do not merge before that one.

Comment on lines +170 to +174
interval: 2s
timeout: 30s
retries: 3
start_period: 10s
start_interval: 2s
Copy link
Contributor

Choose a reason for hiding this comment

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

By my reading of these docs, I think having interval and start_interval set to the same value is redundant. Since you have start_period set to 10 seconds, no failures during that whole first 10 seconds will cause the container to actually be marked unhealthy, so we could have the start_interval be much smaller (like 200ms) so it's quicker to respond once the container actually does come up.

Unless that just makes the "You have an error in your SQL syntax" logging super spammy?

jsha added 2 commits March 5, 2026 19:04
This replaces the health check inside `test/entrypoint.sh`. Advantage: if
bvitess exits outright during health checking, `docker compose` can report
that more clearly than `test/entrypoint.sh` can, and can also terminte the run
of the `boulder` container early, rather than waiting for the health check to
timeout.

We can apply the same transformation to the other health checks if we like this
one.
@jsha jsha force-pushed the healthcheck-vitess branch from 43dd77d to ca57c4e Compare March 6, 2026 03:07
@jsha jsha changed the base branch from main to vschemas-and-vindexes March 6, 2026 03:11
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