|
|
@@ -37,7 +37,7 @@ services:
|
|
|
DB_DATABASE: open_assistant1
|
|
|
DB_USER: open_assistant
|
|
|
DB_PASSWORD: 123456
|
|
|
- DB_POOL_SIZE: 1000
|
|
|
+ DB_POOL_SIZE: 100000
|
|
|
DB_POOL_RECYCLE: 3600
|
|
|
|
|
|
# redis
|
|
|
@@ -104,7 +104,7 @@ services:
|
|
|
DB_DATABASE: open_assistant1
|
|
|
DB_USER: open_assistant
|
|
|
DB_PASSWORD: 123456
|
|
|
- DB_POOL_SIZE: 1000
|
|
|
+ DB_POOL_SIZE: 100000
|
|
|
DB_POOL_RECYCLE: 3600
|
|
|
|
|
|
# redis
|
|
|
@@ -183,7 +183,7 @@ services:
|
|
|
MYSQL_PASSWORD: '123456'
|
|
|
MYSQL_DATABASE: open_assistant1
|
|
|
# TZ: Asia/Shanghai
|
|
|
- command: [ 'mysqld', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci' ]
|
|
|
+ command: [ 'mysqld', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci','--max_connections=100000', '--wait_timeout=60', '--interactive_timeout=60' ]
|
|
|
healthcheck:
|
|
|
test: [ "CMD", "mysqladmin", "ping", "-h", "localhost" ]
|
|
|
timeout: 20s
|