Podman rootless container
Ubuntu server 20.04
I’m using my back+front stack with several podman rootless containers on VPS with two cores. reverse_proxy point to the container with Python aiohhtp server and all working pretty excellent. But, when I renew (stop, remove, run up) the backend container under live load, the requests to reverse_proxy backend are rejected. So, I know about Load Balancing, but I read about ‘handle_errors’…
Is there a way to treat such a situation, while backend container renewing (suppose 30 sec) to Caddy keeping each request only once for a particular time limit then trying again, despite that the backend container being removed?
And, what about renewing the frontend Caddy container itself by reason that it encapsulates all frontend files cause particular release version (without bind ‘/srv’ volume)?
What is the easiest way you see to refresh a Caddy container under load without interrupting user requests in a resource-constrained environment?