system-config/playbooks/roles/gerrit/templates
Clark Boylan 5f0718b3b5 Increase the number of Gerrit threads for http requests
We've seen CI systems consume all of our threads which causes the web UI
to become non responsive. To address this increase the number of httpd
threads from 100 to 150. Note that we do not modify sshd.threads beacuse
sshd.threads determines the max number of git requests across both ssh
and http.

In theory what this means is that httpd has an additional 50 threads to
process non git requests (for example web UI requests) which will
hopefully keep that responsive even if git requests are max'd out.

It is possible that we also need to increase the sshd.threads value to
handle those git requests, but we will start by modifying one config
value at a time. If we do bump sshd.threads we should increase
httpd.maxThreads to give it that additional headroom.

Finally, I believe this is likely to be safe as we doubled the size of
our Gerrit server when we moved it to vexxhost. The old server was
pretty well maxed out though so increase these values on the new server
slowly and monitor the results.

Details on the configuration can be found at:

  https://gerrit-review.googlesource.com/Documentation/config-gerrit.html#httpd

Change-Id: I57a1e248c3c01597bb29c7afc304688e834a64cc
2022-08-17 10:34:47 -07:00
..
docker-compose.yaml.j2 gerrit: Update mariadb to 10.6 2022-06-02 15:21:23 +10:00
gerrit.config.j2 Increase the number of Gerrit threads for http requests 2022-08-17 10:34:47 -07:00
gerrit.vhost.j2 Block access to Gitiles 2022-02-18 21:39:27 +00:00
infra_lp_creds.j2 gerrit: fix Launchpad credentials write 2021-07-20 10:54:22 +10:00
jgit.config.j2 Enable git protocol v2 on gerrit 2020-12-09 15:51:10 -08:00
manage-projects.j2 Stop managing gerrit's local git mirror dir 2020-10-16 09:41:07 -07:00
projects.ini.j2 Stop managing gerrit's local git mirror dir 2020-10-16 09:41:07 -07:00
redirect.vhost.j2 Use LE certs for Apache 2020-02-13 10:31:59 -06:00
replication.config.j2 Set a gerrit replication timeout of 15 minutes 2021-09-15 16:25:04 -07:00
root.my.cnf.mariadb_container.j2 gerrit: add mariadb_container option 2021-06-16 13:57:13 +10:00
root.my.cnf.mysql.j2 gerrit: add mariadb_container option 2021-06-16 13:57:13 +10:00
secure.config.j2 Remove the mysql support from our gerrit role and image 2021-08-10 13:06:54 -07:00