jtriley/StarCluster — Issue #75: load balancer node removal
Author: dmachi
Created: 2012-02-07 16:14:38+00:00
State: open

When the loadbalancer evaluates whether to remove nodes, it does an initial check to see if the current node count is greater than the minimal node count. If not, no nodes are removed. However, if this check passes, and the balancer finds more than 1 node to remove, it will remove them all even if this brings us below the min_nodes for the cluster. Note that this case only occurs if multiple nodes are both idle and become eligible for removal on the same balancer eval iteration.

In my load balancer branch, I have added a small correction for this:

https://github.com/dmachi/StarCluster/blob/load_balancer/starcluster/balancers/sge/__init__.py#L702-705

I'll submit a pull request for my lb changes when the rest are completed and tested, but thought it useful to document this issue on its own and show where/how to work around it in the mean time.