mirror of
https://github.com/viq/NewsBlur.git
synced 2025-04-13 09:38:09 +00:00
Multiple redis servers.
This commit is contained in:
parent
6e6d0d5318
commit
010b9d4fb5
2 changed files with 5 additions and 1 deletions
|
@ -29,6 +29,7 @@ groups:
|
|||
search: inventory_hostname.startswith('db-elasticsearch')
|
||||
elasticsearch: inventory_hostname.startswith('db-elasticsearch')
|
||||
redis: inventory_hostname.startswith('db-redis')
|
||||
redis_story: inventory_hostname.startswith('db-redis-story')
|
||||
postgres: inventory_hostname.startswith('db-postgres')
|
||||
mongo: inventory_hostname.startswith('db-mongo') and not inventory_hostname.startswith('db-mongo-analytics')
|
||||
mongo_analytics: inventory_hostname.startswith('db-mongo-analytics')
|
||||
|
|
|
@ -208,7 +208,10 @@ backend db_redis_user
|
|||
|
||||
backend db_redis_story
|
||||
option httpchk GET /db_check/redis_story
|
||||
server db-redis-story db-redis-story.node.nyc1.consul:5579 check inter 2000ms resolvers consul resolve-opts allow-dup-ip init-addr none
|
||||
default-server check inter 2000ms resolvers consul resolve-prefer ipv4 resolve-opts allow-dup-ip init-addr none
|
||||
{% for host in groups.redis_story %}
|
||||
server {{host}} {{host}}.node.nyc1.consul:5579
|
||||
{% endfor %}
|
||||
|
||||
backend db_redis_sessions
|
||||
option httpchk GET /db_check/redis_sessions
|
||||
|
|
Loading…
Add table
Reference in a new issue