Merge "Set MaxConnectionsPerChild 8192 for Gitea backends"
This commit is contained in:
commit
14450f58e2
14
playbooks/roles/gitea/files/apache-connection-tuning
Normal file
14
playbooks/roles/gitea/files/apache-connection-tuning
Normal file
@ -0,0 +1,14 @@
|
||||
# worker MPM
|
||||
# MaxConnectionsPerChild: maximum number of requests a server process serves
|
||||
#
|
||||
# We've noticed that our mirrors occasionally have stale workers. This leads
|
||||
# to ssl certs not being refreshed properly after reload and we've also seen
|
||||
# ssl connections to round robin backend services have trouble. Restarting
|
||||
# the workers so that they load up new info seems to fix this. Try and force
|
||||
# that to happen regularly with a connections limit per worker.
|
||||
<IfModule mpm_worker_module>
|
||||
MaxConnectionsPerChild 8192
|
||||
</IfModule>
|
||||
<IfModule mpm_event_module>
|
||||
MaxConnectionsPerChild 8192
|
||||
</IfModule>
|
@ -2,3 +2,8 @@
|
||||
service:
|
||||
name: apache2
|
||||
state: reloaded
|
||||
|
||||
- name: gitea Restart apache2
|
||||
service:
|
||||
name: apache2
|
||||
state: restarted
|
||||
|
@ -24,3 +24,12 @@
|
||||
group: root
|
||||
mode: 0644
|
||||
notify: gitea Reload apache2
|
||||
|
||||
- name: Copy apache tuning
|
||||
copy:
|
||||
src: apache-connection-tuning
|
||||
dest: /etc/apache2/conf-enabled/connection-tuning.conf
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
notify: gitea Restart apache2
|
||||
|
Loading…
Reference in New Issue
Block a user