marco | 7072354 | 2016-06-14 20:25:31 +0200 | [diff] [blame] | 1 | |
| 2 | ================================== |
| 3 | zookeeper |
| 4 | ================================== |
| 5 | |
| 6 | Service zookeeper description |
| 7 | |
| 8 | Sample pillars |
| 9 | ============== |
| 10 | |
| 11 | Single 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 | |
| 22 | Cluster 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 Broulik | f7ce71d | 2017-07-06 13:51:20 +0200 | [diff] [blame] | 37 | Backup 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 |
Jiri Broulik | 4911149 | 2018-03-05 12:11:27 +0100 | [diff] [blame^] | 49 | backup_dir: server-home-dir |
Jiri Broulik | f7ce71d | 2017-07-06 13:51:20 +0200 | [diff] [blame] | 50 | |
| 51 | .. note:: full_backups_to_keep param states how many backup will be stored locally on zookeeper client. |
| 52 | More options to relocate local backups can be done using salt-formula-backupninja. |
| 53 | |
| 54 | Backup client with local backup only |
| 55 | |
| 56 | .. code-block:: yaml |
| 57 | |
| 58 | zookeeper: |
| 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 zookeeper client |
| 66 | |
Jiri Broulik | f7ce71d | 2017-07-06 13:51:20 +0200 | [diff] [blame] | 67 | Backup 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 | |
Jiri Broulik | 2756b32 | 2018-02-28 16:21:46 +0100 | [diff] [blame] | 82 | Backup server without strict client restriction |
| 83 | |
| 84 | .. code-block:: yaml |
| 85 | |
| 86 | zookeeper: |
| 87 | backup: |
| 88 | restrict_clients: false |
| 89 | |
Jiri Broulik | f7ce71d | 2017-07-06 13:51:20 +0200 | [diff] [blame] | 90 | Client restore from local backup: |
| 91 | |
| 92 | .. code-block:: yaml |
| 93 | |
| 94 | zookeeper: |
| 95 | backup: |
| 96 | client: |
| 97 | enabled: true |
| 98 | full_backups_to_keep: 3 |
| 99 | hours_before_full: 24 |
| 100 | target: |
| 101 | host: cfg01 |
| 102 | restore_latest: 1 |
| 103 | restore_from: local |
| 104 | |
| 105 | .. 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. |
| 106 | |
| 107 | |
| 108 | Client restore from remote backup: |
| 109 | |
| 110 | .. code-block:: yaml |
| 111 | |
| 112 | zookeeper: |
| 113 | backup: |
| 114 | client: |
| 115 | enabled: true |
| 116 | full_backups_to_keep: 3 |
| 117 | hours_before_full: 24 |
| 118 | target: |
| 119 | host: cfg01 |
| 120 | restore_latest: 1 |
| 121 | restore_from: remote |
| 122 | |
| 123 | .. 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. |
| 124 | |
| 125 | |
marco | 7072354 | 2016-06-14 20:25:31 +0200 | [diff] [blame] | 126 | Read more |
| 127 | ========= |
| 128 | |
| 129 | * links |
Filip Pytloun | df51ee2 | 2017-02-02 13:02:03 +0100 | [diff] [blame] | 130 | |
| 131 | Documentation and Bugs |
| 132 | ====================== |
| 133 | |
| 134 | To learn how to install and update salt-formulas, consult the documentation |
| 135 | available online at: |
| 136 | |
| 137 | http://salt-formulas.readthedocs.io/ |
| 138 | |
| 139 | In the unfortunate event that bugs are discovered, they should be reported to |
| 140 | the appropriate issue tracker. Use Github issue tracker for specific salt |
| 141 | formula: |
| 142 | |
| 143 | https://github.com/salt-formulas/salt-formula-zookeeper/issues |
| 144 | |
| 145 | For feature requests, bug reports or blueprints affecting entire ecosystem, |
| 146 | use Launchpad salt-formulas project: |
| 147 | |
| 148 | https://launchpad.net/salt-formulas |
| 149 | |
| 150 | You can also join salt-formulas-users team and subscribe to mailing list: |
| 151 | |
| 152 | https://launchpad.net/~salt-formulas-users |
| 153 | |
| 154 | Developers wishing to work on the salt-formulas projects should always base |
| 155 | their work on master branch and submit pull request against specific formula. |
| 156 | |
| 157 | https://github.com/salt-formulas/salt-formula-zookeeper |
| 158 | |
| 159 | Any questions or feedback is always welcome so feel free to join our IRC |
| 160 | channel: |
| 161 | |
| 162 | #salt-formulas @ irc.freenode.net |