Tony Arcieri <[email protected]> wrote:
> On Thu, Nov 29, 2012 at 3:32 PM, Eric Wong <[email protected]> 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.
_______________________________________________
Unicorn mailing list - [email protected]
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying

Reply via email to