Skip to content

Commit 2c15a1d

Browse files
authored
[MODIFY] health check시에 RETRIES 시간 증가 (#499)
2 parents d31c6e2 + 5047af8 commit 2c15a1d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

script/deploy_container.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ deploy_container() {
77
echo "docker-compose pull & up ..."
88

99
docker-compose pull redis
10+
docker-compose up -d redis
1011
docker-compose pull ${CONTAINER_NAME}
11-
docker-compose up -d app-redis
1212
docker-compose up -d ${CONTAINER_NAME}
1313
}

script/health_check.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ health_check() {
66
local PORT=$1
77
local RETRIES="${RETRIES:-5}"
88

9-
echo "▶️ Start health check after 15 seconds"
10-
sleep 15
9+
echo "▶️ Start health check after 20 seconds"
10+
sleep 20
1111

1212
for retry_count in $(seq 1 $RETRIES); do
1313
echo "🔎 Health Check on Port ${PORT} (Attempt: ${retry_count}/${RETRIES})..."
14-
sleep 3
14+
sleep 5
1515

1616
HTTP_STATUS=$(curl -s -o /dev/null -w "%{http_code}" http://localhost:${PORT}${HEALTH_CHECK_URL})
1717

0 commit comments

Comments
 (0)