You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previously the number of times psql was allowed to fail was hard-coded at 3. We found a need to adjust this this number so it is now a parameter defaulting to 3.
Copy file name to clipboardExpand all lines: jobs/postgres/spec
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -99,13 +99,15 @@ properties:
99
99
postgres.replication.master:
100
100
description: IP address of the preferred master node (should be the 0th postgres node's IP)
101
101
default: ~
102
-
103
102
postgres.replication.grace:
104
103
description: Grace period (in seconds) to look for an existing PostgreSQL master node on boot.
105
104
default: 15
106
105
postgres.replication.connect_timeout:
107
-
description: How long (in seconds) to wait before timimg out a failover health check from one node to the other.
106
+
description: How long (in seconds) to wait before timing out a failover health check from one node to the other.
108
107
default: 5
108
+
postgres.replication.psql_error_count:
109
+
description: How many failed attempts to check the other node's status before assuming failure.
110
+
default: 3
109
111
110
112
postgres.users:
111
113
description: "A list of {username: ..., password: ...} objects for defining PostgreSQL users. Setting the 'admin:' key on a user will make them a superuser."
@@ -122,4 +124,4 @@ properties:
122
124
- porcupine
123
125
- hedgehog
124
126
extensions: # optional array of extensions to enable on this database
0 commit comments