aboutsummaryrefslogtreecommitdiff
path: root/app/postgres/deploy/postgres.hcl
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2021-03-07 17:07:35 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2021-03-07 17:07:35 +0100
commit35ddbd9f2087df0a59b9372c04d594173992319d (patch)
tree2b07ffae329b37e7b4bd3ae1e57ff90ba6652425 /app/postgres/deploy/postgres.hcl
parent4d7470b2fd1e04a688c18cc165212ee2dfd0543e (diff)
downloadinfrastructure-35ddbd9f2087df0a59b9372c04d594173992319d.tar.gz
infrastructure-35ddbd9f2087df0a59b9372c04d594173992319d.zip
Upgrade Stolon
Diffstat (limited to 'app/postgres/deploy/postgres.hcl')
-rw-r--r--app/postgres/deploy/postgres.hcl23
1 files changed, 11 insertions, 12 deletions
diff --git a/app/postgres/deploy/postgres.hcl b/app/postgres/deploy/postgres.hcl
index 55a8144..db62522 100644
--- a/app/postgres/deploy/postgres.hcl
+++ b/app/postgres/deploy/postgres.hcl
@@ -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
- // }
}
}
}