mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-14 18:02:31 +08:00
Make fault_tolerance_without_losing data consistent with 6.2 in HA.
Don't consider satellites for now. This is a HACK which needs to be fixed soon, but for now need this to keep the monitoring sane.
This commit is contained in:
parent
6957e64886
commit
31cc888562
@ -1945,7 +1945,14 @@ static JsonBuilderObject tlogFetcher(int* logFaultTolerance, const std::vector<T
|
||||
if(currentFaultTolerance >= 0) {
|
||||
localSetsWithNonNegativeFaultTolerance++;
|
||||
}
|
||||
minFaultTolerance = std::min(minFaultTolerance, currentFaultTolerance);
|
||||
|
||||
if (tLogs[i].locality == tagLocalitySatellite) {
|
||||
// FIXME: This hack to bump satellite fault tolerance, is to make it consistent
|
||||
// with 6.2.
|
||||
minFaultTolerance = std::min(minFaultTolerance, currentFaultTolerance + 1);
|
||||
} else {
|
||||
minFaultTolerance = std::min(minFaultTolerance, currentFaultTolerance);
|
||||
}
|
||||
}
|
||||
|
||||
if (tLogs[i].isLocal && tLogs[i].locality == tagLocalitySatellite) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user