1 <?xml version="1.0" encoding="iso-8859-1"?>
3 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
4 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
5 <refentry id="ctdb-etcd.7">
10 This documentation was written by
17 <holder>Jose A. Rivera</holder>
21 This program is free software; you can redistribute it and/or
22 modify it under the terms of the GNU General Public License as
23 published by the Free Software Foundation; either version 3 of
24 the License, or (at your option) any later version.
27 This program is distributed in the hope that it will be
28 useful, but WITHOUT ANY WARRANTY; without even the implied
29 warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
30 PURPOSE. See the GNU General Public License for more details.
33 You should have received a copy of the GNU General Public
34 License along with this program; if not, see
35 <ulink url="http://www.gnu.org/licenses"/>.
41 <refentrytitle>ctdb-etcd</refentrytitle>
42 <manvolnum>7</manvolnum>
43 <refmiscinfo class="source">ctdb</refmiscinfo>
44 <refmiscinfo class="manual">CTDB - clustered TDB database</refmiscinfo>
48 <refname>ctdb-etcd</refname>
49 <refpurpose>CTDB etcd integration</refpurpose>
54 <command>ctdb_etcd_lock</command>
59 <title>DESCRIPTION</title>
61 ctdb_etcd_lock is intended to be run as a mutex helper for CTDB. It
62 will try to connect to an existing etcd cluster and grab a lock in that
63 cluster to function as CTDB's recovery lock. Please see
64 <emphasis>ctdb/doc/cluster_mutex_helper.txt</emphasis> for details on
65 the mutex helper API. To use this, include the following line in
66 the <literal>[cluster]</literal> section of
67 <citerefentry><refentrytitle>ctdb.conf</refentrytitle>
68 <manvolnum>5</manvolnum></citerefentry>:
70 <screen format="linespecific">
71 recovery lock = !/usr/local/usr/libexec/ctdb/ctdb_etcd_lock
74 You can also pass "-v", "-vv", or "-vvv" to include verbose output in
75 the CTDB log. Additional "v"s indicate increases in verbosity.
78 This mutex helper expects the system Python interpreter to have access
79 to the etcd Python module. It also expects an etcd cluster to be
80 configured and running. To integrate with this, there is an optional
81 config file of the following format:
83 <screen format="linespecific">
87 The following configuration parameters (and their defaults) are defined
88 for use by ctdb_etcd_lock:
90 <screen format="linespecific">
91 port = 2379 # connecting port for the etcd cluster
92 lock_ttl = 9 # seconds for TTL
93 refresh = 2 # seconds between attempts to maintain lock
94 locks_dir = _ctdb # where to store CTDB locks in etcd
95 # The final etcd directory for any given lock looks like:
96 # /_locks/{locks_dir}/{netbios name}/
99 In addition, any keyword parameter that can be used to configure an
100 etcd client may be specified and modified here. For more documentation
101 on these parameters, see here: https://github.com/jplana/python-etcd/
106 <title>SEE ALSO</title>
108 <citerefentry><refentrytitle>ctdb</refentrytitle>
109 <manvolnum>7</manvolnum></citerefentry>,
111 <citerefentry><refentrytitle>ctdbd</refentrytitle>
112 <manvolnum>1</manvolnum></citerefentry>,
114 <ulink url="http://ctdb.samba.org/"/>