I am using caddy as load balancer for Next.js app.
I am using lb_policy ip_hash because otherwise the user navigation cause page reload when the request goes to another server.
My question is where caddy stores ip and hash represents server ip. And could it cause memory leak or storage leak?.
And how long caddy save the ip and its hash
Caddy does not store these.
Hope that helps
To further clarify, read the part at the top of reverse_proxy (Caddyfile directive) — Caddy Documentation; the important part is that the hash is used as an index into the list of upstreams, so it never needs to be stored since the input (the client IP) is hashed, then used as an index.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.