Commit 68445ca
committed
[API change]: batch (decommission, start-maintenance, shutdown)-node
* node-lifecycle API change:
- apc.ActValRmNode adds DaemonIDs (omitempty)
* one multi-node transaction:
- one Smap modification, one RMD increment, one global rebalance for the entire batch
* reject node-lifecycle requests while global rebalance is running
- the check existed but was reachable only for a node already in maintenance or decommission
* refactor/amend:
- rmNodesFinal, checkRebCoexistence (previously beginRmTarget)
- stop-maintenance: decide (rebalance | no rebalance) once
* do not abort node-lifecycle request when a node disappears (e.g. keepalive-removed)
----
* CLI: support 'NODE_ID [NODE_ID...]' batch arg, comma- or space-separated
- TAB completion will suggest remaining nodes..
Signed-off-by: Alex Aizman <alex.aizman@gmail.com>1 parent 6cee6bd commit 68445ca
12 files changed
Lines changed: 587 additions & 288 deletions
File tree
- ais
- api/apc
- cmd/cli
- cli
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
| |||
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
107 | 118 | | |
108 | 119 | | |
109 | 120 | | |
| |||
0 commit comments