-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Support Consul gRPC Health Checks #4251
Conversation
f3b985d
to
698adc0
Compare
vendor/vendor.json
Outdated
@@ -2,355 +2,2064 @@ | |||
"comment": "", | |||
"ignore": "test appengine", | |||
"package": [ | |||
{"path":"context","revision":""}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vendorfmt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oopsie. Thanks.
``` | ||
|
||
This check would translate to having a Consul check registration with the | ||
[GRPC][consul_grpc] parameter similar to `10.0.3.1:4567/grpc.health.v1.Health`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
its not clear what "parameter similar to 10.0.3.1:4567/grpc.health.V1.health" means here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consul only has a single grpc field that takes the full <host>:<port>/<endpoint>
like a URL. Nomad can't do that because the host and port are determined at runtime.
So I'm trying to describe how Nomad's fields relate to the Consul field, but yeah... this is worded badly. Perhaps the fact that it's a single grpc
field in Consul is an implementation detail I don't actually have to worry about comparing against?
🤔 I'll get this changed or remove it, but let me know if you have any suggestions!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had one comment about clarifying a doc sentence.
Assuming the service's address is `10.0.3.1` and port is `4567`. See [Using | ||
Driver Address Mode](#using-driver-address-mode) for details on address | ||
selection. | ||
In this example Consul would health check the `grpc.health.v1.Health` service |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change service name
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. |
Add support for gRPC health checks. Tested against etcd and an altered greeter_server.
greeter_server.gz
patch
grpchealth.nomad
Bumped vendored Consul libraries to 1.0.7 which also required bumping Serf.