knobify force recovery recovery check delay
This commit is contained in:
parent
3a572b010f
commit
d4737fac0f
|
@ -2286,7 +2286,7 @@ ACTOR Future<Void> handleForcedRecoveries( ClusterControllerData *self, ClusterC
|
||||||
state ForceRecoveryRequest req = waitNext( interf.clientInterface.forceRecovery.getFuture() );
|
state ForceRecoveryRequest req = waitNext( interf.clientInterface.forceRecovery.getFuture() );
|
||||||
TraceEvent("ForcedRecoveryStart", self->id).detail("ClusterControllerDcId", printable(self->clusterControllerDcId)).detail("DcId", req.dcId.printable());
|
TraceEvent("ForcedRecoveryStart", self->id).detail("ClusterControllerDcId", printable(self->clusterControllerDcId)).detail("DcId", req.dcId.printable());
|
||||||
state Future<Void> fCommit = doEmptyCommit(self->cx);
|
state Future<Void> fCommit = doEmptyCommit(self->cx);
|
||||||
wait(fCommit || delay(5.0));
|
wait(fCommit || delay(SERVER_KNOBS->FORCE_RECOVERY_CHECK_DELAY));
|
||||||
if(!fCommit.isReady() || fCommit.isError()) {
|
if(!fCommit.isReady() || fCommit.isError()) {
|
||||||
if(!self->clusterControllerDcId.present() || self->clusterControllerDcId != req.dcId) {
|
if(!self->clusterControllerDcId.present() || self->clusterControllerDcId != req.dcId) {
|
||||||
vector<Optional<Key>> dcPriority;
|
vector<Optional<Key>> dcPriority;
|
||||||
|
|
|
@ -303,6 +303,7 @@ ServerKnobs::ServerKnobs(bool randomize, ClientKnobs* clientKnobs) {
|
||||||
init( CHECK_OUTSTANDING_INTERVAL, 0.5 ); if( randomize && BUGGIFY ) CHECK_OUTSTANDING_INTERVAL = 0.001;
|
init( CHECK_OUTSTANDING_INTERVAL, 0.5 ); if( randomize && BUGGIFY ) CHECK_OUTSTANDING_INTERVAL = 0.001;
|
||||||
init( VERSION_LAG_METRIC_INTERVAL, 0.5 ); if( randomize && BUGGIFY ) VERSION_LAG_METRIC_INTERVAL = 10.0;
|
init( VERSION_LAG_METRIC_INTERVAL, 0.5 ); if( randomize && BUGGIFY ) VERSION_LAG_METRIC_INTERVAL = 10.0;
|
||||||
init( MAX_VERSION_DIFFERENCE, 20 * VERSIONS_PER_SECOND );
|
init( MAX_VERSION_DIFFERENCE, 20 * VERSIONS_PER_SECOND );
|
||||||
|
init( FORCE_RECOVERY_CHECK_DELAY, 5.0 );
|
||||||
|
|
||||||
init( INCOMPATIBLE_PEERS_LOGGING_INTERVAL, 600 ); if( randomize && BUGGIFY ) INCOMPATIBLE_PEERS_LOGGING_INTERVAL = 60.0;
|
init( INCOMPATIBLE_PEERS_LOGGING_INTERVAL, 600 ); if( randomize && BUGGIFY ) INCOMPATIBLE_PEERS_LOGGING_INTERVAL = 60.0;
|
||||||
init( EXPECTED_MASTER_FITNESS, ProcessClass::UnsetFit );
|
init( EXPECTED_MASTER_FITNESS, ProcessClass::UnsetFit );
|
||||||
|
|
|
@ -243,6 +243,7 @@ public:
|
||||||
double INCOMPATIBLE_PEERS_LOGGING_INTERVAL;
|
double INCOMPATIBLE_PEERS_LOGGING_INTERVAL;
|
||||||
double VERSION_LAG_METRIC_INTERVAL;
|
double VERSION_LAG_METRIC_INTERVAL;
|
||||||
int64_t MAX_VERSION_DIFFERENCE;
|
int64_t MAX_VERSION_DIFFERENCE;
|
||||||
|
double FORCE_RECOVERY_CHECK_DELAY;
|
||||||
|
|
||||||
// Knobs used to select the best policy (via monte carlo)
|
// Knobs used to select the best policy (via monte carlo)
|
||||||
int POLICY_RATING_TESTS; // number of tests per policy (in order to compare)
|
int POLICY_RATING_TESTS; // number of tests per policy (in order to compare)
|
||||||
|
|
Loading…
Reference in New Issue