forked from Deuxfleurs/infrastructure
Don't always restart stolon keeper if it is failed (let stolon do its job)
This commit is contained in:
parent
987cefeba0
commit
fada3f6ed1
1 changed files with 6 additions and 6 deletions
|
@ -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
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue