fix: low latency tests need 4 machines per datacenter to support triple replication after 1 machine has failed

This commit is contained in:
Evan Tschannen 2018-05-07 11:28:25 -07:00
parent 529bd34cf9
commit 4677789b38
1 changed files with 4 additions and 1 deletions

View File

@ -865,7 +865,10 @@ void SimulationConfig::generateNormalConfig(int minimumReplication) {
set_config("regions=" + json_spirit::write_string(json_spirit::mValue(regionArr), json_spirit::Output_options::none));
}
if(generateFearless) {
if(generateFearless && minimumReplication > 1) {
//low latency tests in fearless configurations need 4 machines per datacenter (3 for triple replication, 1 that is down during failures).
machine_count = 16;
} else if(generateFearless) {
machine_count = 12;
} else if(db.tLogPolicy && db.tLogPolicy->info() == "data_hall^2 x zoneid^2 x 1") {
machine_count = 9;