mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-25 17:00:05 +08:00
fix: make sure there are enough machines in each dc to support triple replication for the configure workload
This commit is contained in:
parent
5303962af6
commit
ad19d3926b
@ -758,7 +758,7 @@ void SimulationConfig::generateNormalConfig(int minimumReplication) {
|
||||
if(datacenters == 2 && g_random->random01() < 0.5) {
|
||||
db.primaryDcId = LiteralStringRef("0");
|
||||
db.remoteDcId = LiteralStringRef("1");
|
||||
machine_count = g_random->randomInt( std::max( 2+datacenters, datacenters*db.minMachinesRequired() ), std::max(extraDB ? 6 : 10, datacenters*db.minMachinesRequired() + 1) );
|
||||
machine_count = g_random->randomInt( std::max( 6, datacenters*db.minMachinesRequired() ), std::max(extraDB ? 7 : 10, datacenters*db.minMachinesRequired() + 1) );
|
||||
} else {
|
||||
machine_count = g_random->randomInt( std::max( 2+datacenters, db.minMachinesRequired() ), extraDB ? 6 : 10 );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user