blob: f8834b6590cfe06fe03a9120ee26ead025170dc2 [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
Jiri Broulikf7ce71d2017-07-06 13:51:20 +020066Backup server rsync
67
68.. code-block:: yaml
69
70 zookeeper:
71 backup:
72 server:
73 enabled: true
74 hours_before_full: 24
75 full_backups_to_keep: 5
76 key:
77 zookeeper_pub_key:
78 enabled: true
79 key: ssh_rsa
80
Jiri Broulik2756b322018-02-28 16:21:46 +010081Backup server without strict client restriction
82
83.. code-block:: yaml
84
85 zookeeper:
86 backup:
87 restrict_clients: false
88
Jiri Broulikf7ce71d2017-07-06 13:51:20 +020089Client restore from local backup:
90
91.. code-block:: yaml
92
93 zookeeper:
94 backup:
95 client:
96 enabled: true
97 full_backups_to_keep: 3
98 hours_before_full: 24
99 target:
100 host: cfg01
101 restore_latest: 1
102 restore_from: local
103
104 .. 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.
105
106
107Client restore from remote backup:
108
109.. code-block:: yaml
110
111 zookeeper:
112 backup:
113 client:
114 enabled: true
115 full_backups_to_keep: 3
116 hours_before_full: 24
117 target:
118 host: cfg01
119 restore_latest: 1
120 restore_from: remote
121
122 .. 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.
123
124
marco70723542016-06-14 20:25:31 +0200125Read more
126=========
127
128* links
Filip Pytloundf51ee22017-02-02 13:02:03 +0100129
130Documentation and Bugs
131======================
132
133To learn how to install and update salt-formulas, consult the documentation
134available online at:
135
136 http://salt-formulas.readthedocs.io/
137
138In the unfortunate event that bugs are discovered, they should be reported to
139the appropriate issue tracker. Use Github issue tracker for specific salt
140formula:
141
142 https://github.com/salt-formulas/salt-formula-zookeeper/issues
143
144For feature requests, bug reports or blueprints affecting entire ecosystem,
145use Launchpad salt-formulas project:
146
147 https://launchpad.net/salt-formulas
148
149You can also join salt-formulas-users team and subscribe to mailing list:
150
151 https://launchpad.net/~salt-formulas-users
152
153Developers wishing to work on the salt-formulas projects should always base
154their work on master branch and submit pull request against specific formula.
155
156 https://github.com/salt-formulas/salt-formula-zookeeper
157
158Any questions or feedback is always welcome so feel free to join our IRC
159channel:
160
161 #salt-formulas @ irc.freenode.net