Skip to content

Commit

Permalink
misc: 8 nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinKolarik committed Jan 6, 2025
1 parent 11df941 commit 37a8241
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 36 deletions.
2 changes: 1 addition & 1 deletion config/redis/node.conf
Original file line number Diff line number Diff line change
Expand Up @@ -1132,7 +1132,7 @@ acllog-max-len 128
# limit for maxmemory so that there is some free RAM on the system for replica
# output buffers (but this is not needed if the policy is 'noeviction').
#
maxmemory 10GB
maxmemory 13GB

# MAXMEMORY POLICY: how Redis will select what to remove when maxmemory
# is reached. You can select one from the following behaviors:
Expand Down
46 changes: 11 additions & 35 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services:
env_file:
- ./.env.redis
restart: unless-stopped
stop_grace_period: 2m
stop_grace_period: 3m
redis-standalone-2:
image: redis/redis-stack-server:7.4.0-v1
ports:
Expand All @@ -20,7 +20,7 @@ services:
env_file:
- ./.env.redis
restart: unless-stopped
stop_grace_period: 2m
stop_grace_period: 3m
redis-node-01:
image: redis/redis-stack-server:7.4.0-v1
command: [ "bash", "/home/runner/mounted/node.sh", "7101" ]
Expand All @@ -31,7 +31,7 @@ services:
env_file:
- ./.env.redis
restart: unless-stopped
stop_grace_period: 2m
stop_grace_period: 3m
redis-node-02:
image: redis/redis-stack-server:7.4.0-v1
command: [ "bash", "/home/runner/mounted/node.sh", "7102" ]
Expand All @@ -42,7 +42,7 @@ services:
env_file:
- ./.env.redis
restart: unless-stopped
stop_grace_period: 2m
stop_grace_period: 3m
redis-node-03:
image: redis/redis-stack-server:7.4.0-v1
command: [ "bash", "/home/runner/mounted/node.sh", "7103" ]
Expand All @@ -53,7 +53,7 @@ services:
env_file:
- ./.env.redis
restart: unless-stopped
stop_grace_period: 2m
stop_grace_period: 3m
redis-node-04:
image: redis/redis-stack-server:7.4.0-v1
command: [ "bash", "/home/runner/mounted/node.sh", "7104" ]
Expand All @@ -64,7 +64,7 @@ services:
env_file:
- ./.env.redis
restart: unless-stopped
stop_grace_period: 2m
stop_grace_period: 3m
redis-node-05:
image: redis/redis-stack-server:7.4.0-v1
command: [ "bash", "/home/runner/mounted/node.sh", "7105" ]
Expand All @@ -75,7 +75,7 @@ services:
env_file:
- ./.env.redis
restart: unless-stopped
stop_grace_period: 2m
stop_grace_period: 3m
redis-node-06:
image: redis/redis-stack-server:7.4.0-v1
command: [ "bash", "/home/runner/mounted/node.sh", "7106" ]
Expand All @@ -86,7 +86,7 @@ services:
env_file:
- ./.env.redis
restart: unless-stopped
stop_grace_period: 2m
stop_grace_period: 3m
redis-node-07:
image: redis/redis-stack-server:7.4.0-v1
command: [ "bash", "/home/runner/mounted/node.sh", "7107" ]
Expand All @@ -97,7 +97,7 @@ services:
env_file:
- ./.env.redis
restart: unless-stopped
stop_grace_period: 2m
stop_grace_period: 3m
redis-node-08:
image: redis/redis-stack-server:7.4.0-v1
command: [ "bash", "/home/runner/mounted/node.sh", "7108" ]
Expand All @@ -108,32 +108,10 @@ services:
env_file:
- ./.env.redis
restart: unless-stopped
stop_grace_period: 2m
redis-node-09:
image: redis/redis-stack-server:7.4.0-v1
command: [ "bash", "/home/runner/mounted/node.sh", "7109" ]
network_mode: "host"
volumes:
- ./config/redis:/home/runner/mounted
- /data/redis/7109:/data
env_file:
- ./.env.redis
restart: unless-stopped
stop_grace_period: 2m
redis-node-10:
image: redis/redis-stack-server:7.4.0-v1
command: [ "bash", "/home/runner/mounted/node.sh", "7110" ]
network_mode: "host"
volumes:
- ./config/redis:/home/runner/mounted
- /data/redis/7110:/data
env_file:
- ./.env.redis
restart: unless-stopped
stop_grace_period: 2m
stop_grace_period: 3m
redis-cluster-creator:
image: redis/redis-stack-server:7.4.0-v1
command: redis-cli -a "$REDIS_PASSWORD" --cluster create $REDIS_PUBLIC_IP:7101 $REDIS_PUBLIC_IP:7102 $REDIS_PUBLIC_IP:7103 $REDIS_PUBLIC_IP:7104 $REDIS_PUBLIC_IP:7105 $REDIS_PUBLIC_IP:7106 $REDIS_PUBLIC_IP:7107 $REDIS_PUBLIC_IP:7108 $REDIS_PUBLIC_IP:7109 $REDIS_PUBLIC_IP:7110 --cluster-replicas 0 --cluster-yes
command: redis-cli -a "$REDIS_PASSWORD" --cluster create $REDIS_PUBLIC_IP:7101 $REDIS_PUBLIC_IP:7102 $REDIS_PUBLIC_IP:7103 $REDIS_PUBLIC_IP:7104 $REDIS_PUBLIC_IP:7105 $REDIS_PUBLIC_IP:7106 $REDIS_PUBLIC_IP:7107 $REDIS_PUBLIC_IP:7108 --cluster-replicas 0 --cluster-yes
network_mode: "host"
depends_on:
- redis-node-01
Expand All @@ -144,7 +122,5 @@ services:
- redis-node-06
- redis-node-07
- redis-node-08
- redis-node-09
- redis-node-10
env_file:
- ./.env.redis

0 comments on commit 37a8241

Please sign in to comment.