marco | d468a04 | 2016-06-14 22:13:03 +0200 | [diff] [blame] | 1 | |
| 2 | ================================== |
| 3 | cassandra |
| 4 | ================================== |
| 5 | |
| 6 | Service cassandra description |
| 7 | |
| 8 | Sample pillars |
| 9 | ============== |
| 10 | |
| 11 | Single cassandra service |
| 12 | |
| 13 | .. code-block:: yaml |
| 14 | |
| 15 | cassandra: |
| 16 | server: |
| 17 | enabled: true |
| 18 | version: icehouse |
| 19 | |
Jiri Broulik | f46f222 | 2017-07-06 13:52:32 +0200 | [diff] [blame] | 20 | Backup 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 Broulik | f3ec8b4 | 2018-03-05 12:11:08 +0100 | [diff] [blame^] | 32 | home_dir: server-home-dir |
Jiri Broulik | f46f222 | 2017-07-06 13:52:32 +0200 | [diff] [blame] | 33 | |
| 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 | |
| 38 | Backup client with local backup only |
| 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 | |
| 49 | .. note:: full_backups_to_keep param states how many backup will be stored locally on cassandra client |
| 50 | |
| 51 | |
| 52 | Backup server rsync |
| 53 | |
| 54 | .. code-block:: yaml |
| 55 | |
| 56 | cassandra: |
| 57 | backup: |
| 58 | server: |
| 59 | enabled: true |
| 60 | hours_before_full: 24 |
| 61 | full_backups_to_keep: 5 |
| 62 | key: |
| 63 | cassandra_pub_key: |
| 64 | enabled: true |
| 65 | key: ssh_rsa |
| 66 | |
Jiri Broulik | a6496d7 | 2018-02-28 16:21:28 +0100 | [diff] [blame] | 67 | Backup server without strict client restriction |
| 68 | |
| 69 | .. code-block:: yaml |
| 70 | |
| 71 | cassandra: |
| 72 | backup: |
| 73 | restrict_clients: false |
| 74 | |
Jiri Broulik | f46f222 | 2017-07-06 13:52:32 +0200 | [diff] [blame] | 75 | Client restore from local backup: |
| 76 | |
| 77 | .. code-block:: yaml |
| 78 | |
| 79 | cassandra: |
| 80 | backup: |
| 81 | client: |
| 82 | enabled: true |
| 83 | full_backups_to_keep: 3 |
| 84 | hours_before_full: 24 |
| 85 | target: |
| 86 | host: cfg01 |
| 87 | restore_latest: 1 |
| 88 | restore_from: local |
| 89 | |
| 90 | .. 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. |
| 91 | |
| 92 | Client restore from remote backup: |
| 93 | |
| 94 | .. code-block:: yaml |
| 95 | |
| 96 | cassandra: |
| 97 | backup: |
| 98 | client: |
| 99 | enabled: true |
| 100 | full_backups_to_keep: 3 |
| 101 | hours_before_full: 24 |
| 102 | target: |
| 103 | host: cfg01 |
| 104 | restore_latest: 1 |
| 105 | restore_from: remote |
| 106 | |
| 107 | .. 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. |
| 108 | |
| 109 | |
| 110 | |
marco | d468a04 | 2016-06-14 22:13:03 +0200 | [diff] [blame] | 111 | Read more |
| 112 | ========= |
| 113 | |
| 114 | * links |
Filip Pytloun | 74cd9c6 | 2017-02-02 13:02:03 +0100 | [diff] [blame] | 115 | |
| 116 | Documentation and Bugs |
| 117 | ====================== |
| 118 | |
| 119 | To learn how to install and update salt-formulas, consult the documentation |
| 120 | available online at: |
| 121 | |
| 122 | http://salt-formulas.readthedocs.io/ |
| 123 | |
| 124 | In the unfortunate event that bugs are discovered, they should be reported to |
| 125 | the appropriate issue tracker. Use Github issue tracker for specific salt |
| 126 | formula: |
| 127 | |
| 128 | https://github.com/salt-formulas/salt-formula-cassandra/issues |
| 129 | |
| 130 | For feature requests, bug reports or blueprints affecting entire ecosystem, |
| 131 | use Launchpad salt-formulas project: |
| 132 | |
| 133 | https://launchpad.net/salt-formulas |
| 134 | |
| 135 | You can also join salt-formulas-users team and subscribe to mailing list: |
| 136 | |
| 137 | https://launchpad.net/~salt-formulas-users |
| 138 | |
| 139 | Developers wishing to work on the salt-formulas projects should always base |
| 140 | their work on master branch and submit pull request against specific formula. |
| 141 | |
| 142 | https://github.com/salt-formulas/salt-formula-cassandra |
| 143 | |
| 144 | Any questions or feedback is always welcome so feel free to join our IRC |
| 145 | channel: |
| 146 | |
| 147 | #salt-formulas @ irc.freenode.net |