Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wowsel authored Feb 22, 2019
1 parent 65549ea commit f278912
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,25 +59,11 @@ In order to have persistance, a PersistentVolumeClaim usage is allowed. The full

**IMPORTANT**: By default, the persistent volume claims will be deleted when the Redis Failover is. If this is not the expected usage, a `keepAfterDeletion` flag can be added under the `storage` section of Redis. [An example is given](example/redisfailover/persistant-storage-no-pvc-deletion.yaml).

### Custom configurations
It is possible to configure both Redis and Sentinel. This is done with the `customConfig` option inside their spec. It is a list of configurations and their values.

Example:
```yaml
sentinel:
customConfig:
- "down-after-milliseconds 2000"
- "failover-timeout 3000"
redis:
customConfig:
- "maxclients 100"
- "hz 50"
```
### NodeAffinity and Tolerations
You can use NodeAffinity and Tolerations for deploy redis to isolation nodes, like production.

Example:
```
```yaml
apiVersion: v1
items:
- apiVersion: storage.spotahome.com/v1alpha2
Expand Down Expand Up @@ -110,6 +96,21 @@ items:
kind: List
```
### Custom configurations
It is possible to configure both Redis and Sentinel. This is done with the `customConfig` option inside their spec. It is a list of configurations and their values.

Example:
```yaml
sentinel:
customConfig:
- "down-after-milliseconds 2000"
- "failover-timeout 3000"
redis:
customConfig:
- "maxclients 100"
- "hz 50"
```

**Important*: this options will be set via `config set` or `sentinel set mymaster`. In the Sentinel options, there are some "conversions" to be made.

- Configuration on the `sentinel.conf`: `sentinel down-after-milliseconds mymaster 2000`
Expand Down

0 comments on commit f278912

Please sign in to comment.