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

loadbalancer: Pass connection failures to the HealthIndicator #2817

Conversation

bryce-anderson
Copy link
Contributor

@bryce-anderson bryce-anderson commented Jan 30, 2024

Motivation:

We can't rely on the request path to pass in connection failures because if we can't get a connection we can never add the observers. That means we need the Host implementation to pass it in directly.

Modifications:

Add two new methods to HealthIndicator that provide the current time and and a callback for submitting connection failures.

Result:

We should be able to track connection failures now and factor those into the HealthTracker implementations.

Note

See #2818 for an alternative which is substantially the same but has a somewhat better feeling organization.

Motivation:

We can't rely on the request path to pass in connection
failures because if we can't get a connection we can never
add the observers. That means we need the `Host` implementation
to pass it in directly.

Modifications:

Add two new methods to `HealthIndicator` that provide the current
time and and a callback for submitting connection failures.

Result:

We should be able to track connection failures now and factor
those into the `HealthTracker` implementations.
@bryce-anderson
Copy link
Contributor Author

I like #2818 a bit better so I'm going to close this for now.

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