Add custom command options for MariaDB service in swarm-compose.yml to optimize connection handling and timeout settings, enhancing database performance and reliability.
This commit is contained in:
@@ -42,6 +42,13 @@ services:
|
||||
|
||||
db:
|
||||
image: mariadb:10.11
|
||||
command:
|
||||
- --wait_timeout=28800
|
||||
- --interactive_timeout=28800
|
||||
- --max_connections=500
|
||||
- --net_read_timeout=60
|
||||
- --net_write_timeout=60
|
||||
- --max_allowed_packet=64M
|
||||
environment:
|
||||
- MARIADB_ROOT_PASSWORD=squirtle123456
|
||||
- MYSQL_LOG_CONSOLE=true
|
||||
|
||||
Reference in New Issue
Block a user