Commit 14ad6aef by Hwting Committed by GitHub

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
parent d2a32c36
...@@ -120,6 +120,12 @@ services: ...@@ -120,6 +120,12 @@ services:
restart: always restart: always
command: | command: |
redis-server --requirepass mypassword --loglevel warning --maxclients 10000 --appendonly yes --save 60 10 --maxmemory 4gb --maxmemory-policy noeviction redis-server --requirepass mypassword --loglevel warning --maxclients 10000 --appendonly yes --save 60 10 --maxmemory 4gb --maxmemory-policy noeviction
healthcheck:
test: [ "CMD", "redis-cli", "-a", "mypassword", "ping" ]
interval: 10s
timeout: 3s
retries: 3
start_period: 30s
volumes: volumes:
- ./redis/data:/data - ./redis/data:/data
......
...@@ -79,6 +79,12 @@ services: ...@@ -79,6 +79,12 @@ services:
restart: always restart: always
command: | command: |
redis-server --requirepass mypassword --loglevel warning --maxclients 10000 --appendonly yes --save 60 10 --maxmemory 4gb --maxmemory-policy noeviction redis-server --requirepass mypassword --loglevel warning --maxclients 10000 --appendonly yes --save 60 10 --maxmemory 4gb --maxmemory-policy noeviction
healthcheck:
test: [ "CMD", "redis-cli", "-a", "mypassword", "ping" ]
interval: 10s
timeout: 3s
retries: 3
start_period: 30s
volumes: volumes:
- ./redis/data:/data - ./redis/data:/data
......
...@@ -61,6 +61,12 @@ services: ...@@ -61,6 +61,12 @@ services:
restart: always restart: always
command: | command: |
redis-server --requirepass mypassword --loglevel warning --maxclients 10000 --appendonly yes --save 60 10 --maxmemory 4gb --maxmemory-policy noeviction redis-server --requirepass mypassword --loglevel warning --maxclients 10000 --appendonly yes --save 60 10 --maxmemory 4gb --maxmemory-policy noeviction
healthcheck:
test: [ "CMD", "redis-cli", "-a", "mypassword", "ping" ]
interval: 10s
timeout: 3s
retries: 3
start_period: 30s
volumes: volumes:
- ./redis/data:/data - ./redis/data:/data
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment