long nonWorkingNodeCount() {
        return monitoredGroups.nodes().stream().filter(node -> node.isWorking() == Boolean.FALSE).count();
    }
Called by the cluster monitor when node state changes to failed
container-search/src/main/java/com/yahoo/search/dispatch/searchcluster/SearchCluster.java