Statistics
| Branch: | Tag: | Revision:

root / man / ganeti-watcher.sgml @ 6328fea3

History | View | Annotate | Download (3.9 kB)

1
<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
2

    
3
  <!-- Fill in your name for FIRSTNAME and SURNAME. -->
4
  <!-- Please adjust the date whenever revising the manpage. -->
5
  <!ENTITY dhdate      "<date>February 11, 2009</date>">
6
  <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
7
       allowed: see man(7), man(1). -->
8
  <!ENTITY dhsection   "<manvolnum>8</manvolnum>">
9
  <!ENTITY dhucpackage "<refentrytitle>ganeti-watcher</refentrytitle>">
10
  <!ENTITY dhpackage   "ganeti-watcher">
11

    
12
  <!ENTITY debian      "<productname>Debian</productname>">
13
  <!ENTITY gnu         "<acronym>GNU</acronym>">
14
  <!ENTITY gpl         "&gnu; <acronym>GPL</acronym>">
15
  <!ENTITY footer SYSTEM "footer.sgml">
16
]>
17

    
18
<refentry>
19
  <refentryinfo>
20
    <copyright>
21
      <year>2007</year>
22
      <year>2008</year>
23
      <year>2009</year>
24
      <holder>Google Inc.</holder>
25
    </copyright>
26
    &dhdate;
27
  </refentryinfo>
28
  <refmeta>
29
    &dhucpackage;
30

    
31
    &dhsection;
32
    <refmiscinfo>ganeti 2.0</refmiscinfo>
33
  </refmeta>
34
  <refnamediv>
35
    <refname>&dhpackage;</refname>
36

    
37
    <refpurpose>ganeti cluster watcher</refpurpose>
38
  </refnamediv>
39
  <refsynopsisdiv>
40
    <cmdsynopsis>
41
      <command>&dhpackage; </command>
42

    
43
    </cmdsynopsis>
44
  </refsynopsisdiv>
45
  <refsect1>
46
    <title>DESCRIPTION</title>
47

    
48
    <para>
49
      The <command>&dhpackage;</command> is a periodically run script
50
      which is responsible for keeping the instances in the correct
51
      status. It has two separate functions, one for the master node
52
      and another one that runs on every node.
53
    </para>
54

    
55
    <refsect2>
56
      <title>Master operations</title>
57

    
58
      <para>
59
        Its primary function is to try to keep running all instances
60
        which are marked as <emphasis>up</emphasis> in the configuration
61
        file, by trying to start them a limited number of times.
62
      </para>
63

    
64
      <para>
65
        Its other function is to <quote>repair</quote> DRBD links by
66
        reactivating the block devices of instances which have
67
        secondaries on nodes that have been rebooted.
68
      </para>
69

    
70
    </refsect2>
71

    
72
    <refsect2>
73

    
74
      <title>Node operations</title>
75

    
76
      <para>
77
        The watcher will restart any down daemons that are appropriate
78
        for the current node.
79
      </para>
80

    
81
      <para>
82
        In addition, it will execute any scripts which exist under the
83
        <quote>watcher</quote> directory in the ganeti hooks directory
84
        (@SYSCONFDIR@/ganeti/hooks). This should be used for
85
        lightweight actions, like starting any extra daemons.
86
      </para>
87

    
88
      <para>
89
        If the cluster
90
        parameter <literal>maintain_node_health</literal> is enabled,
91
        then the watcher will also shutdown instances and DRBD devices
92
        if the node is declared as offline by known master candidates.
93
      </para>
94

    
95
      <para>
96
        The watcher does synchronous queries but will submit jobs for
97
        executing the changes. Due to locking, it could be that the jobs
98
        execute much later than the watcher executes them.
99
      </para>
100

    
101
    </refsect2>
102

    
103

    
104
  </refsect1>
105

    
106
  <refsect1>
107
    <title>FILES</title>
108

    
109
    <para>
110
      The command has a state file located at
111
      <filename>@LOCALSTATEDIR@/lib/ganeti/watcher.data</filename>
112
      (only used on the master) and a log file at
113
      <filename>@LOCALSTATEDIR@/log/ganeti/watcher.log</filename>. Removal of
114
      either file will not affect correct operation; the removal of
115
      the state file will just cause the restart counters for the
116
      instances to reset to zero.
117
    </para>
118

    
119
  </refsect1>
120

    
121
  &footer;
122

    
123
</refentry>
124

    
125
<!-- Keep this comment at the end of the file
126
Local variables:
127
mode: sgml
128
sgml-omittag:t
129
sgml-shorttag:t
130
sgml-minimize-attributes:nil
131
sgml-always-quote-attributes:t
132
sgml-indent-step:2
133
sgml-indent-data:t
134
sgml-parent-document:nil
135
sgml-default-dtd-file:nil
136
sgml-exposed-tags:nil
137
sgml-local-catalogs:nil
138
sgml-local-ecat-files:nil
139
End:
140
-->