Skip to content

Commit 6ad718a

Browse files
authored
Increase the MySQL container max_connections. (letsencrypt#3543)
By default the MariaDB/MySQL container starts with a global max connections limit of 100. The SA is configured in `test/config` and `test/config-next` to use 100 connections. This doesn't leave any overhead for `ocsp-updater` connections and can be reached under load pretty easily. This commit adjusts the global max connections setting from `test/create_db.sh`, setting it to a more generous `500` instead of the default `100`.
1 parent 0dc185c commit 6ad718a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/create_db.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ fi
1414
# to the format we use in production, MIXED.
1515
mysql $dbconn -e "SET GLOBAL binlog_format = 'MIXED';"
1616

17+
# MariaDB sets the default @@max_connections value to 100. The SA alone is
18+
# configured to use up to 100 connections. We increase the max connections here
19+
# to give headroom for other components (ocsp-updater for example).
20+
mysql $dbconn -e "SET GLOBAL max_connections = 500;"
21+
1722
for dbenv in $DBENVS; do
1823
db="boulder_sa_${dbenv}"
1924

0 commit comments

Comments
 (0)