Regularly sync witness server repl_nodes table.

Although the witness server will resync the repl_nodes table following
a failover, other operations (e.g. removing or cloning a standby)
were previously not reflected in the witness server's copy of this
table.

As a short-term workaround, automatically resync the table at regular
intervals (defined by the configuration file parameter
"witness_repl_nodes_sync_interval_secs", default 30 seconds).
This commit is contained in:
Ian Barwick
2016-03-29 16:46:18 +09:00
parent 958e45f2b8
commit c48c248c15
7 changed files with 54 additions and 16 deletions

View File

@@ -146,3 +146,6 @@ monitor_interval_secs=2
# seconds; by default this would be half an hour, as 'retry_promote_interval_secs'
# default value is 300)
retry_promote_interval_secs=300
# Number of seconds after which the witness server resyncs the repl_nodes table
witness_repl_nodes_sync_interval_secs=15