blob: ef4d3dedf351185ba88f7d6966729d8903520608 [file] [log] [blame]
marco70723542016-06-14 20:25:31 +02001
2==================================
3zookeeper
4==================================
5
6Service zookeeper description
7
8Sample pillars
9==============
10
11Single zookeeper service
12
13.. code-block:: yaml
14
15 zookeeper:
16 server:
17 enabled: true
18 members:
19 - host: ${_param:single_address}
20 id: 1
21
22Cluster zookeeper service
23
24.. code-block:: yaml
25
26 zookeeper:
27 server:
28 enabled: true
29 members:
30 - host: ${_param:cluster_node01_address}
31 id: 1
32 - host: ${_param:cluster_node02_address}
33 id: 2
34 - host: ${_param:cluster_node03_address}
35 id: 3
36
Jiri Broulikf7ce71d2017-07-06 13:51:20 +020037Backup client with ssh/rsync remote host
38
39.. code-block:: yaml
40
41 zookeeper:
42 backup:
43 client:
44 enabled: true
45 full_backups_to_keep: 3
46 hours_before_full: 24
47 target:
48 host: cfg01
49
50 .. note:: full_backups_to_keep param states how many backup will be stored locally on zookeeper client.
51 More options to relocate local backups can be done using salt-formula-backupninja.
52
53Backup client with local backup only
54
55.. code-block:: yaml
56
57 zookeeper:
58 backup:
59 client:
60 enabled: true
61 full_backups_to_keep: 3
62 hours_before_full: 24
63
64 .. note:: full_backups_to_keep param states how many backup will be stored locally on zookeeper client
65
66
67Backup server rsync
68
69.. code-block:: yaml
70
71 zookeeper:
72 backup:
73 server:
74 enabled: true
75 hours_before_full: 24
76 full_backups_to_keep: 5
77 key:
78 zookeeper_pub_key:
79 enabled: true
80 key: ssh_rsa
81
82Client restore from local backup:
83
84.. code-block:: yaml
85
86 zookeeper:
87 backup:
88 client:
89 enabled: true
90 full_backups_to_keep: 3
91 hours_before_full: 24
92 target:
93 host: cfg01
94 restore_latest: 1
95 restore_from: local
96
97 .. note:: restore_latest param with a value of 1 means to restore db from the last full backup. 2 would mean to restore second latest full backup.
98
99
100Client restore from remote backup:
101
102.. code-block:: yaml
103
104 zookeeper:
105 backup:
106 client:
107 enabled: true
108 full_backups_to_keep: 3
109 hours_before_full: 24
110 target:
111 host: cfg01
112 restore_latest: 1
113 restore_from: remote
114
115 .. note:: restore_latest param with a value of 1 means to restore db from the last full backup. 2 would mean to restore second latest full backup.
116
117
marco70723542016-06-14 20:25:31 +0200118Read more
119=========
120
121* links
Filip Pytloundf51ee22017-02-02 13:02:03 +0100122
123Documentation and Bugs
124======================
125
126To learn how to install and update salt-formulas, consult the documentation
127available online at:
128
129 http://salt-formulas.readthedocs.io/
130
131In the unfortunate event that bugs are discovered, they should be reported to
132the appropriate issue tracker. Use Github issue tracker for specific salt
133formula:
134
135 https://github.com/salt-formulas/salt-formula-zookeeper/issues
136
137For feature requests, bug reports or blueprints affecting entire ecosystem,
138use Launchpad salt-formulas project:
139
140 https://launchpad.net/salt-formulas
141
142You can also join salt-formulas-users team and subscribe to mailing list:
143
144 https://launchpad.net/~salt-formulas-users
145
146Developers wishing to work on the salt-formulas projects should always base
147their work on master branch and submit pull request against specific formula.
148
149 https://github.com/salt-formulas/salt-formula-zookeeper
150
151Any questions or feedback is always welcome so feel free to join our IRC
152channel:
153
154 #salt-formulas @ irc.freenode.net