Rebuild on newer base image for pgvecto.rs 0.2.0

This commit is contained in:
Daniel Berteaud 2024-02-21 15:58:28 +01:00
parent 90ffc9d0b1
commit 4f62d5154a
6 changed files with 20 additions and 12 deletions

View File

@ -1,4 +1,4 @@
FROM danielberteaud/postgres:15.24.2-1
FROM danielberteaud/postgres:15.24.2-4
MAINTAINER Daniel Berteaud <dbd@ehtrace.com>
ARG PATRONI_VERSION=3.2.2

View File

@ -8,6 +8,7 @@ job "postgres-manage" {
datacenters = ["dc1"]
region = "global"
group "manage" {

View File

@ -2,6 +2,7 @@ job "postgres" {
datacenters = ["dc1"]
region = "global"
priority = 80
@ -12,12 +13,14 @@ job "postgres" {
size = 101
}
# Force different instances to run on distinct nodes
constraint {
operator = "distinct_hosts"
value = "true"
}
count = "1"
network {
mode = "bridge"
@ -39,7 +42,10 @@ job "postgres" {
service {
name = "postgres"
port = 5432
meta {
alloc = "${NOMAD_ALLOC_INDEX}"
job = "${NOMAD_JOB_NAME}"
}
connect {
sidecar_service {
@ -136,7 +142,7 @@ job "postgres" {
kill_timeout = "10m"
config {
image = "danielberteaud/patroni:15.24.1-2"
image = "danielberteaud/patroni:15.24.2-3"
# Set shm_size to half of the total size
shm_size = 536870912
volumes = ["local/mkdir-socket.sh:/entrypoint.d/70-mkdir-socket.sh"]

View File

@ -2,6 +2,7 @@ job "postgres-upgrade" {
datacenters = ["dc1"]
region = "global"
type = "batch"

View File

@ -11,11 +11,7 @@ job "[[ .instance ]]" {
size = 101
}
# Force different instances to run on distinct nodes
constraint {
operator = "distinct_hosts"
value = "true"
}
[[ template "common/constraints" $c ]]
count = "[[ $c.recovery | ternary 1 $c.count ]]"
network {
@ -44,7 +40,7 @@ job "[[ .instance ]]" {
service {
name = "[[ .instance ]][[ $c.consul.suffix ]]"
port = 5432
[[ template "common/prometheus_meta" $c ]]
[[ template "common/service_meta" $c ]]
[[ template "common/connect" $c ]]
tags = [
"postgres-${NOMAD_ALLOC_INDEX}",

View File

@ -31,7 +31,7 @@ pg:
# Postgres server settings
server:
# The image to use
image: '[[ .docker.repo ]]patroni:15.24.1-2'
image: '[[ .docker.repo ]]patroni:15.24.2-3'
# Number of postgres instance. Patroni will handle leader election and replication
count: 1
@ -54,9 +54,13 @@ pg:
env:
PGBACKREST_STANZA: '[[ .instance ]]'
# Set higher priority for the postgres job
nomad:
# Set higher priority for the postgres job
priority: 80
# Enforce running on distinct hosts
constraints:
- operator: distinct_hosts
value: true
# In recovery mode, neither patroni nor postgres will be started. The container will start and wait for manual recovery
recovery: False