mirror of https://gitee.com/bigwinds/arangodb
Merge branch 'devel' of github.com:arangodb/arangodb into devel
* 'devel' of github.com:arangodb/arangodb: more robust network independance in RAFT election cycle more robust network independance in RAFT election cycle
This commit is contained in:
commit
61c6e3b9df
|
@ -40,8 +40,8 @@ AgencyFeature::AgencyFeature(application_features::ApplicationServer* server)
|
|||
_activated(false),
|
||||
_size(1),
|
||||
_poolSize(1),
|
||||
_minElectionTimeout(0.5),
|
||||
_maxElectionTimeout(2.5),
|
||||
_minElectionTimeout( 2.0),
|
||||
_maxElectionTimeout(10.0),
|
||||
_supervision(false),
|
||||
_waitForSync(true),
|
||||
_supervisionFrequency(5.0),
|
||||
|
|
|
@ -563,7 +563,7 @@ void Agent::run() {
|
|||
|
||||
// Leader working only
|
||||
if (leading()) {
|
||||
_appendCV.wait(10000);
|
||||
_appendCV.wait(1000);
|
||||
|
||||
// Append entries to followers
|
||||
sendAppendEntriesRPC();
|
||||
|
|
|
@ -417,7 +417,7 @@ void Constituent::run() {
|
|||
std::vector<std::string> act = _agent->config().active();
|
||||
while (!this->isStopping() && find(act.begin(), act.end(), _id) == act.end()) {
|
||||
CONDITION_LOCKER(guardv, _cv);
|
||||
_cv.wait(500000);
|
||||
_cv.wait(50000);
|
||||
act = _agent->config().active();
|
||||
}
|
||||
|
||||
|
|
|
@ -46,8 +46,8 @@ fi
|
|||
|
||||
SECONDARIES="$5"
|
||||
|
||||
MINP=0.5
|
||||
MAXP=2.5
|
||||
MINP=1.0
|
||||
MAXP=5.0
|
||||
SFRE=5.0
|
||||
COMP=1000
|
||||
BASE=4001
|
||||
|
|
Loading…
Reference in New Issue