Is there any way to set a healthcheck retry count in Containerized services? #1640
Answered
by
wanghaoyang1995
wanghaoyang1995
asked this question in
Q&A
-
Hello, everyone!
My service need at least 3 minutes to fully start up, so 5 times retry is not enough for me. This is my config file: # This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI with Maven
on: [push, pull_request]
jobs:
services-test-job:
runs-on: ubuntu-20.04
services:
vitess1202:
image: wanghy1995/vtdriver-env:latest
options: >-
--health-cmd "mysqladmin ping -h127.0.0.1 -P15306 -umysql_user -pmysql_password"
--health-interval 5s
--health-timeout 5s
--health-retries 50
--health-start-period 150s
ports:
- 16100:16100
- 16101:16101
- 16102:16102
- 16300:16300
- 16301:16301
- 16302:16302
- 16400:16400
- 16401:16401
- 16402:16402
- 15000:15000
- 15001:15001
- 15306:15306
- 15100:15100
- 15101:15101
- 15102:15102
- 15300:15300
- 15301:15301
- 15302:15302
- 15400:15400
- 15401:15401
- 15402:15402
- 2379:2379
- 17100:17100
- 17101:17101
- 17102:17102
- 17300:17300
- 17301:17301
- 17302:17302
- 17400:17400
- 17401:17401
- 17402:17402
env:
HOST_IP: 127.0.0.1
steps:
- uses: actions/checkout@v2
- curl -I "http://127.0.0.1:15001/debug/status" |
Beta Was this translation helpful? Give feedback.
Answered by
wanghaoyang1995
Jan 29, 2022
Replies: 1 comment
-
Sorry, it's my fault. This is a problem with my container statup config. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
wanghaoyang1995
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sorry, it's my fault. This is a problem with my container statup config.