Revision 297b0cd3 doc/iallocator.rst

b/doc/iallocator.rst
205 205
  name
206 206
    the name of the instance; if the request is a realocation, then this
207 207
    name will be found in the list of instances (see below), otherwise
208
    is the FQDN of the new instance
208
    is the FQDN of the new instance; type *string*
209 209

  
210 210
  required_nodes
211 211
    how many nodes should the algorithm return; while this information
212 212
    can be deduced from the instace's disk template, it's better if
213 213
    this computation is left to Ganeti as then allocator scripts are
214
    less sensitive to changes to the disk templates
214
    less sensitive to changes to the disk templates; type *integer*
215 215

  
216 216
  disk_space_total
217 217
    the total disk space that will be used by this instance on the
218 218
    (new) nodes; again, this information can be computed from the list
219 219
    of instance disks and its template type, but Ganeti is better
220
    suited to compute it
220
    suited to compute it; type *integer*
221 221

  
222 222
.. pyassert::
223 223

  
......
274 274
  relocate_from
275 275
     a list of nodes to move the instance away from (note that with
276 276
     Ganeti 2.0, this list will always contain a single node, the
277
     current secondary of the instance)
277
     current secondary of the instance); type *list of strings*
278 278

  
279 279
As for ``multi-relocate``, it needs the three following request
280 280
arguments:
281 281

  
282 282
  instances
283
    a list of instance names to relocate
283
    a list of instance names to relocate; type *list of strings*
284 284

  
285 285
  reloc_mode
286 286
    a string indicating the relocation mode; there are three possible
......
292 292
    this argument is only accepted when ``reloc_mode``, as explained
293 293
    above, is *change_group*; if present, it must either be the empty
294 294
    list, or contain a list of group UUIDs that should be considered for
295
    relocating instances to
295
    relocating instances to; type *list of strings*
296 296

  
297 297
Finally, in the case of multi-evacuate, there's one single request
298 298
argument (in addition to ``type``):
299 299

  
300 300
  evac_nodes
301
    the names of the nodes to be evacuated
301
    the names of the nodes to be evacuated; type *list of strings*
302 302

  
303 303
Response message
304 304
~~~~~~~~~~~~~~~~

Also available in: Unified diff