From 5d268b018b3614b026fa4162ead973797af7123c Mon Sep 17 00:00:00 2001 From: Nikhil Soni Date: Tue, 2 Jul 2024 16:24:43 +0530 Subject: [PATCH] Remove sentinel redis from local setup --- docker-compose.yaml | 33 +++------------------------------ sentinel.conf | 15 --------------- 2 files changed, 3 insertions(+), 45 deletions(-) delete mode 100644 sentinel.conf diff --git a/docker-compose.yaml b/docker-compose.yaml index a6810dc609..b714b90a26 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -9,6 +9,7 @@ services: discovery.type: single-node xpack.security.enabled: false ES_JAVA_OPTS: -Xms512m -Xmx2g + cassandra: image: cassandra:2.1 ports: @@ -17,17 +18,14 @@ services: - 7199:7199 - 9042:9042 - 9160:9160 - # scylla: - # image: scylladb/scylla:5.4 - # ports: - # - 9042:9042 + zookeeper: image: zookeeper ports: - 2181:2181 restart: always - redis-master: + redis: image: redis:6.2.14 ports: - 6379:6379 @@ -36,28 +34,3 @@ services: - ALLOW_EMPTY_PASSWORD=yes - REDIS_PASSWORD=redis - REDIS_DATABASES=16 - - redis-slave: - image: redis:6.2.14 - command: ["redis-server", "--slaveof", "redis-master", "6379"] - ports: - - 6380:6379 - depends_on: - - redis-master - - sentinel: - image: redis:6.2.14 - command: ["redis-sentinel", "/etc/redis/sentinel.conf"] - ports: - - 26379:26379 - environment: - - SENTINEL_DOWN_AFTER=5000 - - SENTINEL_FAILOVER=500 - - SENTINEL_QUORUM=2 - volumes: - - ./sentinel.conf:/etc/redis/sentinel.conf - links: - - redis-master - depends_on: - - redis-master - - redis-slave diff --git a/sentinel.conf b/sentinel.conf deleted file mode 100644 index a96f3343e3..0000000000 --- a/sentinel.conf +++ /dev/null @@ -1,15 +0,0 @@ -# Example sentinel.conf can be downloaded from http://download.redis.io/redis-stable/sentinel.conf - -port 26379 - -dir /tmp - -sentinel monitor mymaster 127.0.0.1 6379 2 - -sentinel down-after-milliseconds mymaster 50000 - -sentinel parallel-syncs mymaster 1 - -sentinel failover-timeout mymaster 60000 - -bind 0.0.0.0 \ No newline at end of file