set max_connections to 4096

This commit is contained in:
root
2022-01-12 22:08:07 +00:00
parent 17f699b4fa
commit f77d70361a
2 changed files with 6 additions and 1 deletions

View File

@@ -9,7 +9,7 @@ services:
restart: unless-stopped
volumes:
- ./data:/var/lib/mysql
command: --max_connections=2000
command: --max_connections=4096
# this container's job is to initialize MySQL database. It should run just one time.
databunker-init:
#build: .

View File

@@ -31,6 +31,11 @@ resource "aws_db_parameter_group" "databunkerparams" {
name = "db-params-${var.name_suffix}"
family = "mysql8.0"
parameter {
name = "max_connections"
value = "4096"
}
#parameter {
# name = "log_connections"
# value = "1"