Closed coops closed 12 years ago
that would be cool!
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.
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.