Last active
September 11, 2020 00:18
-
-
Save vanzhiganov/4062accbccb9cd3a2ec7feaaffd244de to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
for port in 7000 7001 7002 7003 7004 7005 | |
do | |
mkdir ${port} | |
cd ${port} | |
cat >redis.conf << EOF | |
port ${port} | |
cluster-enabled yes | |
cluster-config-file nodes.conf | |
cluster-node-timeout 5000 | |
appendonly yes | |
protected-mode no | |
dir ./ | |
loglevel notice | |
logfile ${port}.log | |
save 900 1 | |
save 300 10 | |
save 60 10000 | |
EOF | |
cd .. | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment