Howdy - we use large map files for a variety of purposes, and they change regularly throughout the day.
We currently do a zero-downtime restart on a loop every X seconds to pick up the changes, which means a delay between map file changes and haproxy using them. It also means a spike in memory, which isn’t a dealbreaker.
I’d like to reflect the map changes more quickly. Our map files have 100k+ entries, and many change occur throughout the day. Is there a way to efficiently switch/replace/reload map file contents using the socket commands?
I’m playing with show map
prepare map
set map
etc, but with the sheer volume I’m hoping for a bulk mechanism. Maybe continual restarts are still the best way, but it feels like the socket commands are really close to what we need.
We’re on 2.8 LTS right now.
Thanks!