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