Re: Reloading maps?

2017-05-12 Thread Willy Tarreau
On Thu, May 11, 2017 at 04:23:14PM -0700, James Brown wrote:
> Is there any good way to reload a map, short of either (a) reloading
> haproxy every time the map changes, or (b) feeding the entire map into the
> control socket as a series of `set map` statements?
> 
> I've got a map generated by an external program; we're currently doing (b)
> and it feels a little fragile...

We could possibly imagine implementing a "bulk import" mode on the CLI
to address this. We could imagine bringing atomicity this way. There are
also alternatives consisting in periodically retrieving them from a URL,
as implemented in the enterprise version, but we don't have this here.

Willy



Reloading maps?

2017-05-11 Thread James Brown
Is there any good way to reload a map, short of either (a) reloading
haproxy every time the map changes, or (b) feeding the entire map into the
control socket as a series of `set map` statements?

I've got a map generated by an external program; we're currently doing (b)
and it feels a little fragile...

-- 
James Brown
Engineer