diff --git a/db/db_tunables.h b/db/db_tunables.h index 61518a6f4b..f9ba33fae5 100644 --- a/db/db_tunables.h +++ b/db/db_tunables.h @@ -1892,7 +1892,7 @@ REGISTER_TUNABLE("physrep_metadb_name", "Physical replication metadb cluster nam NULL); REGISTER_TUNABLE("physrep_reconnect_penalty", "Physrep wait seconds before retry to the same node. (Default: 5)", TUNABLE_INTEGER, &gbl_physrep_reconnect_penalty, 0, NULL, NULL, NULL, NULL); -REGISTER_TUNABLE("physrep_reconnect_interval", "Reconnect interval for physical replicants (Default: 600)", +REGISTER_TUNABLE("physrep_reconnect_interval", "Reconnect interval for physical replicants (Default: 604800)", TUNABLE_INTEGER, &gbl_physrep_reconnect_interval, 0, NULL, NULL, NULL, NULL); REGISTER_TUNABLE("physrep_shuffle_host_list", "Shuffle the host list returned by register_replicant() " diff --git a/db/phys_rep.c b/db/phys_rep.c index 4090291bd4..eb043efc62 100644 --- a/db/phys_rep.c +++ b/db/phys_rep.c @@ -55,7 +55,7 @@ typedef struct DB_Connection { } while (0) int gbl_physrep_debug = 0; -int gbl_physrep_reconnect_interval = 3600; // force re-registration every hour +int gbl_physrep_reconnect_interval = 604800; // force re-registration every week int gbl_physrep_reconnect_penalty = 0; int gbl_blocking_physrep = 0; int gbl_physrep_fanout = 8; diff --git a/tests/tunables.test/t00_all_tunables.expected b/tests/tunables.test/t00_all_tunables.expected index 242e1272d9..96d47cc4fb 100644 --- a/tests/tunables.test/t00_all_tunables.expected +++ b/tests/tunables.test/t00_all_tunables.expected @@ -742,7 +742,7 @@ (name='physrep_metadb_host', description='List of physical replication metadb cluster hosts.', type='STRING', value=NULL, read_only='Y') (name='physrep_metadb_name', description='Physical replication metadb cluster name.', type='STRING', value=NULL, read_only='Y') (name='physrep_pollms', description='Physical replicant poll interval in milliseconds. (Default: 200)', type='INTEGER', value='200', read_only='N') -(name='physrep_reconnect_interval', description='Reconnect interval for physical replicants (Default: 600)', type='INTEGER', value='3600', read_only='N') +(name='physrep_reconnect_interval', description='Reconnect interval for physical replicants (Default: 604800)', type='INTEGER', value='604800', read_only='N') (name='physrep_reconnect_penalty', description='Physrep wait seconds before retry to the same node. (Default: 5)', type='INTEGER', value='0', read_only='N') (name='physrep_repl_host', description='Current physrep host.', type='STRING', value=NULL, read_only='Y') (name='physrep_repl_name', description='Current physrep parent.', type='STRING', value=NULL, read_only='Y')