Skip to content

Commit 14ad6ae

Browse files
authored
perf: Add Redis Health Check (#4707)
* Update docker.md Fix a document error * Update docker.md * Update docker-compose-milvus.yml 1.Redis Health Check * Update docker-compose-pgvector.yml 1.Redis Health Check * Update docker-compose-zilliz.yml 1.Redis Health Check
1 parent d2a32c3 commit 14ad6ae

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

deploy/docker/docker-compose-milvus.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,12 @@ services:
120120
restart: always
121121
command: |
122122
redis-server --requirepass mypassword --loglevel warning --maxclients 10000 --appendonly yes --save 60 10 --maxmemory 4gb --maxmemory-policy noeviction
123+
healthcheck:
124+
test: [ "CMD", "redis-cli", "-a", "mypassword", "ping" ]
125+
interval: 10s
126+
timeout: 3s
127+
retries: 3
128+
start_period: 30s
123129
volumes:
124130
- ./redis/data:/data
125131

deploy/docker/docker-compose-pgvector.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,12 @@ services:
7979
restart: always
8080
command: |
8181
redis-server --requirepass mypassword --loglevel warning --maxclients 10000 --appendonly yes --save 60 10 --maxmemory 4gb --maxmemory-policy noeviction
82+
healthcheck:
83+
test: [ "CMD", "redis-cli", "-a", "mypassword", "ping" ]
84+
interval: 10s
85+
timeout: 3s
86+
retries: 3
87+
start_period: 30s
8288
volumes:
8389
- ./redis/data:/data
8490

deploy/docker/docker-compose-zilliz.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ services:
6161
restart: always
6262
command: |
6363
redis-server --requirepass mypassword --loglevel warning --maxclients 10000 --appendonly yes --save 60 10 --maxmemory 4gb --maxmemory-policy noeviction
64+
healthcheck:
65+
test: [ "CMD", "redis-cli", "-a", "mypassword", "ping" ]
66+
interval: 10s
67+
timeout: 3s
68+
retries: 3
69+
start_period: 30s
6470
volumes:
6571
- ./redis/data:/data
6672

0 commit comments

Comments
 (0)