Merge "Increase gitea db connection limit"

This commit is contained in:
Zuul 2024-02-05 23:21:42 +00:00 committed by Gerrit Code Review
commit af14ca1aba
4 changed files with 11 additions and 1 deletions

View File

@ -0,0 +1,2 @@
[mysqld]
max_connections=200

View File

@ -24,6 +24,13 @@
template:
src: app.ini.j2
dest: /var/gitea/conf/app.ini
- name: Write mariadb conn limit config file
copy:
src: 99-max_conn_my.cnf
dest: /var/gitea/conf/99-max_conn_my.cnf
owner: root
group: root
mode: 0644
- name: Install distro packages
package:
name:

View File

@ -14,6 +14,7 @@ services:
MYSQL_PASSWORD: "{{ gitea_db_password }}"
volumes:
- /var/gitea/db:/var/lib/mysql
- /var/gitea/conf/99-max_conn_my.cnf:/etc/mysql/conf.d/99-max_conn_my.cnf:ro
logging:
driver: syslog
options:

View File

@ -130,7 +130,7 @@ def test_no_500_template_content(host):
'--resolve gitea99.opendev.org:3081:127.0.0.1 '
'https://gitea99.opendev.org:3081' + path)
assert 'status-page-500' not in cmd.stdout
assert 'Internal Server Error' not in cmd.stdout
assert '<title>Internal Server Error' not in cmd.stdout
def test_gitea_screenshots(host):