refactor(sync): adjust election timer

This commit is contained in:
Minghao Li 2022-06-24 15:28:01 +08:00
parent 87defc2790
commit 7695dbcce7
1 changed files with 4 additions and 0 deletions

View File

@ -198,6 +198,10 @@ int32_t mndInitSync(SMnode *pMnode) {
return -1; return -1;
} }
// decrease election timer
setElectTimerMS(pMgmt->sync, 600);
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;
} }