mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-22 22:56:29 +00:00
switchover: check for pending archive files on the demotion candidate
If the current primary (demotion candidate) still has any files to archive, it will delay the shutdown until all files are archived. If there is a substantial number of files, and/or the archive command executes slowly, this will probably lead to an unwelcome delay in the switchover process.
This commit is contained in:
17
repmgr.h
17
repmgr.h
@@ -40,13 +40,16 @@
|
||||
|
||||
#define DEFAULT_LOCATION "default"
|
||||
#define DEFAULT_PRIORITY 100
|
||||
#define DEFAULT_RECONNECTION_ATTEMPTS 6
|
||||
#define DEFAULT_RECONNECTION_INTERVAL 10
|
||||
#define DEFAULT_MONITORING_INTERVAL 2
|
||||
#define DEFAULT_ASYNC_QUERY_TIMEOUT 60
|
||||
#define DEFAULT_PRIMARY_NOTIFICATION_TIMEOUT 60
|
||||
#define DEFAULT_PRIMARY_FOLLOW_TIMEOUT 60
|
||||
#define DEFAULT_BDR_RECOVERY_TIMEOUT 30
|
||||
#define DEFAULT_RECONNECTION_ATTEMPTS 6 /* seconds */
|
||||
#define DEFAULT_RECONNECTION_INTERVAL 10 /* seconds */
|
||||
#define DEFAULT_MONITORING_INTERVAL 2 /* seconds */
|
||||
#define DEFAULT_ASYNC_QUERY_TIMEOUT 60 /* seconds */
|
||||
#define DEFAULT_PRIMARY_NOTIFICATION_TIMEOUT 60 /* seconds */
|
||||
#define DEFAULT_PRIMARY_FOLLOW_TIMEOUT 60 /* seconds */
|
||||
#define DEFAULT_BDR_RECOVERY_TIMEOUT 30 /* seconds */
|
||||
#define DEFAULT_ARCHIVER_LAG_WARNING 16 /* WAL files */
|
||||
#define DEFAULT_ARCHIVER_LAG_CRITICAL 128 /* WAL files */
|
||||
|
||||
#define FAILOVER_NODES_MAX_CHECK 50
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user