public NodeList stateless() {
        return matching(node -> node.allocation().isPresent() && ! node.allocation().get().membership().cluster().isStateful());
    }
Returns the subset of nodes that run a stateless service
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/NodeList.java