Revision 3ccafd0e
ID | 3ccafd0e24fe5ca7f95bcc91f8bb41580709737f |
Parent | 0d0e9090 |
Child | 10799c59 |
Add an interface for the drain flag changes/query
This adds the set/reset in the jqueue and luxi modules, and a way to
query it in OpQueryConfigValues, and also the comand line interface for
it:
$ gnt-cluster queue info
The drain flag is unset
$ gnt-cluster queue drain
$ gnt-cluster queue info
The drain flag is set
$ gnt-cluster queue undrain
$ gnt-cluster queue info
The drain flag is unset
The choice of making the setting via luxi and not an opcode is that
opcodes can't be executed when drained, but we don't query via luxi
since in the future it might become a cluster property as opposed to a
node one.
Reviewed-by: imsnah
Files
- added
- modified
- copied
- renamed
- deleted