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