[skip e2e]Update etcd health check (#27980)

Signed-off-by: Bennu-Li <yunmei.li@zilliz.com>
pull/27274/head
Bennu 2023-10-30 14:42:12 +08:00 committed by GitHub
parent ed4f20b0ed
commit 8bd125b122
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -12,6 +12,8 @@ services:
volumes:
- ${DOCKER_VOLUME_DIRECTORY:-.}/volumes/etcd:/etcd
command: etcd -advertise-client-urls=http://127.0.0.1:2379 -listen-client-urls http://0.0.0.0:2379 --data-dir /etcd
healthcheck:
test: ["CMD", "etcdctl", "endpoint", "health"]
minio:
container_name: milvus-minio

View File

@ -13,7 +13,7 @@ services:
- ${DOCKER_VOLUME_DIRECTORY:-.}/volumes/etcd:/etcd
command: etcd -advertise-client-urls=http://127.0.0.1:2379 -listen-client-urls http://0.0.0.0:2379 --data-dir /etcd
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:2379/health"]
test: ["CMD", "etcdctl", "endpoint", "health"]
interval: 30s
timeout: 20s
retries: 3