What should I expect to happen if healthcheck fails?
I thought the new changes will not be deployed and traffic will be directed to previously working version, but looks like the service is not working after healthcheck failed. Is that expected?
32 Replies
Project ID:
N/A
N/A
are you saying the previous deployment dropped offline?
Ya
so the new deployment failed it's health checks after the 300 seconds correct?
ya
it never actually finished deploying?
what's the status on the green deployment
that seems to work fine
But I pushed another deployment that fails health checks
the red oen
one *
I thought the green deployment will take all the traffic when the new deployment fails health check?
what's the status on the green deployment? active? completed?
completed, it's the previous deployment
yeah it should stay active in this scenario
Hmm
When I call the API in my deployment it doesn't work though for some reason
It says
Application failed to respond
that makes sense given the fact that the green deployment says competed, it means its not running anymore.
ill see if i can reproduce, and raise to the team with my findings
Thanks
I'm not sure if it's completed or not, but it was working before I pushed the failed deployment
oh, please check the status
(click it)
oh ya it says completed
gotcha
I'm not able to reproduce this yet, what was your health check failing with?
still cant reproduce when my health check fails with a non 200 status code or even
service unavailable
, my previously active service is still active and accessibleIt fails with a http response 500
hmm weird
If it’s relevant it’s automatically deployed when I pushed to GitHub
i will set my test up to fail with 500 and will push from github, thank you for the added info
thanks!
still unable to reproduce
hmm
If the build fails does it bring the server down or keep the old deployment? If health check does not pass
from my screenshot, the previous successful deployment was kept and stayed active, it was not effected at all by the new build failing the health check
Hmm
Let me try that again, thanks!
Hmm I tried again. Even when build succeeds if health check fails it's still rejecting my API calls.
Maybe my setting is incorrect somewhere?
dont think thats possible, but try deploying to a new service anyways
as in creating a new project?
yeah
OK.
It looks like I'm experiencing exactly the same problem. Didn't find this post right away, posted a new one above https://discord.com/channels/713503345364697088/1202585121677643836