Fwd: Maintaining capacity during deploys

Eric Wong normalperson at yhbt.net
Fri Nov 30 22:27:39 UTC 2012

Tony Arcieri <tony.arcieri at gmail.com> wrote:
> On Thu, Nov 29, 2012 at 3:32 PM, Eric Wong <normalperson at yhbt.net> wrote:
> > If the server is down to haproxy, but still up, you can send some warmup
> > requests to the server before enabling the monitor-uri for haproxy.
> I've heard various solutions for exactly how to do warmup in this
> thread. Anyone have specific recommendations? Should I spin off a
> background thread that hits the local instance with a request/requests
> then does the SIGQUIT-style switchover?

I usually put that logic in the deployment script (probably just
with "curl -sf"), but a background thread would probably work.

I think it's a good idea anyways to ensure your newly-deployed
app is configured and running properly before throwing real
traffic for it.

More information about the mongrel-unicorn mailing list