@Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || getClass() != obj.getClass()) {
            return false;
        }

        ClickHouseCluster other = (ClickHouseCluster) obj;
        // FIXME ignore order when comparing node lists
        return clusterName.equals(other.clusterName) && policy.equals(other.policy) && nodes.equals(other.nodes)
                && faultyNodes.equals(other.faultyNodes);
    }
Constructs cluster object using policy and list of nodes. It could be slow
when {@link ClickHouseClientOption#AUTO_DISCOVERY} is enabled.

@param cluster non-null cluster name
@param nodes   list of nodes
clickhouse-client/src/main/java/com/clickhouse/client/ClickHouseCluster.java