increase cnpg db waits

This commit is contained in:
Kjeld Schouten-Lebbing
2023-03-01 21:20:01 +01:00
parent 42d832b2b3
commit 1349cb371e
2 changed files with 4 additions and 3 deletions

View File

@@ -15,4 +15,4 @@ maintainers:
name: common
sources: null
type: library
version: 12.2.5
version: 12.2.6

View File

@@ -423,17 +423,18 @@ command:
until
echo "Testing database on url: {{ $cnpgName }}-rw"
pg_isready -U {{ .user }} -h {{ $cnpgName }}-rw
do sleep 2
do sleep 5
done
{{ if $cnpg.acceptRO }}
echo "Detected RO pooler, testing RO pooler availability..."
until
echo "Testing database on url: {{ $cnpgName }}-ro"
pg_isready -U {{ .user }} -h {{ $cnpgName }}-ro
do sleep 2
do sleep 5
done
{{ end }}
{{ end }}
{{ end }}
do sleep 5
EOF
{{- end -}}