Allow Gerrit to use 4 threads for indexing changes.

Indexing Gerrit changes can be a time consuming operation.  By
default Gerrit allocates 1 thread to index changes.  This
will increase that to 4 threads which will hopefully make the
indexing operation faster.

Change-Id: I1ff7a09054cb7782acf483aa736ead763a8417db
depends-on: I3aa1909d3edc8aa52d026b3f8e0dfafac4e14f6d
This commit is contained in:
Khai Do 2015-11-04 11:28:15 -08:00
parent 59ed7f0ff7
commit e5c81c13e6
2 changed files with 3 additions and 0 deletions

View File

@ -73,6 +73,7 @@ class openstack_project::gerrit (
$secondary_index = true,
$report_bug_text = 'Get Help',
$report_bug_url = 'http://docs.openstack.org/infra/system-config/project.html#contributing',
$index_threads = 1,
) {
class { 'jeepyb::openstackwatch':
@ -206,6 +207,7 @@ class openstack_project::gerrit (
require => Class[openstack_project::server],
report_bug_text => $report_bug_text,
report_bug_url => $report_bug_url,
index_threads => $index_threads,
}
mysql_backup::backup_remote { 'gerrit':

View File

@ -112,6 +112,7 @@ class openstack_project::review (
core_packedgitlimit => '400m',
core_packedgitwindowsize => '16k',
sshd_threads => '100',
index_threads => 4,
httpd_maxwait => '5000min',
war =>
'http://tarballs.openstack.org/ci/gerrit/gerrit-v2.8.4.19.4548330.war',