cluster_ips=(
127.0.0.1
)

cluster_nodes=""

for ((i=0; i<${#cluster_ips[@]}; ++i))
do
cluster_ip=${cluster_ips[i]}
#echo $cluster_ip

    for n in {1..2}; do
        cluster_nodes="$cluster_nodes $cluster_ip:638$n"
    done
#echo $cluster_nodes

done 

echo "redis-cli --cluster create $cluster_nodes --cluster-replicas 1"
./redis-cli --cluster create $cluster_nodes --cluster-replicas 1
