Ales Komarek | c151bcf | 2017-02-20 20:46:54 +0100 | [diff] [blame^] | 1 | |
| 2 | ============= |
| 3 | Redis formula |
| 4 | ============= |
| 5 | |
| 6 | key value storage |
| 7 | |
| 8 | |
| 9 | Sample pillars |
| 10 | ============== |
| 11 | |
| 12 | Redis localhost server |
| 13 | |
| 14 | |
| 15 | .. code-block:: yaml |
| 16 | |
| 17 | redis: |
| 18 | server: |
| 19 | enabled: true |
| 20 | bind: |
| 21 | address: 127.0.0.1 |
| 22 | port: 6379 |
| 23 | protocol: tcp |
| 24 | |
| 25 | Redis world open |
| 26 | |
| 27 | .. code-block:: yaml |
| 28 | |
| 29 | redis: |
| 30 | server: |
| 31 | enabled: true |
| 32 | bind: |
| 33 | address: 0.0.0.0 |
| 34 | port: 6379 |
| 35 | protocol: tcp |
| 36 | |
| 37 | Redis modes |
| 38 | |
| 39 | .. code-block:: yaml |
| 40 | |
| 41 | redis: |
| 42 | server: |
| 43 | enabled: true |
| 44 | appendfsync: no | everysec | always |
| 45 | |
| 46 | Redis cluster master |
| 47 | |
| 48 | .. code-block:: yaml |
| 49 | |
| 50 | redis: |
| 51 | cluster: |
| 52 | enabled: True |
| 53 | master: |
| 54 | host: 192.168.1.100 |
| 55 | port: 6379 |
| 56 | mode: sentinel |
| 57 | quorum: 2 |
| 58 | role: master |
| 59 | supervisor: |
| 60 | server: |
| 61 | service: |
| 62 | redis_sentinel: |
| 63 | name: sentinel |
| 64 | type: redis |
| 65 | |
| 66 | Redis cluster slave |
| 67 | |
| 68 | .. code-block:: yaml |
| 69 | |
| 70 | redis: |
| 71 | cluster: |
| 72 | enabled: True |
| 73 | master: |
| 74 | host: 192.168.1.100 |
| 75 | port: 6379 |
| 76 | mode: sentinel |
| 77 | quorum: 2 |
| 78 | role: slave |
| 79 | supervisor: |
| 80 | server: |
| 81 | service: |
| 82 | redis_sentinel: |
| 83 | name: sentinel |
| 84 | type: redis |
| 85 | |
| 86 | |
| 87 | Command usage |
| 88 | ============= |
| 89 | |
| 90 | Removes data from your connection's CURRENT database. |
| 91 | |
| 92 | > redis-cli FLUSHDB |
| 93 | |
| 94 | Removes data from ALL databases. |
| 95 | |
| 96 | > redis-cli FLUSHALL |
| 97 | |
| 98 | |
| 99 | More information |
| 100 | ================ |
| 101 | |
| 102 | * http://redis.io/topics/admin |
| 103 | * http://redis.io/topics/quickstart |
| 104 | * http://redis.io/topics/persistence |
| 105 | |
Filip Pytloun | 764c13d | 2017-02-02 13:04:49 +0100 | [diff] [blame] | 106 | |
| 107 | Documentation and Bugs |
| 108 | ====================== |
| 109 | |
| 110 | To learn how to install and update salt-formulas, consult the documentation |
| 111 | available online at: |
| 112 | |
| 113 | http://salt-formulas.readthedocs.io/ |
| 114 | |
| 115 | In the unfortunate event that bugs are discovered, they should be reported to |
| 116 | the appropriate issue tracker. Use Github issue tracker for specific salt |
| 117 | formula: |
| 118 | |
| 119 | https://github.com/salt-formulas/salt-formula-redis/issues |
| 120 | |
| 121 | For feature requests, bug reports or blueprints affecting entire ecosystem, |
| 122 | use Launchpad salt-formulas project: |
| 123 | |
| 124 | https://launchpad.net/salt-formulas |
| 125 | |
| 126 | You can also join salt-formulas-users team and subscribe to mailing list: |
| 127 | |
| 128 | https://launchpad.net/~salt-formulas-users |
| 129 | |
| 130 | Developers wishing to work on the salt-formulas projects should always base |
| 131 | their work on master branch and submit pull request against specific formula. |
| 132 | |
| 133 | https://github.com/salt-formulas/salt-formula-redis |
| 134 | |
| 135 | Any questions or feedback is always welcome so feel free to join our IRC |
| 136 | channel: |
| 137 | |
| 138 | #salt-formulas @ irc.freenode.net |