From 8bd125b12277288554a1d0393a169e9956d5dc6b Mon Sep 17 00:00:00 2001 From: Bennu Date: Mon, 30 Oct 2023 14:42:12 +0800 Subject: [PATCH] [skip e2e]Update etcd health check (#27980) Signed-off-by: Bennu-Li --- deployments/docker/gpu/standalone/docker-compose.yml | 2 ++ deployments/docker/standalone/docker-compose.yml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/deployments/docker/gpu/standalone/docker-compose.yml b/deployments/docker/gpu/standalone/docker-compose.yml index 4c024d09f0..63a52a13a3 100644 --- a/deployments/docker/gpu/standalone/docker-compose.yml +++ b/deployments/docker/gpu/standalone/docker-compose.yml @@ -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 diff --git a/deployments/docker/standalone/docker-compose.yml b/deployments/docker/standalone/docker-compose.yml index 763e98da16..440c314da3 100644 --- a/deployments/docker/standalone/docker-compose.yml +++ b/deployments/docker/standalone/docker-compose.yml @@ -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