Revision 6f547f96 doc/iallocator.rst
b/doc/iallocator.rst | ||
---|---|---|
322 | 322 |
"disk_template": "drbd", |
323 | 323 |
"memory": 2048, |
324 | 324 |
"disk_space_total": 3328, |
325 |
"os": "etch-image"
|
|
325 |
"os": "debootstrap+default"
|
|
326 | 326 |
}, |
327 | 327 |
"cluster_name": "cluster1.example.com", |
328 | 328 |
"instances": { |
... | ... | |
352 | 352 |
"nodes": [ |
353 | 353 |
"nodee1.com" |
354 | 354 |
], |
355 |
"os": "etch-image"
|
|
355 |
"os": "debootstrap+default"
|
|
356 | 356 |
}, |
357 | 357 |
"instance2.example.com": { |
358 | 358 |
"tags": [], |
... | ... | |
381 | 381 |
"node2.example.com", |
382 | 382 |
"node3.example.com" |
383 | 383 |
], |
384 |
"os": "etch-image"
|
|
384 |
"os": "debootstrap+default"
|
|
385 | 385 |
} |
386 | 386 |
}, |
387 | 387 |
"version": 1, |
... | ... | |
483 | 483 |
~~~~~~~~~~~~~~~~~~~~~ |
484 | 484 |
:: |
485 | 485 |
|
486 |
# gnt-instance add -t plain -m 2g --os-size 1g --swap-size 512m --iallocator dumb-allocator -o etch-image instance3
|
|
486 |
# gnt-instance add -t plain -m 2g --os-size 1g --swap-size 512m --iallocator hail -o debootstrap+default instance3
|
|
487 | 487 |
Selected nodes for the instance: node1.example.com |
488 | 488 |
* creating instance disks... |
489 | 489 |
[...] |
490 | 490 |
|
491 |
# gnt-instance add -t plain -m 3400m --os-size 1g --swap-size 512m --iallocator dumb-allocator -o etch-image instance4
|
|
491 |
# gnt-instance add -t plain -m 3400m --os-size 1g --swap-size 512m --iallocator hail -o debootstrap+default instance4
|
|
492 | 492 |
Failure: prerequisites not met for this operation: |
493 |
Can't compute nodes using iallocator 'dumb-allocator': Can't find a suitable node for position 1 (already selected: )
|
|
493 |
Can't compute nodes using iallocator 'hail': Can't find a suitable node for position 1 (already selected: )
|
|
494 | 494 |
|
495 |
# gnt-instance add -t drbd -m 1400m --os-size 1g --swap-size 512m --iallocator dumb-allocator -o etch-image instance5
|
|
495 |
# gnt-instance add -t drbd -m 1400m --os-size 1g --swap-size 512m --iallocator hail -o debootstrap+default instance5
|
|
496 | 496 |
Failure: prerequisites not met for this operation: |
497 |
Can't compute nodes using iallocator 'dumb-allocator': Can't find a suitable node for position 2 (already selected: node1.example.com) |
|
497 |
Can't compute nodes using iallocator 'hail': Can't find a suitable node for position 2 (already selected: node1.example.com) |
|
498 |
|
|
499 |
Reference implementation |
|
500 |
~~~~~~~~~~~~~~~~~~~~~~~~ |
|
501 |
|
|
502 |
Ganeti's default iallocator is "hail" which is part of the separate |
|
503 |
ganeti-htools project. In order to see its source code please clone |
|
504 |
``git://git.ganeti.org/htools.git``. Note that htools is implemented |
|
505 |
using the Haskell programming language. |
|
498 | 506 |
|
499 | 507 |
.. vim: set textwidth=72 : |
500 | 508 |
.. Local Variables: |
Also available in: Unified diff