Upgrade Stolon
This commit is contained in:
parent
4d7470b2fd
commit
35ddbd9f20
1 changed files with 11 additions and 12 deletions
|
@ -5,7 +5,11 @@ job "postgres" {
|
||||||
|
|
||||||
update {
|
update {
|
||||||
max_parallel = 1
|
max_parallel = 1
|
||||||
stagger = "2m"
|
health_check = "checks"
|
||||||
|
min_healthy_time = "2m"
|
||||||
|
healthy_deadline = "5m"
|
||||||
|
progress_deadline = "10m"
|
||||||
|
auto_revert = true
|
||||||
}
|
}
|
||||||
|
|
||||||
group "postgres" {
|
group "postgres" {
|
||||||
|
@ -18,7 +22,7 @@ job "postgres" {
|
||||||
driver = "docker"
|
driver = "docker"
|
||||||
|
|
||||||
config {
|
config {
|
||||||
image = "superboum/amd64_postgres:v3"
|
image = "superboum/amd64_postgres:v4"
|
||||||
network_mode = "host"
|
network_mode = "host"
|
||||||
readonly_rootfs = false
|
readonly_rootfs = false
|
||||||
command = "/usr/local/bin/stolon-sentinel"
|
command = "/usr/local/bin/stolon-sentinel"
|
||||||
|
@ -37,7 +41,7 @@ job "postgres" {
|
||||||
driver = "docker"
|
driver = "docker"
|
||||||
|
|
||||||
config {
|
config {
|
||||||
image = "superboum/amd64_postgres:v3"
|
image = "superboum/amd64_postgres:v4"
|
||||||
network_mode = "host"
|
network_mode = "host"
|
||||||
readonly_rootfs = false
|
readonly_rootfs = false
|
||||||
command = "/usr/local/bin/stolon-proxy"
|
command = "/usr/local/bin/stolon-proxy"
|
||||||
|
@ -47,7 +51,8 @@ job "postgres" {
|
||||||
"--store-endpoints", "http://consul.service.2.cluster.deuxfleurs.fr:8500",
|
"--store-endpoints", "http://consul.service.2.cluster.deuxfleurs.fr:8500",
|
||||||
"--port", "${NOMAD_PORT_psql_proxy_port}",
|
"--port", "${NOMAD_PORT_psql_proxy_port}",
|
||||||
"--listen-address", "0.0.0.0",
|
"--listen-address", "0.0.0.0",
|
||||||
"--stop-listening", "false"
|
"--stop-listening", "false",
|
||||||
|
"--store-timeout", "120s"
|
||||||
]
|
]
|
||||||
ports = [ "psql_proxy_port" ]
|
ports = [ "psql_proxy_port" ]
|
||||||
}
|
}
|
||||||
|
@ -79,7 +84,7 @@ job "postgres" {
|
||||||
driver = "docker"
|
driver = "docker"
|
||||||
|
|
||||||
config {
|
config {
|
||||||
image = "superboum/amd64_postgres:v3"
|
image = "superboum/amd64_postgres:v4"
|
||||||
network_mode = "host"
|
network_mode = "host"
|
||||||
readonly_rootfs = false
|
readonly_rootfs = false
|
||||||
command = "/usr/local/bin/stolon-keeper"
|
command = "/usr/local/bin/stolon-keeper"
|
||||||
|
@ -121,12 +126,6 @@ job "postgres" {
|
||||||
port = "psql_port"
|
port = "psql_port"
|
||||||
interval = "60s"
|
interval = "60s"
|
||||||
timeout = "5s"
|
timeout = "5s"
|
||||||
|
|
||||||
// check_restart {
|
|
||||||
// limit = 3
|
|
||||||
// grace = "60m"
|
|
||||||
// ignore_warnings = false
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue