Module: Gitlab::ConfigChecker::PumaRuggedChecker

Extended by:
PumaRuggedChecker, Git::RuggedImpl::UseRugged
Included in:
PumaRuggedChecker
Defined in:
lib/gitlab/config_checker/puma_rugged_checker.rb

Instance Method Summary collapse

Methods included from Git::RuggedImpl::UseRugged

execute_rugged_call, rugged_enabled_through_feature_flag?, rugged_feature_keys, running_puma_with_multiple_threads?, use_rugged?

Instance Method Details

#checkObject


9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/gitlab/config_checker/puma_rugged_checker.rb', line 9

def check
  notices = []

  if running_puma_with_multiple_threads? && rugged_enabled_through_feature_flag?
    link_start = '<a href="https://docs.gitlab.com/ee/administration/operations/puma.html#performance-caveat-when-using-puma-with-rugged">'
    link_end = '</a>'
    notices << {
      type: 'warning',
      message: _('Puma is running with a thread count above 1 and the Rugged '\
               'service is enabled. This may decrease performance in some environments. '\
               'See our %{link_start}documentation%{link_end} '\
               'for details of this issue.') % { link_start: link_start, link_end: link_end }
    }
  end

  notices
end