added a comment

This commit is contained in:
Evan Tschannen 2021-03-16 14:19:23 -07:00
parent d0f134c20e
commit 9aeb69ca1c
1 changed files with 4 additions and 0 deletions

View File

@ -1570,6 +1570,10 @@ public:
return false;
}
// Because a configuration with fewer proxies or resolvers does not cause this function to fail,
// we need an extra check to determine if the total number of processes has been reduced.
// This is mainly helpful in avoiding situations where avoiding a degraded process
// would result in a configuration with less total processes than desired.
if (oldTLogFit.count + oldInFit.proxy.count + oldInFit.grvProxy.count + oldInFit.resolver.count >
newTLogFit.count + newInFit.proxy.count + newInFit.grvProxy.count + newInFit.resolver.count) {
return false;