public static void waitForClusterReady(Jedis... nodes)
	    throws InterruptedException {
	boolean clusterOk = false;
	while (!clusterOk) {
	    boolean isOk = true;
	    for (Jedis node : nodes) {
		if (!node.clusterInfo().split("\n")[0].contains("ok")) {
		    isOk = false;
		    break;
		}
	    }

	    if (isOk) {
		clusterOk = true;
	    }

	    Thread.sleep(50);
	}
    }