Added ability to consider all primary nodes as failed if the number of them is lower than configured. Backup nodes are all considered healthy if their number falls below configured value