adding an option to limit number of node eligiable for leadership