mirror of
https://github.com/NetworkCats/rustyip.git
synced 2026-11-14 00:15:13 +00:00
fix: increase deploy health check timeout and reduce start_period
This commit is contained in:
@@ -110,7 +110,7 @@
|
||||
|
||||
- name: Wait for target container health check (first deploy)
|
||||
ansible.builtin.shell: |
|
||||
for i in $(seq 1 30); do
|
||||
for i in $(seq 1 60); do
|
||||
status=$(docker inspect --format='{% raw %}{{.State.Health.Status}}{% endraw %}' "rustyip-app-{{ deploy_target }}" 2>/dev/null)
|
||||
if [ "$status" = "healthy" ]; then
|
||||
echo "healthy"
|
||||
@@ -152,7 +152,7 @@
|
||||
|
||||
- name: Wait for standby container health check
|
||||
ansible.builtin.shell: |
|
||||
for i in $(seq 1 30); do
|
||||
for i in $(seq 1 60); do
|
||||
status=$(docker inspect --format='{% raw %}{{.State.Health.Status}}{% endraw %}' "rustyip-app-{{ deploy_target }}" 2>/dev/null)
|
||||
if [ "$status" = "healthy" ]; then
|
||||
echo "healthy"
|
||||
|
||||
@@ -29,7 +29,7 @@ services:
|
||||
interval: 5s
|
||||
timeout: 3s
|
||||
retries: 3
|
||||
start_period: 15s
|
||||
start_period: 5s
|
||||
restart: unless-stopped
|
||||
ulimits:
|
||||
nofile:
|
||||
@@ -49,7 +49,7 @@ services:
|
||||
interval: 5s
|
||||
timeout: 3s
|
||||
retries: 3
|
||||
start_period: 15s
|
||||
start_period: 5s
|
||||
restart: unless-stopped
|
||||
ulimits:
|
||||
nofile:
|
||||
|
||||
Reference in New Issue
Block a user