Zero downtime for NextJS
Hey guys I'm having difficulty setting up 0 downtime for a NextJS app with 4 Replicas. This is my config:
Health Check
Update Config
Additional Traefik config modification with sticky sessions
After deploy NextJS serves new HTML but is unable to find new static files. I initially thought that this is due to sessions being balanced between old/new replicas incorrectly, but sticky sessions should've taken care of that. What am I missing?
2 Replies
^ bump, having the same issue @Siumauricio, after deploying the load balancer makes it so some users are loading the backend from an older container, we have this Traefik config:
I've created a ticket here: https://github.com/Dokploy/dokploy/issues/1487
It looks like Traefik is not able to route requests properly. Cookie is set but requests are still routed via WRR.
GitHub
Unable to use sticky sessions in traefik · Issue #1487 · Dokploy/do...
To Reproduce I have an application running via Dockerfile. I have 4 replicas and application config modified as follows: services: development-experiments-z8rb1q-service-30: loadBalancer: sticky: c...