Replies: 3 comments 10 replies
-
CapRover doesn't meddle with the deployment as it's fully managed by Docker. In other words, CapRover is just a wrapper for regular docker commands. Having said that, the good news is that Docker already has a built-in healthcheck. See here for an example: CapRover asks docker to update your regular apps (without any persistent directories) using For For Another quick win is to edit the DNS caching TTL:
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
The healthcheck command seems to work well for me too HEALTHCHECK CMD wget 127.0.0.1:8000 || exit 1 alternatively, for a celery service HEALTHCHECK CMD bash -c 'celery -A celeryapp inspect ping -d celery@$HOSTNAME' || exit 1 |
Beta Was this translation helpful? Give feedback.
-
Hi there,
Thanks for the awesome package, that helps me a lot as a solo dev.
I have been using Caprover for years and been loving it.
Recently, I started to notice that there are a longer downtime in every deployment. Maybe I did not notice it in the past or my apps/services are getting bigger, but there is a ~5s where I will get a 502 HTTP status after each deployment.
I've been searching around and found #661 and #191. Still no absolute solution for this issue.
I end up with having to deploy my apps in a very early morning to avoid problem.
I understand this is a very edge case, but it would be great if we can avoid that downtime or at least reduce it to minimum.
I came across service https://www.checklyhq.com/ and I think the idea is great. Maybe we can implement something like health check (hit a certain URL and only switch the container if receives 2xx HTTP status).
Cheers,
Beta Was this translation helpful? Give feedback.
All reactions