Reduce check frequency

This commit is contained in:
Daniel Berteaud 2023-12-01 11:29:50 +01:00
parent 879db3287d
commit e37a78ad78
1 changed files with 4 additions and 4 deletions

View File

@ -67,8 +67,8 @@ job [[ .pg.instance | toJSON ]] {
port = "patroni"
path = "/health"
protocol = "https"
interval = "10s"
timeout = "8s"
interval = "20s"
timeout = "10s"
# Patroni REST API is using a cert from a private CA
tls_skip_verify = true
}
@ -90,8 +90,8 @@ job [[ .pg.instance | toJSON ]] {
check {
name = "ready"
type = "script"
interval = "5s"
timeout = "5s"
interval = "30s"
timeout = "10s"
task = "postgres"
command = "pg_isready"
}