Multiple redis servers.

This commit is contained in:
Samuel Clay 2022-06-01 11:08:20 -04:00
parent 6e6d0d5318
commit 010b9d4fb5
2 changed files with 5 additions and 1 deletions

View file

@ -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')

View file

@ -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