Skip to content

Commit

Permalink
기본이 중요하다 [Kafka CDC]
Browse files Browse the repository at this point in the history
  • Loading branch information
dhyeonkim committed Aug 29, 2024
1 parent d32ad66 commit f0c99f9
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions _posts/2024-08-29-RedisCluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ mermaid: true
services:
redis-master-1:
container_name: redis-master-1
image: dev-mis-registry.smiledev.net/library/redis:7.2
image: redis:7.2
command: ["redis-server", "--port", "6379", "--cluster-enabled", "yes", "--cluster-config-file", "nodes.conf", "--cluster-node-timeout", "5000", "--appendonly", "yes"]
restart: always
ports:
Expand All @@ -31,41 +31,41 @@ services:
redis-master-2:
network_mode: "service:redis-master-1"
container_name: redis-master-2
image: dev-mis-registry.smiledev.net/library/redis:7.2
image: redis:latest
command: ["redis-server", "--port", "6479", "--cluster-enabled", "yes", "--cluster-config-file", "nodes.conf", "--cluster-node-timeout", "5000", "--appendonly", "yes"]
restart: always

redis-master-3:
network_mode: "service:redis-master-1"
container_name: redis-master-3
image: dev-mis-registry.smiledev.net/library/redis:7.2
image: redis:latest
command: ["redis-server", "--port", "6579", "--cluster-enabled", "yes", "--cluster-config-file", "nodes.conf", "--cluster-node-timeout", "5000", "--appendonly", "yes"]
restart: always

redis-slave-1:
network_mode: "service:redis-master-1"
container_name: redis-slave-1
image: dev-mis-registry.smiledev.net/library/redis:7.2
image: redis:latest
command: ["redis-server", "--port", "6380", "--cluster-enabled", "yes", "--cluster-config-file", "nodes.conf", "--cluster-node-timeout", "5000", "--appendonly", "yes"]
restart: always

redis-slave-2:
network_mode: "service:redis-master-1"
container_name: redis-slave-2
image: dev-mis-registry.smiledev.net/library/redis:7.2
image: redis:latest
command: ["redis-server", "--port", "6480", "--cluster-enabled", "yes", "--cluster-config-file", "nodes.conf", "--cluster-node-timeout", "5000", "--appendonly", "yes"]
restart: always

redis-slave-3:
network_mode: "service:redis-master-1"
container_name: redis-slave-3
image: dev-mis-registry.smiledev.net/library/redis:7.2
image: redis:latest
command: ["redis-server", "--port", "6580", "--cluster-enabled", "yes", "--cluster-config-file", "nodes.conf", "--cluster-node-timeout", "5000", "--appendonly", "yes"]
restart: always

redis_cluster_entry:
network_mode: "service:redis-master-1"
image: dev-mis-registry.smiledev.net/library/redis:7.2
image: redis:latest
container_name: redis_cluster_entry
command: redis-cli --cluster create 127.0.0.1:6379 127.0.0.1:6479 127.0.0.1:6579 127.0.0.1:6380 127.0.0.1:6480 127.0.0.1:6580 --cluster-yes
depends_on:
Expand All @@ -84,55 +84,55 @@ services:
redis-master-1:
network_mode: "host"
container_name: redis-master-1
image: dev-mis-registry.smiledev.net/library/redis:7.2
image: redis:latest
command: redis-server --port 6379 --cluster-enabled yes --cluster-config-file nodes.conf --cluster-node-timeout 5000 --appendonly yes
volumes:
- redis-master-1-data:/data

redis-master-2:
network_mode: "host"
container_name: redis-master-2
image: dev-mis-registry.smiledev.net/library/redis:7.2
image: redis:latest
command: redis-server --port 6479 --cluster-enabled yes --cluster-config-file nodes.conf --cluster-node-timeout 5000 --appendonly yes
volumes:
- redis-master-2-data:/data

redis-master-3:
network_mode: "host"
container_name: redis-master-3
image: dev-mis-registry.smiledev.net/library/redis:7.2
image: redis:latest
command: redis-server --port 6579 --cluster-enabled yes --cluster-config-file nodes.conf --cluster-node-timeout 5000 --appendonly yes
volumes:
- redis-master-3-data:/data

redis-slave-1:
network_mode: "host"
container_name: redis-slave-1
image: dev-mis-registry.smiledev.net/library/redis:7.2
image: redis:latest
command: redis-server --port 6380 --cluster-enabled yes --cluster-config-file nodes.conf --cluster-node-timeout 5000 --appendonly yes
volumes:
- redis-slave-1-data:/data

redis-slave-2:
network_mode: "host"
container_name: redis-slave-2
image: dev-mis-registry.smiledev.net/library/redis:7.2
image: redis:latest
command: redis-server --port 6480 --cluster-enabled yes --cluster-config-file nodes.conf --cluster-node-timeout 5000 --appendonly yes
volumes:
- redis-slave-2-data:/data

redis-slave-3:
network_mode: "host"
container_name: redis-slave-3
image: dev-mis-registry.smiledev.net/library/redis:7.2
image: redis:latest
command: redis-server --port 6580 --cluster-enabled yes --cluster-config-file nodes.conf --cluster-node-timeout 5000 --appendonly yes
volumes:
- redis-slave-3-data:/data

redis_cluster_entry:
network_mode: "host"
image: dev-mis-registry.smiledev.net/library/redis:7.2
container_name: redis_cluster_entry
image: redis:latest
container_name: redis_cluster_entryπ
command: >
bash -c "
sleep 10 &&
Expand Down

0 comments on commit f0c99f9

Please sign in to comment.