Skip to content

Commit 12d4eb2

Browse files
balasankarcSylvester Chin
andcommitted
Merge branch 'sc1-enable-cluster-for-cache' into 'master'
Enable cache to configure for Redis Cluster See merge request https://gitlab.com/gitlab-org/omnibus-gitlab/-/merge_requests/7079 Merged-by: Balasankar 'Balu' C <[email protected]> Approved-by: Hossein Pursultani <[email protected]> Approved-by: Balasankar 'Balu' C <[email protected]> Co-authored-by: Sylvester Chin <[email protected]>
2 parents c458f3c + 8c0aa6b commit 12d4eb2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

files/gitlab-cookbooks/gitlab/libraries/redis_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
class RedisHelper
55
REDIS_INSTANCES = %w[cache queues shared_state trace_chunks rate_limiting sessions repository_cache cluster_rate_limiting].freeze
6-
ALLOWED_REDIS_CLUSTER_INSTANCE = %w[rate_limiting cluster_rate_limiting].freeze
6+
ALLOWED_REDIS_CLUSTER_INSTANCE = %w[cache rate_limiting cluster_rate_limiting].freeze
77

88
def initialize(node)
99
@node = node

spec/chef/cookbooks/gitlab/recipes/gitlab-rails_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
let(:chef_run) { ChefSpec::SoloRunner.new(step_into: %w(templatesymlink runit_service)).converge('gitlab::default') }
77
let(:redis_instances) { RedisHelper::REDIS_INSTANCES }
8-
let(:redis_cluster_instances) { %w(cluster_rate_limiting) }
8+
let(:redis_cluster_instances) { %w(cache rate_limiting cluster_rate_limiting) }
99
let(:config_dir) { '/var/opt/gitlab/gitlab-rails/etc/' }
1010
let(:default_vars) do
1111
{
@@ -325,7 +325,7 @@
325325
end
326326

327327
context 'with multiple redis cluster instance' do
328-
%w(queues shared_state trace_chunks sessions cache).each do |instance|
328+
%w(queues shared_state trace_chunks sessions).each do |instance|
329329
it_should_behave_like 'instances does not support redis cluster', instance
330330
end
331331

0 commit comments

Comments
 (0)