Allow configuring account/group cache limits
Change-Id: Iedb9fae62b133d76efeac5c8ecffde49704828c2
This commit is contained in:
parent
c3c680a19c
commit
9740afe771
@ -265,6 +265,10 @@ class gerrit(
|
|||||||
$receive_max_object_size_limit = '',
|
$receive_max_object_size_limit = '',
|
||||||
$cache_diff_timeout = '',
|
$cache_diff_timeout = '',
|
||||||
$cache_diff_intraline_timeout = '',
|
$cache_diff_intraline_timeout = '',
|
||||||
|
$cache_accounts = '',
|
||||||
|
$cache_accounts_byemail = '',
|
||||||
|
$cache_accounts_byname = '',
|
||||||
|
$cache_groups_byuuid = '',
|
||||||
$download = {},
|
$download = {},
|
||||||
$commitmessage_params = {},
|
$commitmessage_params = {},
|
||||||
$java_home = $::gerrit::params::java_home,
|
$java_home = $::gerrit::params::java_home,
|
||||||
@ -446,6 +450,10 @@ class gerrit(
|
|||||||
# - $receive_max_object_size_limit
|
# - $receive_max_object_size_limit
|
||||||
# - $cache_diff_timeout
|
# - $cache_diff_timeout
|
||||||
# - $cache_diff_intraline_timeout
|
# - $cache_diff_intraline_timeout
|
||||||
|
# - $cache_accounts
|
||||||
|
# - $cache_accounts_byemail
|
||||||
|
# - $cache_accounts_byname
|
||||||
|
# - $cache_groups_byuuid
|
||||||
# - $download
|
# - $download
|
||||||
# - $commitmessage_params
|
# - $commitmessage_params
|
||||||
|
|
||||||
|
@ -124,6 +124,22 @@
|
|||||||
[cache "diff_intraline"]
|
[cache "diff_intraline"]
|
||||||
timeout = <%= @cache_diff_intraline_timeout %>
|
timeout = <%= @cache_diff_intraline_timeout %>
|
||||||
<% end -%>
|
<% 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]
|
[user]
|
||||||
email = <%= @email %>
|
email = <%= @email %>
|
||||||
[change]
|
[change]
|
||||||
|
Loading…
Reference in New Issue
Block a user