From e215092af26fe195a38e5a4ed2bc2fbc704d5997 Mon Sep 17 00:00:00 2001 From: Miguel Fernandez Date: Wed, 22 Nov 2023 13:23:27 +0100 Subject: [PATCH] Raise connection limit for mysql-planetscale and lower proxy GC of connections --- docker/planetscale-mysql/my.cnf | 6 ++++++ docker/planetscale_proxy/Dockerfile | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 docker/planetscale-mysql/my.cnf diff --git a/docker/planetscale-mysql/my.cnf b/docker/planetscale-mysql/my.cnf new file mode 100644 index 000000000000..f47f808a75fb --- /dev/null +++ b/docker/planetscale-mysql/my.cnf @@ -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 \ No newline at end of file diff --git a/docker/planetscale_proxy/Dockerfile b/docker/planetscale_proxy/Dockerfile index 2411894d88f0..9d6cca2f5dd8 100644 --- a/docker/planetscale_proxy/Dockerfile +++ b/docker/planetscale_proxy/Dockerfile @@ -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