Allow configuring account/group cache limits

Change-Id: Iedb9fae62b133d76efeac5c8ecffde49704828c2
This commit is contained in:
James E. Blair 2017-09-19 09:39:08 -07:00
parent c3c680a19c
commit 9740afe771
2 changed files with 24 additions and 0 deletions

View File

@ -265,6 +265,10 @@ class gerrit(
$receive_max_object_size_limit = '',
$cache_diff_timeout = '',
$cache_diff_intraline_timeout = '',
$cache_accounts = '',
$cache_accounts_byemail = '',
$cache_accounts_byname = '',
$cache_groups_byuuid = '',
$download = {},
$commitmessage_params = {},
$java_home = $::gerrit::params::java_home,
@ -446,6 +450,10 @@ class gerrit(
# - $receive_max_object_size_limit
# - $cache_diff_timeout
# - $cache_diff_intraline_timeout
# - $cache_accounts
# - $cache_accounts_byemail
# - $cache_accounts_byname
# - $cache_groups_byuuid
# - $download
# - $commitmessage_params

View File

@ -124,6 +124,22 @@
[cache "diff_intraline"]
timeout = <%= @cache_diff_intraline_timeout %>
<% end -%>
<% if @cache_accounts != "" -%>
[cache "accounts"]
memoryLimit = <%= @cache_accounts %>
<% end -%>
<% if @cache_accounts_byemail != "" -%>
[cache "accounts_byemail"]
memoryLimit = <%= @cache_accounts_byemail %>
<% end -%>
<% if @cache_accounts_byname != "" -%>
[cache "accounts_byname"]
memoryLimit = <%= @cache_accounts_byname %>
<% end -%>
<% if @cache_groups_byuuid != "" -%>
[cache "groups_byuuid"]
memoryLimit = <%= @cache_groups_byuuid %>
<% end -%>
[user]
email = <%= @email %>
[change]