feat(ha-repl-hardening): committing timeout 60s degraded-mode safety net (task 5.3)
- Change HA_DEFAULT_COMMITTING_TIMEOUT_MS from 10000 to 60000 - committing_timeout_fn: count converged/pending standbys from standby_converged[], log WARN with counts, then promote (degraded mode) - Replace hardcoded 10000 in test_ha_evaluate_committing.c with macro - Three new tests: default=60000, degrade-promote with 1/2 and 0/2 converged
This commit is contained in:
parent
534bfd68fe
commit
0762577bf7
5 changed files with 160 additions and 9 deletions
|
|
@ -121,7 +121,7 @@ typedef struct {
|
|||
#define HA_DEFAULT_MAX_PROMOTION_RETRIES 5
|
||||
#define HA_DEFAULT_ELECTION_JITTER_MAX_MS 200
|
||||
#define HA_DEFAULT_ELECTION_PRIORITY_STEP_MS 500
|
||||
#define HA_DEFAULT_COMMITTING_TIMEOUT_MS 10000
|
||||
#define HA_DEFAULT_COMMITTING_TIMEOUT_MS 60000
|
||||
|
||||
typedef struct {
|
||||
uint32_t heartbeat_interval_ms; /* Primary heartbeat send interval (min 2000 ms) */
|
||||
|
|
@ -131,7 +131,7 @@ typedef struct {
|
|||
uint32_t max_promotion_retries; /* Max consecutive failed promotion attempts */
|
||||
uint32_t election_jitter_max_ms; /* random jitter added to election timeout (default 200) */
|
||||
uint32_t election_priority_step_ms; /* extra ms per priority level (default 500) */
|
||||
uint32_t committing_timeout_ms; /* Quorum-ACK deadline for CTRL_PRIMARY_COMMITTING (default 10000) */
|
||||
uint32_t committing_timeout_ms; /* Quorum-ACK deadline for CTRL_PRIMARY_COMMITTING (default 60000) */
|
||||
} ha_config_t;
|
||||
|
||||
/* probe_ctx_t deleted — only used by am_i_primary() (election-iomgr-refactor) */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue