Skip to content

Commit

Permalink
Raise connection limit for mysql-planetscale and lower proxy GC of co…
Browse files Browse the repository at this point in the history
…nnections
  • Loading branch information
miguelff committed Nov 22, 2023
1 parent 70ad9ab commit e215092
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions docker/planetscale-mysql/my.cnf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[mysqld]
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
datadir = /var/lib/mysql
secure-file-priv= NULL
max_connections=1000
2 changes: 1 addition & 1 deletion docker/planetscale_proxy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ENTRYPOINT /go/bin/ps-http-sim \
-http-port=8085 \
-mysql-addr=$MYSQL_HOST \
-mysql-port=$MYSQL_PORT \
-mysql-idle-timeout=1200s \
-mysql-idle-timeout=1s \
-mysql-no-pass \
-mysql-max-rows=1000 \
-mysql-dbname=$MYSQL_DATABASE

0 comments on commit e215092

Please sign in to comment.