Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add retry to DP healthcheck #3070

Merged
merged 3 commits into from
May 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion creator-node/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ ENV logglyDisable=$audius_loggly_disable
ENV logglyToken=$audius_loggly_token
ENV logglyTags=$audius_loggly_tags

HEALTHCHECK --interval=5s --timeout=5s \
HEALTHCHECK --interval=5s --timeout=5s --start-period=5m --retries=12 \
CMD curl -f http://localhost:4000/health_check || exit 1

# CMD ["sh", "-c", "/usr/bin/wait && exec node src/index.js"]
Expand Down
4 changes: 2 additions & 2 deletions discovery-provider/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ ENV audius_loggly_tags=$audius_loggly_tags
ENV PROMETHEUS_MULTIPROC_DIR /prometheus_data
RUN mkdir -p ${PROMETHEUS_MULTIPROC_DIR}

HEALTHCHECK --interval=5s --timeout=5s \
CMD curl -f http://localhost:5000/health_check || exit 1
HEALTHCHECK --interval=5s --timeout=5s --retries=12 \
cheran-senthil marked this conversation as resolved.
Show resolved Hide resolved
CMD pgrep alembic || curl -f http://localhost:5000/health_check || exit 1

CMD ["bash", "scripts/start.sh"]