Statistics
| Branch: | Tag: | Revision:

root / man / ganeti-confd.rst @ 46118ed2

History | View | Annotate | Download (2.3 kB)

1
ganeti-confd(8) Ganeti | Version @GANETI_VERSION@
2
=================================================
3

    
4
Name
5
----
6

    
7
ganeti-confd - Ganeti conf daemon
8

    
9
Synopsis
10
--------
11

    
12
**ganeti-confd** [-f] [-d]
13

    
14
DESCRIPTION
15
-----------
16

    
17
**ganeti-confd** is a daemon used to answer queries related to the
18
configuration of a Ganeti cluster.
19

    
20
For testing purposes, you can give the ``-f`` option and the
21
program won't detach from the running terminal.
22

    
23
Debug-level message can be activated by giving the ``-d`` option.
24

    
25
Logging to syslog, rather than its own log file, can be enabled by
26
passing in the ``--syslog`` option.
27

    
28
The **ganeti-confd** daemon listens to port 1814 UDP, on all interfaces,
29
by default. The port can be overridden by an entry the services database
30
(usually ``/etc/services``) or by passing the ``-p`` option.  The ``-b``
31
option can be used to specify the address to bind to (defaults to
32
``0.0.0.0``). The daemon also listens on a Unix socket
33
(``@LOCALSTATEDIR@/run/ganeti/socket/ganeti-query``) on which it exports
34
a ``Luxi`` endpoint, serving query operations only. Commands and tools
35
use this socket if the build-time option for split queries has been
36
enabled.
37

    
38
The daemon will refuse to start if the user and group do not match the
39
one defined at build time; this behaviour can be overridden by the
40
``--no-user-checks`` option.
41

    
42
ROLE
43
~~~~
44

    
45
The role of the conf daemon is to make sure we have a highly available
46
and very fast way to query cluster configuration values.  This daemon
47
is automatically active on all master candidates, and so has no single
48
point of failure. It communicates via UDP so each query can easily be
49
sent to multiple servers, and it answers queries from a cached copy of
50
the config it keeps in memory, so no disk access is required to get an
51
answer.
52

    
53
The config is reloaded from disk automatically when it changes, with a
54
rate limit of once per second.
55

    
56
If the conf daemon is stopped on all nodes, its clients won't be able
57
to get query answers.
58

    
59
COMMUNICATION PROTOCOL
60
~~~~~~~~~~~~~~~~~~~~~~
61

    
62
The confd protocol is an HMAC authenticated json-encoded custom
63
format, over UDP. A client library is provided to make it easy to
64
write software to query confd. More information can be found in the
65
Ganeti 2.1 design doc, and an example usage can be seen in the
66
(external) NBMA daemon for Ganeti.
67

    
68
.. vim: set textwidth=72 :
69
.. Local Variables:
70
.. mode: rst
71
.. fill-column: 72
72
.. End: