Skip to content

Commit be370f4

Browse files
committed
build: update number of connections from 1,000 to 300
1 parent c032968 commit be370f4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

server/.db/etc/my.cnf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html
33

44
[mysqld]
5-
max_connections=1000
5+
max_connections=350
66

77
#
88
# Remove leading # and set to the amount of RAM for the most im`port`ant data
@@ -36,4 +36,4 @@ pid-file=/var/run/mysqld/mysqld.pid
3636
socket=/var/run/mysqld/mysqld.sock
3737

3838
!includedir /etc/mysql/conf.d/
39-
!includedir /etc/mysql/mysql.conf.d/
39+
!includedir /etc/mysql/mysql.conf.d/

server/app/src/config/db.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const config = {
77
password: process.env.DB_PSWORD,
88
database: process.env.DB_DATABASE,
99
port: Number(process.env.DB_PORT),
10-
connectionLimit: 1000,
10+
connectionLimit: 300,
1111
};
1212

1313
const mysqlPool = mysql.createPool(config);

0 commit comments

Comments
 (0)