refactor(sync): update mnode elect timer

This commit is contained in:
Minghao Li 2022-08-12 18:37:08 +08:00
parent e8d63b7228
commit 7530a7e2e3
1 changed files with 6 additions and 2 deletions

View File

@ -250,8 +250,12 @@ int32_t mndInitSync(SMnode *pMnode) {
// decrease election timer // decrease election timer
setPingTimerMS(pMgmt->sync, 5000); setPingTimerMS(pMgmt->sync, 5000);
setElectTimerMS(pMgmt->sync, 3000);
setHeartbeatTimerMS(pMgmt->sync, 700);
/*
setElectTimerMS(pMgmt->sync, 600); setElectTimerMS(pMgmt->sync, 600);
setHeartbeatTimerMS(pMgmt->sync, 300); setHeartbeatTimerMS(pMgmt->sync, 300);
*/
mDebug("mnode-sync is opened, id:%" PRId64, pMgmt->sync); mDebug("mnode-sync is opened, id:%" PRId64, pMgmt->sync);
return 0; return 0;