Skip to content

Commit

Permalink
Add max_failover_replication_time_lag configuration with constraints (
Browse files Browse the repository at this point in the history
#938)

* Add `max_failover_replication_time_lag` configuration with constraints

- Set description for `max_failover_replication_time_lag`
- Define value constraints (min: 10, max: 9223372036854776000)
- Provide default (60) and example (4) values

* example should be within the range

* Update specification/resources/databases/models/advanced_config/postgres_advanced_config.yml

Co-authored-by: Andrew Starr-Bochicchio <andrewsomething@users.noreply.github.com>

---------

Co-authored-by: v.sharma <v.sharma@digitalocean.com>
Co-authored-by: Andrew Starr-Bochicchio <andrewsomething@users.noreply.github.com>
  • Loading branch information
3 people authored Oct 29, 2024
1 parent 138147a commit cec05e9
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -407,3 +407,10 @@ properties:
Enable the pg_stat_monitor extension. <b>Enabling this extension will cause the cluster to be restarted.</b> When this extension is enabled, pg_stat_statements results for utility commands are unreliable.
type: boolean
example: false
max_failover_replication_time_lag:
description: >-
Number of seconds of master unavailability before triggering database failover to standby. The default value is 60.
type: integer
minimum: 10
maximum: 9223372036854776000
example: 50

0 comments on commit cec05e9

Please sign in to comment.