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

Health check retry #453

Merged
merged 3 commits into from
May 28, 2021
Merged

Health check retry #453

merged 3 commits into from
May 28, 2021

Conversation

vitarb
Copy link
Contributor

@vitarb vitarb commented May 27, 2021

Resolves #438 by adding configurable healthcheck timeout for the client.
Default value is set to 10 seconds, which means that now client creation would block sending health check requests in case if server is not available.

@@ -423,6 +425,10 @@ type (
// Default: 5s.
HealthCheckTimeout time.Duration

// HealthCheckRetryFor defines maximum amount of time that health check should be retried for.
// Defaults to 10s, once this timeout is reached error will be propagated to the client.
HealthCheckRetryFor time.Duration
Copy link
Member

Choose a reason for hiding this comment

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

[Nit] I think we need better name here. OR, HealthCheckTimeout should represent the overall time including all attempts, and we have the new field specify the PerAttempt timeout (or have that hard-coded). I can see how this might cause some weirdness with breaking changes though...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can slightly turn it and add HealthCheckAttemptTimeout, which would allow us to use HealthCheckTimeout as an aggregate one, what do you think?

@vitarb vitarb enabled auto-merge (squash) May 28, 2021 00:18
@vitarb vitarb merged commit 0498719 into temporalio:master May 28, 2021
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.

Client creation doesn't have any retries if health check intermittently fails
3 participants