system-config/playbooks/roles/gerrit
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
..
defaults gerrit: Update to 3.5 for production 2022-06-02 15:24:37 +10:00
files Merge "Clean up Gerrit image builds" 2022-03-16 20:19:20 +00:00
handlers Add Apache to Ansible for Gerrit 2020-02-03 07:57:36 -06:00
tasks Use Gitea for Gerrit's code browser URLs 2022-02-18 18:50:00 +00:00
templates Increase the number of Gerrit threads for http requests 2022-08-17 10:34:47 -07:00
README.rst Remove the mysql support from our gerrit role and image 2021-08-10 13:06:54 -07:00

Run Gerrit.

This role assumes it will have a local MariaDB running adjacent to the Gerrit service. Variables below configure MariaDB connection details.

Role Variables