From 0e8abbf7723d8a7109b7f67a647709a8bce023d9 Mon Sep 17 00:00:00 2001 From: extreme4all <> Date: Thu, 9 Nov 2023 20:00:26 +0100 Subject: [PATCH] added conf.d --- docker-compose.yaml | 2 ++ mysql/conf.d/config-file.cnf | 43 ++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 mysql/conf.d/config-file.cnf diff --git a/docker-compose.yaml b/docker-compose.yaml index ac588120..98fc4c4b 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -59,6 +59,7 @@ services: - MYSQL_ROOT_PASSWORD=root_bot_buster volumes: - ./mysql/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d + - ./mysql/conf.d:/etc/mysql/conf.d # - ./mysql/mount:/var/lib/mysql # creates persistence ports: - 3306:3306 @@ -66,6 +67,7 @@ services: - botdetector-network public_api: + image: bot-detector/public_api container_name: public_api build: context: . diff --git a/mysql/conf.d/config-file.cnf b/mysql/conf.d/config-file.cnf new file mode 100644 index 00000000..87ed6718 --- /dev/null +++ b/mysql/conf.d/config-file.cnf @@ -0,0 +1,43 @@ +[mysqld] +log-bin = mysql-bin +server-id = 1 +max_connections=5000 +slow_query_log = 1 +long_query_time = 20 +interactive_timeout = 60 +wait_timeout = 30 +expire_logs_days = 7 +performance_schema = 1 + +user = mysql +bind-address = 0.0.0.0 +mysqlx-bind-address = 127.0.0.1 +key_buffer_size = 16M +myisam-recover-options = BACKUP +#log_error = stderr +max_binlog_size = 100M + +default-authentication-plugin=caching_sha2_password + +# InnoDB variables + +innodb_buffer_pool_size = 16G +innodb_rollback_on_timeout = 1 +innodb_file_per_table = 1 +innodb_buffer_pool_instances = 8 +innodb_stats_on_metadata = 0 + +innodb_log_buffer_size = 1G +innodb_log_file_size = 512M +innodb_page_size = 16384 +innodb_log_write_ahead_size = 16384 +innodb_rollback_on_timeout = 1 +innodb_io_capacity = 2000 +innodb_read_io_threads = 64 +innodb_write_io_threads = 64 +innodb_thread_concurrency = 0 + +[mysqldump] +quick +quote-names +max_allowed_packet = 16M \ No newline at end of file