twitter-archive / kestrel

simple, distributed message queue system (inactive)
http://twitter.github.io/kestrel
Other
2.77k stars 312 forks source link

no kestrel drain command #82

Closed coops closed 12 years ago

coops commented 12 years ago

it would be nice if kestrel supported a command DRAIN that would refuse SET commands but accept GET commands. would be a great way to clear servers for maintenance.

robey commented 12 years ago

that would be cool!

zuercher commented 12 years ago

latest master support something similar: there is now a STATUS command that can be used to switch the server between up (read/write), read-only, and quiescent states. This can be configured with service discovery via zookeeper, but also works by itself, rejecting the appropriate commands given the current server state.