Hi Pierre, On Fri, Sep 21, 2018 at 03:50:19PM +0000, Pierre Cheynier wrote: > I'm extensively using server-templates to avoid reloading too much but still, > backend creation or deletion has to be done by reloading as far as I know. In > my specific context, it can happen every 5/10s or so. > As a consequence, I have a lot of servers in the server-state file (>30K > lines). > > Trying to use load-server-state-from-file to prevent sending trafic to KO > servers and retoring stats numbers, I feel that it slows down the reload a > lot (multiple seconds). > > Any known hint or alternative?
Not really. Maybe we should see how the state file parser works, because multiple seconds to parse only 30K lines seems extremely long. I'm just thinking about a few things. Probably that among these 30K servers, most of them are in fact tracking other ones ? In this case it could make sense to have an option to only dump servers which are not tracking others, as for a reload it can make quite some sense. Is this the case for you ? Thanks, Willy

