Statistics
| Branch: | Tag: | Revision:

root / man / ganeti-watcher.sgml @ 049088b2

History | View | Annotate | Download (3.9 kB)

1 a8083063 Iustin Pop
<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
2 a8083063 Iustin Pop
3 a8083063 Iustin Pop
  <!-- Fill in your name for FIRSTNAME and SURNAME. -->
4 a8083063 Iustin Pop
  <!-- Please adjust the date whenever revising the manpage. -->
5 e0897adf Michael Hanselmann
  <!ENTITY dhdate      "<date>June 08, 2010</date>">
6 a8083063 Iustin Pop
  <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
7 a8083063 Iustin Pop
       allowed: see man(7), man(1). -->
8 a8083063 Iustin Pop
  <!ENTITY dhsection   "<manvolnum>8</manvolnum>">
9 a8083063 Iustin Pop
  <!ENTITY dhucpackage "<refentrytitle>ganeti-watcher</refentrytitle>">
10 a8083063 Iustin Pop
  <!ENTITY dhpackage   "ganeti-watcher">
11 a8083063 Iustin Pop
12 a8083063 Iustin Pop
  <!ENTITY debian      "<productname>Debian</productname>">
13 a8083063 Iustin Pop
  <!ENTITY gnu         "<acronym>GNU</acronym>">
14 a8083063 Iustin Pop
  <!ENTITY gpl         "&gnu; <acronym>GPL</acronym>">
15 a8083063 Iustin Pop
  <!ENTITY footer SYSTEM "footer.sgml">
16 a8083063 Iustin Pop
]>
17 a8083063 Iustin Pop
18 a8083063 Iustin Pop
<refentry>
19 a8083063 Iustin Pop
  <refentryinfo>
20 a8083063 Iustin Pop
    <copyright>
21 a8083063 Iustin Pop
      <year>2007</year>
22 320d986d Iustin Pop
      <year>2008</year>
23 320d986d Iustin Pop
      <year>2009</year>
24 e0897adf Michael Hanselmann
      <year>2010</year>
25 a8083063 Iustin Pop
      <holder>Google Inc.</holder>
26 a8083063 Iustin Pop
    </copyright>
27 a8083063 Iustin Pop
    &dhdate;
28 a8083063 Iustin Pop
  </refentryinfo>
29 a8083063 Iustin Pop
  <refmeta>
30 a8083063 Iustin Pop
    &dhucpackage;
31 a8083063 Iustin Pop
32 a8083063 Iustin Pop
    &dhsection;
33 e0897adf Michael Hanselmann
    <refmiscinfo>Ganeti 2.2</refmiscinfo>
34 a8083063 Iustin Pop
  </refmeta>
35 a8083063 Iustin Pop
  <refnamediv>
36 a8083063 Iustin Pop
    <refname>&dhpackage;</refname>
37 a8083063 Iustin Pop
38 e0897adf Michael Hanselmann
    <refpurpose>Ganeti cluster watcher</refpurpose>
39 a8083063 Iustin Pop
  </refnamediv>
40 a8083063 Iustin Pop
  <refsynopsisdiv>
41 a8083063 Iustin Pop
    <cmdsynopsis>
42 a8083063 Iustin Pop
      <command>&dhpackage; </command>
43 a8083063 Iustin Pop
44 a8083063 Iustin Pop
    </cmdsynopsis>
45 a8083063 Iustin Pop
  </refsynopsisdiv>
46 a8083063 Iustin Pop
  <refsect1>
47 a8083063 Iustin Pop
    <title>DESCRIPTION</title>
48 a8083063 Iustin Pop
49 a8083063 Iustin Pop
    <para>
50 a8083063 Iustin Pop
      The <command>&dhpackage;</command> is a periodically run script
51 a8083063 Iustin Pop
      which is responsible for keeping the instances in the correct
52 6328fea3 Iustin Pop
      status. It has two separate functions, one for the master node
53 6328fea3 Iustin Pop
      and another one that runs on every node.
54 a8083063 Iustin Pop
    </para>
55 a8083063 Iustin Pop
56 6328fea3 Iustin Pop
    <refsect2>
57 6328fea3 Iustin Pop
      <title>Master operations</title>
58 f69dab6d Iustin Pop
59 6328fea3 Iustin Pop
      <para>
60 6328fea3 Iustin Pop
        Its primary function is to try to keep running all instances
61 6328fea3 Iustin Pop
        which are marked as <emphasis>up</emphasis> in the configuration
62 6328fea3 Iustin Pop
        file, by trying to start them a limited number of times.
63 6328fea3 Iustin Pop
      </para>
64 a8083063 Iustin Pop
65 6328fea3 Iustin Pop
      <para>
66 6328fea3 Iustin Pop
        Its other function is to <quote>repair</quote> DRBD links by
67 6328fea3 Iustin Pop
        reactivating the block devices of instances which have
68 6328fea3 Iustin Pop
        secondaries on nodes that have been rebooted.
69 6328fea3 Iustin Pop
      </para>
70 6328fea3 Iustin Pop
71 6328fea3 Iustin Pop
    </refsect2>
72 6328fea3 Iustin Pop
73 6328fea3 Iustin Pop
    <refsect2>
74 6328fea3 Iustin Pop
75 6328fea3 Iustin Pop
      <title>Node operations</title>
76 6328fea3 Iustin Pop
77 6328fea3 Iustin Pop
      <para>
78 6328fea3 Iustin Pop
        The watcher will restart any down daemons that are appropriate
79 6328fea3 Iustin Pop
        for the current node.
80 6328fea3 Iustin Pop
      </para>
81 6328fea3 Iustin Pop
82 6328fea3 Iustin Pop
      <para>
83 6328fea3 Iustin Pop
        In addition, it will execute any scripts which exist under the
84 e0897adf Michael Hanselmann
        <quote>watcher</quote> directory in the Ganeti hooks directory
85 6328fea3 Iustin Pop
        (@SYSCONFDIR@/ganeti/hooks). This should be used for
86 6328fea3 Iustin Pop
        lightweight actions, like starting any extra daemons.
87 6328fea3 Iustin Pop
      </para>
88 6328fea3 Iustin Pop
89 6328fea3 Iustin Pop
      <para>
90 6328fea3 Iustin Pop
        If the cluster
91 6328fea3 Iustin Pop
        parameter <literal>maintain_node_health</literal> is enabled,
92 6328fea3 Iustin Pop
        then the watcher will also shutdown instances and DRBD devices
93 6328fea3 Iustin Pop
        if the node is declared as offline by known master candidates.
94 6328fea3 Iustin Pop
      </para>
95 6328fea3 Iustin Pop
96 6328fea3 Iustin Pop
      <para>
97 6328fea3 Iustin Pop
        The watcher does synchronous queries but will submit jobs for
98 6328fea3 Iustin Pop
        executing the changes. Due to locking, it could be that the jobs
99 6328fea3 Iustin Pop
        execute much later than the watcher executes them.
100 6328fea3 Iustin Pop
      </para>
101 6328fea3 Iustin Pop
102 6328fea3 Iustin Pop
    </refsect2>
103 6328fea3 Iustin Pop
104 6328fea3 Iustin Pop
105 6328fea3 Iustin Pop
  </refsect1>
106 6328fea3 Iustin Pop
107 6328fea3 Iustin Pop
  <refsect1>
108 6328fea3 Iustin Pop
    <title>FILES</title>
109 a8083063 Iustin Pop
110 a8083063 Iustin Pop
    <para>
111 96b9071c Iustin Pop
      The command has a state file located at
112 6328fea3 Iustin Pop
      <filename>@LOCALSTATEDIR@/lib/ganeti/watcher.data</filename>
113 6328fea3 Iustin Pop
      (only used on the master) and a log file at
114 96b9071c Iustin Pop
      <filename>@LOCALSTATEDIR@/log/ganeti/watcher.log</filename>. Removal of
115 96b9071c Iustin Pop
      either file will not affect correct operation; the removal of
116 96b9071c Iustin Pop
      the state file will just cause the restart counters for the
117 96b9071c Iustin Pop
      instances to reset to zero.
118 a8083063 Iustin Pop
    </para>
119 a8083063 Iustin Pop
120 a8083063 Iustin Pop
  </refsect1>
121 a8083063 Iustin Pop
122 a8083063 Iustin Pop
  &footer;
123 a8083063 Iustin Pop
124 a8083063 Iustin Pop
</refentry>
125 a8083063 Iustin Pop
126 a8083063 Iustin Pop
<!-- Keep this comment at the end of the file
127 a8083063 Iustin Pop
Local variables:
128 a8083063 Iustin Pop
mode: sgml
129 a8083063 Iustin Pop
sgml-omittag:t
130 a8083063 Iustin Pop
sgml-shorttag:t
131 a8083063 Iustin Pop
sgml-minimize-attributes:nil
132 a8083063 Iustin Pop
sgml-always-quote-attributes:t
133 a8083063 Iustin Pop
sgml-indent-step:2
134 a8083063 Iustin Pop
sgml-indent-data:t
135 a8083063 Iustin Pop
sgml-parent-document:nil
136 a8083063 Iustin Pop
sgml-default-dtd-file:nil
137 a8083063 Iustin Pop
sgml-exposed-tags:nil
138 a8083063 Iustin Pop
sgml-local-catalogs:nil
139 a8083063 Iustin Pop
sgml-local-ecat-files:nil
140 a8083063 Iustin Pop
End:
141 a8083063 Iustin Pop
-->