Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
Fix haproxy check redis master configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Jeremy Xu <jeremyxu2010@gmail.com>
  • Loading branch information
jeremyxu2010 committed Sep 9, 2019
1 parent 4e61eb2 commit af0b2d1
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion stable/redis-ha/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ keywords:
- redis
- keyvalue
- database
version: 3.7.5
version: 3.7.3
appVersion: 5.0.5
description: Highly available Kubernetes implementation of Redis
icon: https://upload.wikimedia.org/wikipedia/en/thumb/6/6b/Redis_Logo.svg/1200px-Redis_Logo.svg.png
Expand Down
14 changes: 14 additions & 0 deletions stable/redis-ha/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,20 @@ For example `repl-timeout 60` would be added to the `redis.config` section of th
repl-timeout: "60"
```
Note:
1. Some config options should be renamed by redis version,e.g.:
```
# In redis 5.x,see https://raw.githubusercontent.com/antirez/redis/5.0/redis.conf
min-replicas-to-write: 1
min-replicas-max-lag: 5

# In redis 4.x and redis 3.x,see https://raw.githubusercontent.com/antirez/redis/4.0/redis.conf and https://raw.githubusercontent.com/antirez/redis/3.0/redis.conf
min-slaves-to-write 1
min-slaves-max-lag 5
```

Sentinel options supported must be in the the `sentinel <option> <master-group-name> <value>` format. For example, `sentinel down-after-milliseconds 30000` would be added to the `sentinel.config` section of the `values.yaml` as:

```yml
Expand Down
4 changes: 2 additions & 2 deletions stable/redis-ha/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ redis:
config:
## Additional redis conf options can be added below
## For all available options see http://download.redis.io/redis-stable/redis.conf
min-slaves-to-write: 1
min-slaves-max-lag: 5 # Value in seconds
min-replicas-to-write: 1
min-replicas-max-lag: 5 # Value in seconds
maxmemory: "0" # Max memory to use for each redis instance. Default is unlimited.
maxmemory-policy: "volatile-lru" # Max memory policy to use for each redis instance. Default is volatile-lru.
# Determines if scheduled RDB backups are created. Default is false.
Expand Down

0 comments on commit af0b2d1

Please sign in to comment.