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
This commit is contained in:
parent
d2a32c363d
commit
14ad6aef41
@ -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:
|
|||||||
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:
|
|||||||
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
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user