blob: c6b2af876f5dc4a7e1c0b97daf1022ea00cbfb3d [file] [log] [blame]
marcod468a042016-06-14 22:13:03 +02001
2==================================
3cassandra
4==================================
5
6Service cassandra description
7
8Sample pillars
9==============
10
11Single cassandra service
12
13.. code-block:: yaml
14
15 cassandra:
16 server:
17 enabled: true
18 version: icehouse
19
Jiri Broulikf46f2222017-07-06 13:52:32 +020020Backup client with ssh/rsync remote host
21
22.. code-block:: yaml
23
24 cassandra:
25 backup:
26 client:
27 enabled: true
28 full_backups_to_keep: 3
29 hours_before_full: 24
30 target:
31 host: cfg01
Jiri Broulikf3ec8b42018-03-05 12:11:08 +010032 home_dir: server-home-dir
Jiri Broulikf46f2222017-07-06 13:52:32 +020033
34 .. note:: full_backups_to_keep param states how many backup will be stored locally on cassandra client.
35 More options to relocate local backups can be done using salt-formula-backupninja.
36
37
Jiri Broulikcd564b62018-07-31 17:20:47 +020038Backup client container with ssh/rsync remote host
39
40.. code-block:: yaml
41
42 cassandra:
43 backup:
44 client:
45 enabled: true
46 full_backups_to_keep: 3
47 hours_before_full: 24
48 containers:
49 - opencontrail_controller_1
50 target:
51 host: cfg01
52 home_dir: server-home-dir
53
Jiri Broulikf46f2222017-07-06 13:52:32 +020054Backup client with local backup only
55
56.. code-block:: yaml
57
58 cassandra:
59 backup:
60 client:
61 enabled: true
62 full_backups_to_keep: 3
63 hours_before_full: 24
64
65 .. note:: full_backups_to_keep param states how many backup will be stored locally on cassandra client
66
67
Martin Polreich0a165102018-03-04 17:29:53 +010068Backup client at exact times:
69
70..code-block:: yaml
71
72 cassandra:
73 backup:
74 client:
75 enabled: true
76 full_backups_to_keep: 3
77 incr_before_full: 3
78 backup_times:
Martin Polreichb81606a2018-04-25 15:30:47 +020079 day_of_week: 0
Martin Polreich0a165102018-03-04 17:29:53 +010080 hour: 4
81 minute: 52
82 compression: true
83 compression_threads: 2
84 database:
85 user: user
86 password: password
87 target:
88 host: host01
89
90 .. note:: Parameters in ``backup_times`` section can be used to set up exact
91 time the cron job should be executed. In this example, the backup job
92 would be executed every Sunday at 4:52 AM. If any of the individual
93 ``backup_times`` parameters is not defined, the defalut ``*`` value will be
94 used. For example, if minute parameter is ``*``, it will run the backup every minute,
95 which is ususally not desired.
Martin Polreichb81606a2018-04-25 15:30:47 +020096 Available parameters are ``day_of_week``, ``day_of_month``, ``month``, ``hour`` and ``minute``.
Martin Polreich0a165102018-03-04 17:29:53 +010097 Please see the crontab reference for further info on how to set these parameters.
98
99 .. note:: Please be aware that only ``backup_times`` section OR
100 ``hours_before_full(incr)`` can be defined. If both are defined,
101 the ``backup_times`` section will be peferred.
102
103 .. note:: New parameter ``incr_before_full`` needs to be defined. This
104 number sets number of incremental backups to be run, before a full backup
105 is performed.
106
107
Jiri Broulikf46f2222017-07-06 13:52:32 +0200108Backup server rsync
109
110.. code-block:: yaml
111
112 cassandra:
113 backup:
114 server:
115 enabled: true
116 hours_before_full: 24
117 full_backups_to_keep: 5
118 key:
119 cassandra_pub_key:
120 enabled: true
121 key: ssh_rsa
122
Jiri Broulika6496d72018-02-28 16:21:28 +0100123Backup server without strict client restriction
124
125.. code-block:: yaml
126
127 cassandra:
128 backup:
129 restrict_clients: false
130
Martin Polreich0a165102018-03-04 17:29:53 +0100131Backup server at exact times:
132
133..code-block:: yaml
134
135 cassandra:
136 backup:
137 server:
138 enabled: true
139 full_backups_to_keep: 3
140 incr_before_full: 3
141 backup_dir: /srv/backup
142 backup_times:
Martin Polreichb81606a2018-04-25 15:30:47 +0200143 day_of_week: 0
Martin Polreich0a165102018-03-04 17:29:53 +0100144 hour: 4
145 minute: 52
146 key:
147 cassandra_pub_key:
148 enabled: true
149 key: key
150
151 .. note:: Parameters in ``backup_times`` section can be used to set up exact
152 time the cron job should be executed. In this example, the backup job
153 would be executed every Sunday at 4:52 AM. If any of the individual
154 ``backup_times`` parameters is not defined, the defalut ``*`` value will be
155 used. For example, if minute parameter is ``*``, it will run the backup every minute,
156 which is ususally not desired.
Martin Polreichb81606a2018-04-25 15:30:47 +0200157 Available parameters are ``day_of_week``, ``day_of_month``, ``month``, ``hour`` and ``minute``.
Martin Polreich0a165102018-03-04 17:29:53 +0100158 Please see the crontab reference for further info on how to set these parameters.
159
160 .. note:: Please be aware that only ``backup_times`` section OR
161 ``hours_before_full(incr)`` can be defined. If both are defined, The
162 ``backup_times`` section will be peferred.
163
164 .. note:: New parameter ``incr_before_full`` needs to be defined. This
165 number sets number of incremental backups to be run, before a full backup
166 is performed.
167
Jiri Broulikf46f2222017-07-06 13:52:32 +0200168Client restore from local backup:
169
170.. code-block:: yaml
171
172 cassandra:
173 backup:
174 client:
175 enabled: true
176 full_backups_to_keep: 3
177 hours_before_full: 24
178 target:
179 host: cfg01
180 restore_latest: 1
181 restore_from: local
182
183 .. 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.
184
185Client restore from remote backup:
186
187.. code-block:: yaml
188
189 cassandra:
190 backup:
191 client:
192 enabled: true
193 full_backups_to_keep: 3
194 hours_before_full: 24
195 target:
196 host: cfg01
197 restore_latest: 1
198 restore_from: remote
199
200 .. 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.
201
202
Jiri Broulikcd564b62018-07-31 17:20:47 +0200203Client restore container from remote backup:
204
205.. code-block:: yaml
206
207 cassandra:
208 backup:
209 client:
210 enabled: true
211 full_backups_to_keep: 3
212 hours_before_full: 24
213 containers:
214 - opencontrail_controller_1
215 target:
216 host: cfg01
217 restore_latest: 1
218 restore_from: remote
219
Jiri Broulikf46f2222017-07-06 13:52:32 +0200220
marcod468a042016-06-14 22:13:03 +0200221Read more
222=========
223
224* links
Filip Pytloun74cd9c62017-02-02 13:02:03 +0100225
226Documentation and Bugs
227======================
228
229To learn how to install and update salt-formulas, consult the documentation
230available online at:
231
232 http://salt-formulas.readthedocs.io/
233
234In the unfortunate event that bugs are discovered, they should be reported to
235the appropriate issue tracker. Use Github issue tracker for specific salt
236formula:
237
238 https://github.com/salt-formulas/salt-formula-cassandra/issues
239
240For feature requests, bug reports or blueprints affecting entire ecosystem,
241use Launchpad salt-formulas project:
242
243 https://launchpad.net/salt-formulas
244
245You can also join salt-formulas-users team and subscribe to mailing list:
246
247 https://launchpad.net/~salt-formulas-users
248
249Developers wishing to work on the salt-formulas projects should always base
250their work on master branch and submit pull request against specific formula.
251
252 https://github.com/salt-formulas/salt-formula-cassandra
253
254Any questions or feedback is always welcome so feel free to join our IRC
255channel:
256
257 #salt-formulas @ irc.freenode.net