Hasura Build Failure with GCP Cloud Build and GKE #6066
Replies: 4 comments 2 replies
-
Hi @markerdmann, it looks like when the new build is rolled out, multiple replicas are updated at the same time and all are trying to apply migrations together. This could result in Postgres issues. If you use the following update strategy for the k8s deployment, only 1 container will be updated at a time:
This will do the following update: Let me know if this strategy helps. |
Beta Was this translation helpful? Give feedback.
-
We are investigating this, might be better to move this to
|
Beta Was this translation helpful? Give feedback.
-
Also, how big would you say your hasura metadata is? How long does it take to get applied on a dev instance (i.e. no connected clients). |
Beta Was this translation helpful? Give feedback.
-
Answered the questions above in #6052 |
Beta Was this translation helpful? Give feedback.
-
Hi, we're having a mysterious issue with our production Hasura instance. It's running on Google Kubernetes Engine with 3 replicas, and we manage deployment with GCP Cloud Build. Starting this week, the Hasura build sometimes fails, timing out after waiting 5 minutes for the container to be ready. In GKE, it usually shows that 1 or more of the Hasura pods has warnings, but the warning message just says that the container is not ready. While this is happening, all requests to Hasura are failing in production. I'm not seeing anything in the Hasura logs that would explain it.
So far the fix has been to try rebuilding once or twice in Cloud Build, and eventually a build succeeds. I can't think of anything that changed in the past week that would have triggered this. We've had about three or four incidents in the past week, and each one has caused about 5-20 minutes of downtime in production.
One interesting clue is that the Active Connections to our postgres db spike up to 100 when these outages occur. Normal deployments show no impact on Active Connections. There's a 1:1 correlation between these spikes and the outages.
Beta Was this translation helpful? Give feedback.
All reactions