Don't always restart stolon keeper if it is failed (let stolon do its job)

This commit is contained in:
Alex 2021-02-24 14:54:18 +01:00
parent 987cefeba0
commit fada3f6ed1
1 changed files with 6 additions and 6 deletions

View File

@ -114,18 +114,18 @@ job "postgres" {
tags = ["sql"] tags = ["sql"]
port = "psql_port" port = "psql_port"
address_mode = "host" address_mode = "host"
name = "keeper" name = "psql-keeper"
check { check {
type = "tcp" type = "tcp"
port = "psql_port" port = "psql_port"
interval = "60s" interval = "60s"
timeout = "5s" timeout = "5s"
check_restart { // check_restart {
limit = 3 // limit = 3
grace = "60m" // grace = "60m"
ignore_warnings = false // ignore_warnings = false
} // }
} }
} }
} }