From aa2a86920373548db993624695594b5378ff1e44 Mon Sep 17 00:00:00 2001 From: Magnus Andersson Date: Tue, 21 May 2024 17:11:43 +0200 Subject: [PATCH] Move gss prod to redis cluster --- templates/application/config.php.erb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/templates/application/config.php.erb b/templates/application/config.php.erb index c6429a6..af642f6 100644 --- a/templates/application/config.php.erb +++ b/templates/application/config.php.erb @@ -127,6 +127,24 @@ $CONFIG = array ( ], 'timeout' => 1.1 ], +<% elsif @location == 'gss-prod' -%> + 'redis.cluster' => [ + 'failover_mode' => \RedisCluster::FAILOVER_ERROR, + 'password' => '<%= @redis_cluster_password %>', + 'read_timeout' => 0.0, + 'seeds' => [ + 'redis1.drive.sunet.se:6379', + 'redis2.drive.sunet.se:6379', + 'redis3.drive.sunet.se:6379', + 'redis1.drive.sunet.se:6380', + 'redis2.drive.sunet.se:6380', + 'redis3.drive.sunet.se:6380', + 'redis1.drive.sunet.se:6381', + 'redis2.drive.sunet.se:6381', + 'redis3.drive.sunet.se:6381' + ], + 'timeout' => 1.1 + ], <% elsif @environment == 'test' && ! @is_multinode -%> 'redis.cluster' => [ 'failover_mode' => \RedisCluster::FAILOVER_ERROR,