|
1 |
HSQUEEZE(1) Ganeti | Version @GANETI_VERSION@
|
|
2 |
=============================================
|
|
3 |
|
|
4 |
NAME
|
|
5 |
----
|
|
6 |
|
|
7 |
hsqueeze \- Dynamic power management
|
|
8 |
|
|
9 |
SYNOPSIS
|
|
10 |
--------
|
|
11 |
|
|
12 |
**hsqueeze** {backend options...} [algorithm options...] [reporting options...]
|
|
13 |
|
|
14 |
**hsqueeze** \--version
|
|
15 |
|
|
16 |
Backend options:
|
|
17 |
|
|
18 |
{ **-L[** *path* **]** | **-t** *data-file* }
|
|
19 |
|
|
20 |
Algorithm options:
|
|
21 |
|
|
22 |
**[ \--target-resources=*factor* ]**
|
|
23 |
|
|
24 |
Reporting options:
|
|
25 |
|
|
26 |
**[ -S *file* ]**
|
|
27 |
|
|
28 |
|
|
29 |
DESCRIPTION
|
|
30 |
-----------
|
|
31 |
|
|
32 |
hsqueeze does dynamic power management, by powering up or shutting down nodes,
|
|
33 |
depending on the current load of the cluster. Currently, only suggesting nodes
|
|
34 |
to be powered off is implemented.
|
|
35 |
|
|
36 |
ALGORITHM
|
|
37 |
~~~~~~~~~
|
|
38 |
|
|
39 |
hsqueeze considers all online non-master nodes with only externally mirrored
|
|
40 |
instances as candidates for being taken offline. These nodes are iteratively,
|
|
41 |
starting from the node with the least number of instances, added to the set
|
|
42 |
of nodes to be put offline, if possible. A set of nodes is considered as suitable
|
|
43 |
for being taken offline, if, after marking these nodes as offline, balancing the
|
|
44 |
cluster by the algorithm used by **hbal**\(1) yields a situation where all instances
|
|
45 |
are located on online nodes, and each node has at least the target resources free
|
|
46 |
for new instances.
|
|
47 |
|
|
48 |
OPTIONS
|
|
49 |
-------
|
|
50 |
|
|
51 |
-L [*path*]
|
|
52 |
Backend specification: collect data directly from the master daemon,
|
|
53 |
which is to be contacted via LUXI (an internal Ganeti protocol). The
|
|
54 |
option is described in the man page **htools**\(1).
|
|
55 |
|
|
56 |
-S *filename*, \--save-cluster=*filename*
|
|
57 |
If given, the state of the cluster before the squeezing is saved to
|
|
58 |
the given file plus the extension "original"
|
|
59 |
(i.e. *filename*.original), and the state at the end of the
|
|
60 |
squeezing operation is saved to the given file plus the extension "squeezed"
|
|
61 |
(i.e. *filename*.squeezed).
|
|
62 |
|
|
63 |
-t *datafile*, \--text-data=*datafile*
|
|
64 |
Backend specification: the name of the file holding node and instance
|
|
65 |
information (if not collecting LUXI). This or one of the
|
|
66 |
other backends must be selected. The option is described in the man
|
|
67 |
page **htools**\(1).
|
|
68 |
|
|
69 |
\--target-resources=*factor*
|
|
70 |
Specify the amount of resources to remain free on any node after squeezing.
|
|
71 |
The value is reported a multiple of the standard instance specification, as
|
|
72 |
taken from the instance policy.
|