mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 22:54:57 +02:00
Re-assign services from dead endoints.
This commit is contained in:
parent
e8a44ad2fb
commit
f585dc1b29
@ -202,7 +202,8 @@ void DelegationComponent::DelegationTimerHandler(void)
|
|||||||
|
|
||||||
/* don't re-assign service if the checker is still valid
|
/* don't re-assign service if the checker is still valid
|
||||||
* and doesn't have too many services */
|
* and doesn't have too many services */
|
||||||
if (oldEndpoint && find(candidates.begin(), candidates.end(), oldEndpoint) != candidates.end() &&
|
if (oldEndpoint && oldEndpoint->IsConnected() &&
|
||||||
|
find(candidates.begin(), candidates.end(), oldEndpoint) != candidates.end() &&
|
||||||
histogram[oldEndpoint] <= avg_services + overflow_tolerance)
|
histogram[oldEndpoint] <= avg_services + overflow_tolerance)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user