todd at amiestreet.com
Tue Oct 9 21:18:23 UTC 2007
On Tue, 9 Oct 2007, Mark Smith wrote:
> There's no command to do that. Your best bet is to do a 'shutdown graceful'
> on your existing Perlbal and start up a new one immediately. Old
> connections are allowed to dwindle out and the new one can start handling
> things with the new configuration.
> The graceful shutdown isn't guaranteed to ever exit though (if a socket
> stays alive it can stay up for quite a while) so you still want to watch it
> and then kill it off after some period if it's still around.
Another trick you can do is use iptables to redirect incoming traffic to a
new perlbal. When you need to do a seamless restart, start up a second
perlbal on a new port and redirect from port 80 to that port. Existing
connections will be maintained, but new ones will head to the new
perlbal/configuration. Watch the stats on the first perlbal until
all the connections die out, at which point you can either kill it or do
the switch again in reverse.
More information about the perlbal