elected is the number of time the worker was elected.oldelected is elected last time the lbstatus was recalculated.The node with the lowest status is selected. Nodes with lbfactor ≤ 0 are skipped by the both calculation logic.
Is there something wrong here ? How it should be ?
lbstatus is defined as (elected - oldelected) * 1000)/lbfactor and then sumed up with (elected - oldelected) * 1000)/lbfactor.