Revision 5b53ca79

b/man/hail.rst
16 16
DESCRIPTION
17 17
-----------
18 18

  
19
hail is a Ganeti IAllocator plugin that allows automatic instance
20
placement and automatic instance secondary node replacement using the
21
same algorithm as **hbal**(1).
19
hail is a Ganeti IAllocator plugin that implements the instance
20
placement and movement using the same algorithm as **hbal**(1).
22 21

  
23 22
The program takes input via a JSON-file containing current cluster
24 23
state and the request details, and output (on stdout) a JSON-formatted
......
30 29

  
31 30
The program uses a simplified version of the hbal algorithm.
32 31

  
33
For relocations, we try to change the secondary node of the instance
34
to all the valid other nodes; the node which results in the best
35
cluster score is chosen.
36

  
37 32
For single-node allocations (non-mirrored instances), again we
38 33
select the node which, when chosen as the primary node, gives the best
39 34
score.
......
42 37
pair; this is the only choice where the algorithm is non-trivial
43 38
with regard to cluster size.
44 39

  
45
For node evacuations (*multi-evacuate* mode), we iterate over all
46
instances which live as secondaries on those nodes and try to relocate
47
them using the single-instance relocation algorithm.
40
For node changes (*change-node* mode), we currently support DRBD
41
instances only, and all three modes (primary changes, secondary changes
42
and all node changes).
43

  
44
For group moves (*change-group* mode), again only DRBD is supported, and
45
we compute the correct sequence that will result in a group change; job
46
failure mid-way will result in a split instance. The choice of node(s)
47
on the target group is based on the group score, and the choice of group
48
is based on the same algorithm as allocations (group with lowest score
49
after placement).
50

  
51
The deprecated *relocate* and *multi-evacuate* modes are no longer
52
supported.
48 53

  
49
In all cases, the cluster scoring is identical to the hbal algorithm.
54
In all cases, the cluster (or group) scoring is identical to the hbal
55
algorithm.
50 56

  
51 57
OPTIONS
52 58
-------

Also available in: Unified diff