root / man / gnt-debug.sgml @ 9b94905f
History | View | Annotate | Download (6.3 kB)
1 | d3b4cf9f | Iustin Pop | <!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [ |
---|---|---|---|
2 | d3b4cf9f | Iustin Pop | |
3 | d3b4cf9f | Iustin Pop | <!-- Fill in your name for FIRSTNAME and SURNAME. --> |
4 | d3b4cf9f | Iustin Pop | <!-- Please adjust the date whenever revising the manpage. --> |
5 | d3b4cf9f | Iustin Pop | <!ENTITY dhdate "<date>February 12, 2009</date>"> |
6 | d3b4cf9f | Iustin Pop | <!-- SECTION should be 1-8, maybe w/ subsection other parameters are |
7 | d3b4cf9f | Iustin Pop | allowed: see man(7), man(1). --> |
8 | d3b4cf9f | Iustin Pop | <!ENTITY dhsection "<manvolnum>8</manvolnum>"> |
9 | d3b4cf9f | Iustin Pop | <!ENTITY dhucpackage "<refentrytitle>gnt-debug</refentrytitle>"> |
10 | d3b4cf9f | Iustin Pop | <!ENTITY dhpackage "gnt-debug"> |
11 | d3b4cf9f | Iustin Pop | |
12 | d3b4cf9f | Iustin Pop | <!ENTITY debian "<productname>Debian</productname>"> |
13 | d3b4cf9f | Iustin Pop | <!ENTITY gnu "<acronym>GNU</acronym>"> |
14 | d3b4cf9f | Iustin Pop | <!ENTITY gpl "&gnu; <acronym>GPL</acronym>"> |
15 | d3b4cf9f | Iustin Pop | <!ENTITY footer SYSTEM "footer.sgml"> |
16 | d3b4cf9f | Iustin Pop | ]> |
17 | d3b4cf9f | Iustin Pop | |
18 | d3b4cf9f | Iustin Pop | <refentry> |
19 | d3b4cf9f | Iustin Pop | <refentryinfo> |
20 | d3b4cf9f | Iustin Pop | <copyright> |
21 | d3b4cf9f | Iustin Pop | <year>2006</year> |
22 | d3b4cf9f | Iustin Pop | <year>2007</year> |
23 | d3b4cf9f | Iustin Pop | <year>2008</year> |
24 | d3b4cf9f | Iustin Pop | <year>2009</year> |
25 | d3b4cf9f | Iustin Pop | <holder>Google Inc.</holder> |
26 | d3b4cf9f | Iustin Pop | </copyright> |
27 | d3b4cf9f | Iustin Pop | &dhdate; |
28 | d3b4cf9f | Iustin Pop | </refentryinfo> |
29 | d3b4cf9f | Iustin Pop | <refmeta> |
30 | d3b4cf9f | Iustin Pop | &dhucpackage; |
31 | d3b4cf9f | Iustin Pop | |
32 | d3b4cf9f | Iustin Pop | &dhsection; |
33 | d3b4cf9f | Iustin Pop | <refmiscinfo>ganeti 2.0</refmiscinfo> |
34 | d3b4cf9f | Iustin Pop | </refmeta> |
35 | d3b4cf9f | Iustin Pop | <refnamediv> |
36 | d3b4cf9f | Iustin Pop | <refname>&dhpackage;</refname> |
37 | d3b4cf9f | Iustin Pop | |
38 | d3b4cf9f | Iustin Pop | <refpurpose>debug commands</refpurpose> |
39 | d3b4cf9f | Iustin Pop | </refnamediv> |
40 | d3b4cf9f | Iustin Pop | <refsynopsisdiv> |
41 | d3b4cf9f | Iustin Pop | <cmdsynopsis> |
42 | d3b4cf9f | Iustin Pop | <command>&dhpackage; </command> |
43 | d3b4cf9f | Iustin Pop | |
44 | d3b4cf9f | Iustin Pop | <arg choice="req">command</arg> |
45 | d3b4cf9f | Iustin Pop | <arg>arguments...</arg> |
46 | d3b4cf9f | Iustin Pop | </cmdsynopsis> |
47 | d3b4cf9f | Iustin Pop | </refsynopsisdiv> |
48 | d3b4cf9f | Iustin Pop | <refsect1> |
49 | d3b4cf9f | Iustin Pop | <title>DESCRIPTION</title> |
50 | d3b4cf9f | Iustin Pop | |
51 | d3b4cf9f | Iustin Pop | <para> |
52 | d3b4cf9f | Iustin Pop | The <command>&dhpackage;</command> is used for debugging the |
53 | d3b4cf9f | Iustin Pop | ganeti system. |
54 | d3b4cf9f | Iustin Pop | </para> |
55 | d3b4cf9f | Iustin Pop | |
56 | d3b4cf9f | Iustin Pop | </refsect1> |
57 | d3b4cf9f | Iustin Pop | <refsect1> |
58 | d3b4cf9f | Iustin Pop | <title>COMMANDS</title> |
59 | d3b4cf9f | Iustin Pop | |
60 | d3b4cf9f | Iustin Pop | <refsect2> |
61 | d3b4cf9f | Iustin Pop | <title>ALLOCATOR</title> |
62 | d3b4cf9f | Iustin Pop | |
63 | d3b4cf9f | Iustin Pop | <cmdsynopsis> |
64 | d3b4cf9f | Iustin Pop | <command>allocator</command> |
65 | d3b4cf9f | Iustin Pop | <arg>--debug</arg> |
66 | d3b4cf9f | Iustin Pop | <arg>--dir <replaceable>DIRECTION</replaceable></arg> |
67 | d3b4cf9f | Iustin Pop | <arg choice="req">--algorithm <replaceable>ALLOCATOR</replaceable> |
68 | d3b4cf9f | Iustin Pop | </arg> |
69 | d3b4cf9f | Iustin Pop | <arg>--mode <replaceable>MODE</replaceable></arg> |
70 | d3b4cf9f | Iustin Pop | <arg>--mem <replaceable>MEMORY</replaceable></arg> |
71 | d3b4cf9f | Iustin Pop | <arg>--disks <replaceable>DISKS</replaceable></arg> |
72 | d3b4cf9f | Iustin Pop | <arg>--disk-template <replaceable>TEMPLATE</replaceable></arg> |
73 | d3b4cf9f | Iustin Pop | <arg>--nics <replaceable>NICS</replaceable></arg> |
74 | d3b4cf9f | Iustin Pop | <arg>--os-type <replaceable>OS</replaceable></arg> |
75 | d3b4cf9f | Iustin Pop | <arg>--vcpus <replaceable>VCPUS</replaceable></arg> |
76 | d3b4cf9f | Iustin Pop | <arg>--tags <replaceable>TAGS</replaceable></arg> |
77 | d3b4cf9f | Iustin Pop | <arg choice="req"><replaceable>instance</replaceable></arg> |
78 | d3b4cf9f | Iustin Pop | </cmdsynopsis> |
79 | d3b4cf9f | Iustin Pop | |
80 | d3b4cf9f | Iustin Pop | <para> |
81 | d3b4cf9f | Iustin Pop | Executes a test run of the <emphasis>iallocator</emphasis> framework. |
82 | d3b4cf9f | Iustin Pop | </para> |
83 | d3b4cf9f | Iustin Pop | |
84 | d3b4cf9f | Iustin Pop | <para> |
85 | d3b4cf9f | Iustin Pop | The command will build input for a given iallocator script |
86 | d3b4cf9f | Iustin Pop | (named with the <option>--algorithm</option> option), and |
87 | d3b4cf9f | Iustin Pop | either show this input data (if |
88 | d3b4cf9f | Iustin Pop | <replaceable>DIRECTION</replaceable> is |
89 | d3b4cf9f | Iustin Pop | <emphasis>in</emphasis>) or run the iallocator script and show |
90 | d3b4cf9f | Iustin Pop | its output (if <replaceable>DIRECTION</replaceable> is |
91 | d3b4cf9f | Iustin Pop | <emphasis>out</emphasis>). |
92 | d3b4cf9f | Iustin Pop | </para> |
93 | d3b4cf9f | Iustin Pop | |
94 | d3b4cf9f | Iustin Pop | <para> |
95 | d3b4cf9f | Iustin Pop | If the <replaceable>MODE</replaceable> is |
96 | d3b4cf9f | Iustin Pop | <emphasis>allocate</emphasis>, then an instance definition is |
97 | d3b4cf9f | Iustin Pop | built from the other arguments and sent to the script, |
98 | d3b4cf9f | Iustin Pop | otherwise (<replaceable>MODE</replaceable> is |
99 | d3b4cf9f | Iustin Pop | <emphasis>relocate</emphasis>) an existing instance name must |
100 | d3b4cf9f | Iustin Pop | be passed as the first argument. |
101 | d3b4cf9f | Iustin Pop | </para> |
102 | d3b4cf9f | Iustin Pop | |
103 | d3b4cf9f | Iustin Pop | <para> |
104 | d3b4cf9f | Iustin Pop | This build of ganeti will look for iallocator scripts in the |
105 | d3b4cf9f | Iustin Pop | following directories: <filename |
106 | d3b4cf9f | Iustin Pop | class="directory">@CUSTOM_IALLOCATOR_SEARCH_PATH@</filename>; |
107 | d3b4cf9f | Iustin Pop | for more details about this framework, see the HTML or PDF |
108 | d3b4cf9f | Iustin Pop | documentation. |
109 | d3b4cf9f | Iustin Pop | </para> |
110 | 949bdabe | Iustin Pop | </refsect2> |
111 | d3b4cf9f | Iustin Pop | |
112 | d3b4cf9f | Iustin Pop | <refsect2> |
113 | d3b4cf9f | Iustin Pop | <title>DELAY</title> |
114 | d3b4cf9f | Iustin Pop | |
115 | d3b4cf9f | Iustin Pop | <cmdsynopsis> |
116 | d3b4cf9f | Iustin Pop | <command>delay</command> |
117 | d3b4cf9f | Iustin Pop | <arg>--debug</arg> |
118 | d3b4cf9f | Iustin Pop | <arg>--no-master</arg> |
119 | d3b4cf9f | Iustin Pop | <arg choice="opt" rep="repeat">-n <replaceable>NODE</replaceable></arg> |
120 | d3b4cf9f | Iustin Pop | <arg choice="req"><replaceable>duration</replaceable></arg> |
121 | d3b4cf9f | Iustin Pop | </cmdsynopsis> |
122 | d3b4cf9f | Iustin Pop | |
123 | d3b4cf9f | Iustin Pop | <para> |
124 | d3b4cf9f | Iustin Pop | Run a test opcode (a sleep) on the master (internally in the |
125 | d3b4cf9f | Iustin Pop | command) and on selected nodes (via an RPC call). This server |
126 | d3b4cf9f | Iustin Pop | no other purpose but to execute a test operation. |
127 | d3b4cf9f | Iustin Pop | </para> |
128 | d3b4cf9f | Iustin Pop | |
129 | d3b4cf9f | Iustin Pop | <para> |
130 | d3b4cf9f | Iustin Pop | The <option>-n</option> option can be given multiple times to |
131 | d3b4cf9f | Iustin Pop | select the nodes for the RPC call. By default, the delay will |
132 | d3b4cf9f | Iustin Pop | also be executed on the master, unless the |
133 | d3b4cf9f | Iustin Pop | <option>--no-master</option> option is passed. |
134 | d3b4cf9f | Iustin Pop | </para> |
135 | d3b4cf9f | Iustin Pop | |
136 | d3b4cf9f | Iustin Pop | <para> |
137 | d3b4cf9f | Iustin Pop | The <replaceable>delay</replaceable> argument will be |
138 | d3b4cf9f | Iustin Pop | interpreted as a floating point number. |
139 | d3b4cf9f | Iustin Pop | </para> |
140 | d3b4cf9f | Iustin Pop | |
141 | d3b4cf9f | Iustin Pop | </refsect2> |
142 | d3b4cf9f | Iustin Pop | |
143 | d3b4cf9f | Iustin Pop | <refsect2> |
144 | d3b4cf9f | Iustin Pop | <title>SUBMIT-JOB</title> |
145 | d3b4cf9f | Iustin Pop | |
146 | d3b4cf9f | Iustin Pop | <cmdsynopsis> |
147 | d3b4cf9f | Iustin Pop | <command>submit-job</command> |
148 | 9d95c3af | Iustin Pop | <arg choice="opt">--verbose</arg> |
149 | 9d95c3af | Iustin Pop | <arg choice="opt">--timing-stats</arg> |
150 | 9d95c3af | Iustin Pop | <arg choice="opt">--job-repeat <option>N</option></arg> |
151 | 9d95c3af | Iustin Pop | <arg choice="opt">--op-repeat <option>N</option></arg> |
152 | 99036060 | Iustin Pop | <arg choice="req" rep="repeat">opcodes_file</arg> |
153 | d3b4cf9f | Iustin Pop | </cmdsynopsis> |
154 | d3b4cf9f | Iustin Pop | |
155 | d3b4cf9f | Iustin Pop | <para> |
156 | 99036060 | Iustin Pop | This command builds a list of opcodes from JSON-format files |
157 | 99036060 | Iustin Pop | and submits for each file a job to the master daemon. It can |
158 | d3b4cf9f | Iustin Pop | be used to test some options that are not available via the |
159 | d3b4cf9f | Iustin Pop | command line. |
160 | d3b4cf9f | Iustin Pop | </para> |
161 | d3b4cf9f | Iustin Pop | |
162 | 9d95c3af | Iustin Pop | <para> |
163 | 9d95c3af | Iustin Pop | The <option>verbose</option> option will job the job IDs of |
164 | 9d95c3af | Iustin Pop | the submitted jobs and the progress in waiting for the jobs; |
165 | 9d95c3af | Iustin Pop | the <option>timing-stats</option> option will show some |
166 | 9d95c3af | Iustin Pop | overall statistics with the number of total opcodes and jobs |
167 | 9d95c3af | Iustin Pop | submitted, and time time for each stage (submit, exec, total). |
168 | 9d95c3af | Iustin Pop | </para> |
169 | 9d95c3af | Iustin Pop | |
170 | 9d95c3af | Iustin Pop | <para> |
171 | 9d95c3af | Iustin Pop | The <option>job-repeat</option> and <option>op-repeat</option> |
172 | 9d95c3af | Iustin Pop | options allow to submit multiple copies of the passed |
173 | 9d95c3af | Iustin Pop | arguments; the job repeat will cause N copies of each job |
174 | 9d95c3af | Iustin Pop | (input file) to be submitted (equivalent to passing the |
175 | 9d95c3af | Iustin Pop | arguments N times) while the op repeat will cause each job to |
176 | 9d95c3af | Iustin Pop | contain multiple copies of the opcodes (equivalent to each |
177 | 9d95c3af | Iustin Pop | file containing N copies of the opcodes). |
178 | 9d95c3af | Iustin Pop | </para> |
179 | 9d95c3af | Iustin Pop | |
180 | d3b4cf9f | Iustin Pop | </refsect2> |
181 | d3b4cf9f | Iustin Pop | |
182 | d3b4cf9f | Iustin Pop | </refsect1> |
183 | d3b4cf9f | Iustin Pop | |
184 | d3b4cf9f | Iustin Pop | &footer; |
185 | d3b4cf9f | Iustin Pop | |
186 | d3b4cf9f | Iustin Pop | </refentry> |
187 | d3b4cf9f | Iustin Pop | |
188 | d3b4cf9f | Iustin Pop | <!-- Keep this comment at the end of the file |
189 | d3b4cf9f | Iustin Pop | Local variables: |
190 | d3b4cf9f | Iustin Pop | mode: sgml |
191 | d3b4cf9f | Iustin Pop | sgml-omittag:t |
192 | d3b4cf9f | Iustin Pop | sgml-shorttag:t |
193 | d3b4cf9f | Iustin Pop | sgml-minimize-attributes:nil |
194 | d3b4cf9f | Iustin Pop | sgml-always-quote-attributes:t |
195 | d3b4cf9f | Iustin Pop | sgml-indent-step:2 |
196 | d3b4cf9f | Iustin Pop | sgml-indent-data:t |
197 | d3b4cf9f | Iustin Pop | sgml-parent-document:nil |
198 | d3b4cf9f | Iustin Pop | sgml-default-dtd-file:nil |
199 | d3b4cf9f | Iustin Pop | sgml-exposed-tags:nil |
200 | d3b4cf9f | Iustin Pop | sgml-local-catalogs:nil |
201 | d3b4cf9f | Iustin Pop | sgml-local-ecat-files:nil |
202 | d3b4cf9f | Iustin Pop | End: |
203 | d3b4cf9f | Iustin Pop | --> |