-
Notifications
You must be signed in to change notification settings - Fork 182
Fix orchestrator and template manager health checks #1392
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,19 +9,29 @@ job "orchestrator-${latest_orchestrator_job_id}" { | |
| name = "orchestrator" | ||
| port = "${port}" | ||
|
|
||
| provider = "nomad" | ||
|
|
||
| check { | ||
| type = "grpc" | ||
ValentaTomas marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| type = "http" | ||
| path = "/health" | ||
| name = "health" | ||
| interval = "20s" | ||
| timeout = "5s" | ||
| grpc_use_tls = false | ||
| port = "${port}" | ||
|
Comment on lines
-17
to
-18
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't need this, as we're using HTTP (not GRPC) and it inherits the port of the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just for clarity—it inherits the check from orchestrator-proxy, not the orchestrator grpc, right? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It inherits the job "orchestrator" {
group "client" {
service {
name = "orchestrator"
port = "1234"
check {
# inherits `port = "1234"`
}
}
service {
name = "proxy"
port = "5678"
check {
# inherits `port = "5678"`
}
}
}
}There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh, so there are still two healthchecks, right? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correct! |
||
| } | ||
| } | ||
|
|
||
| service { | ||
| name = "orchestrator-proxy" | ||
| port = "${proxy_port}" | ||
|
|
||
| provider = "nomad" | ||
|
|
||
| check { | ||
| type = "tcp" | ||
| name = "health" | ||
| interval = "30s" | ||
| timeout = "1s" | ||
| } | ||
ValentaTomas marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||
|
|
||
| task "check-placement" { | ||
|
|
||
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.
This enables the health checks to work. Without it, we default to
consul, which doesn't function.