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

On service registration, health check should be "critical" not "unknown" #341

Closed
armon opened this issue Sep 15, 2014 · 6 comments
Closed
Assignees
Labels
type/bug Feature does not function as expected type/enhancement Proposed improvement or new feature

Comments

@armon
Copy link
Member

armon commented Sep 15, 2014

Currently there is a race where the service is in the pool while it may be unavailable. Fix this by defaulting state to critical instead of the useless unknown state.

@armon armon added type/bug Feature does not function as expected type/enhancement Proposed improvement or new feature labels Sep 15, 2014
@plorenz
Copy link

plorenz commented Sep 29, 2014

I'm seeing similar behavior except the alarm is not showing up at (not even in state 'unknown'). The service appears with just the default alarm, then a short time later shows up with the alarm in warning state.

@plorenz
Copy link

plorenz commented Oct 20, 2014

This issue is not fixed. I just retested with the recently release 0.4.1 and saw the following:

Goal is to get a set of healthy services.

  1. Set a blocking query for a service
  2. Registered a new service instance with a health check that will fail
  3. Query returns with service instance. The health check is not listed and thus the service shows as healthy.
  4. The next query will show the service as failing, but action has already been taken with the unhealthy service.

Should this issue be reopened or should a new issue be created for this?

@ryanuber ryanuber reopened this Oct 20, 2014
@ryanuber
Copy link
Member

@plorenz we can track this issue here - I'll give your use case a shot and see if I get the same thing. Thanks!

@plorenz
Copy link

plorenz commented Oct 20, 2014

Thanks, @ryanuber. I'm using the /v1/health/service REST API since the /v1/catalog/service doesn't expose information about health checks.

@armon
Copy link
Member Author

armon commented Oct 20, 2014

Yeah I think this was 2 different issues. The first was the use of the "unknown" state which has been fixed, the second is a race condition between the registration of the service and the health check.

@ryanuber
Copy link
Member

I've separated this into another issue after @armon's comment - I have reproduced this and will look into it. @plorenz have a look at #413, we will track it there.

duckhan pushed a commit to duckhan/consul that referenced this issue Oct 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Feature does not function as expected type/enhancement Proposed improvement or new feature
Projects
None yet
Development

No branches or pull requests

3 participants