staging garage: use new health check endpoint

This commit is contained in:
Alex 2022-12-05 16:25:46 +01:00
parent 1e32bebd38
commit b260b01915
Signed by: lx
GPG key ID: 0E496D15096376BE

View file

@ -25,7 +25,7 @@ job "garage-staging" {
config {
packages = [
"#bash", # so that we can enter a shell inside container
"git+https://git.deuxfleurs.fr/Deuxfleurs/garage.git?ref=main&rev=19bdd1c7992f907c9bd518462054f56e28a2e45b",
"git+https://git.deuxfleurs.fr/Deuxfleurs/garage.git?ref=admin-health-api&rev=d7868c48a4d8d5831051a0be088fe7bbec259bca",
]
command = "garage"
args = [ "server" ]
@ -75,8 +75,6 @@ job "garage-staging" {
name = "garage-staging-rpc"
tags = ["garage-staging-rpc"]
port = "rpc"
# No check on RPC, it wouldn't try connecting to the correct address
# (Garage listens only on IPv6 for RPC, see config file)
}
service {
@ -88,13 +86,11 @@ job "garage-staging" {
]
port = "s3"
check {
type = "tcp"
port = "admin"
type = "http"
path = "/health"
interval = "60s"
timeout = "5s"
check_restart {
limit = 3
grace = "90s"
}
}
}
@ -107,13 +103,11 @@ job "garage-staging" {
]
port = "k2v"
check {
type = "tcp"
port = "admin"
type = "http"
path = "/health"
interval = "60s"
timeout = "5s"
check_restart {
limit = 3
grace = "90s"
}
}
}
@ -128,13 +122,11 @@ job "garage-staging" {
]
port = "web"
check {
type = "tcp"
port = "admin"
type = "http"
path = "/health"
interval = "60s"
timeout = "5s"
check_restart {
limit = 3
grace = "90s"
}
}
}
@ -145,12 +137,26 @@ job "garage-staging" {
]
port = "admin"
check {
name = "garage-admin-health-check"
type = "http"
path = "/health"
interval = "60s"
timeout = "5s"
check_restart {
limit = 10
grace = "90s"
ignore_warnings = true
}
}
check {
name = "garage-tcp-liveness-check"
type = "tcp"
interval = "60s"
timeout = "5s"
check_restart {
limit = 3
grace = "90s"
ignore_warnings = true
}
}
}