You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the earliestReadmitTime in the ManagedNetwork is updated on every call to the _ReadmitNodes() method. This can be inefficient as it goes through all nodes in the network, even if none are expected to be readmitted in the near future.
To improve performance, we have optimized the update of the earliestReadmitTime in the following way:
When iterating over the unhealthy nodes, keep track of the next earliest readmit time.
Update earliestReadmitTime only if the next earliest readmit time is less than the current earliestReadmitTime.
If no unhealthy nodes are present, set the earliestReadmitTime to now.Add(this.minNodeReadmitPeriod).
This optimization reduces unnecessary iterations and comparisons when updating the earliestReadmitTime, leading to better performance in scenarios with many nodes.
Solution
Update the _ReadmitNodes() method in the ManagedNetwork to include the optimization.
Alternatives
No response
The text was updated successfully, but these errors were encountered:
Problem
Currently, the earliestReadmitTime in the ManagedNetwork is updated on every call to the _ReadmitNodes() method. This can be inefficient as it goes through all nodes in the network, even if none are expected to be readmitted in the near future.
To improve performance, we have optimized the update of the earliestReadmitTime in the following way:
When iterating over the unhealthy nodes, keep track of the next earliest readmit time.
Update earliestReadmitTime only if the next earliest readmit time is less than the current earliestReadmitTime.
If no unhealthy nodes are present, set the earliestReadmitTime to now.Add(this.minNodeReadmitPeriod).
This optimization reduces unnecessary iterations and comparisons when updating the earliestReadmitTime, leading to better performance in scenarios with many nodes.
Solution
Update the _ReadmitNodes() method in the ManagedNetwork to include the optimization.
Alternatives
No response
The text was updated successfully, but these errors were encountered: