forked from Deuxfleurs/nixcfg
staging garage: use new health check endpoint
This commit is contained in:
parent
1e32bebd38
commit
b260b01915
1 changed files with 24 additions and 18 deletions
|
@ -25,7 +25,7 @@ job "garage-staging" {
|
||||||
config {
|
config {
|
||||||
packages = [
|
packages = [
|
||||||
"#bash", # so that we can enter a shell inside container
|
"#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"
|
command = "garage"
|
||||||
args = [ "server" ]
|
args = [ "server" ]
|
||||||
|
@ -75,8 +75,6 @@ job "garage-staging" {
|
||||||
name = "garage-staging-rpc"
|
name = "garage-staging-rpc"
|
||||||
tags = ["garage-staging-rpc"]
|
tags = ["garage-staging-rpc"]
|
||||||
port = "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 {
|
service {
|
||||||
|
@ -88,13 +86,11 @@ job "garage-staging" {
|
||||||
]
|
]
|
||||||
port = "s3"
|
port = "s3"
|
||||||
check {
|
check {
|
||||||
type = "tcp"
|
port = "admin"
|
||||||
|
type = "http"
|
||||||
|
path = "/health"
|
||||||
interval = "60s"
|
interval = "60s"
|
||||||
timeout = "5s"
|
timeout = "5s"
|
||||||
check_restart {
|
|
||||||
limit = 3
|
|
||||||
grace = "90s"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -107,13 +103,11 @@ job "garage-staging" {
|
||||||
]
|
]
|
||||||
port = "k2v"
|
port = "k2v"
|
||||||
check {
|
check {
|
||||||
type = "tcp"
|
port = "admin"
|
||||||
|
type = "http"
|
||||||
|
path = "/health"
|
||||||
interval = "60s"
|
interval = "60s"
|
||||||
timeout = "5s"
|
timeout = "5s"
|
||||||
check_restart {
|
|
||||||
limit = 3
|
|
||||||
grace = "90s"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -128,13 +122,11 @@ job "garage-staging" {
|
||||||
]
|
]
|
||||||
port = "web"
|
port = "web"
|
||||||
check {
|
check {
|
||||||
type = "tcp"
|
port = "admin"
|
||||||
|
type = "http"
|
||||||
|
path = "/health"
|
||||||
interval = "60s"
|
interval = "60s"
|
||||||
timeout = "5s"
|
timeout = "5s"
|
||||||
check_restart {
|
|
||||||
limit = 3
|
|
||||||
grace = "90s"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -145,12 +137,26 @@ job "garage-staging" {
|
||||||
]
|
]
|
||||||
port = "admin"
|
port = "admin"
|
||||||
check {
|
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"
|
type = "tcp"
|
||||||
interval = "60s"
|
interval = "60s"
|
||||||
timeout = "5s"
|
timeout = "5s"
|
||||||
check_restart {
|
check_restart {
|
||||||
limit = 3
|
limit = 3
|
||||||
grace = "90s"
|
grace = "90s"
|
||||||
|
ignore_warnings = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue