feat: tune MariaDB memory usage
This commit is contained in:
@@ -7,3 +7,6 @@ mariadb_root_pass: !vault |
|
|||||||
65343238333661333765636131323962316637613036393366343161343162393337376232633432
|
65343238333661333765636131323962316637613036393366343161343162393337376232633432
|
||||||
3233653232353534370a393962663766623237313166333638343561306134663062333230333635
|
3233653232353534370a393962663766623237313166333638343561306134663062333230333635
|
||||||
63343339363833626136646134353365393734346561613262633531386135366634
|
63343339363833626136646134353365393734346561613262633531386135366634
|
||||||
|
|
||||||
|
# 283M of base memory + 20MB/connection -> 1267M of RAM max
|
||||||
|
mariadb_max_connections: 50
|
||||||
|
@@ -2,3 +2,5 @@
|
|||||||
|
|
||||||
mariadb_backup_hour: 5
|
mariadb_backup_hour: 5
|
||||||
mariadb_backup_minute: 0
|
mariadb_backup_minute: 0
|
||||||
|
|
||||||
|
mariadb_max_connections: 150
|
||||||
|
@@ -33,16 +33,16 @@ bind-address = 127.0.0.1
|
|||||||
#
|
#
|
||||||
|
|
||||||
table_definition_cache = 800
|
table_definition_cache = 800
|
||||||
join_buffer_size = 512K
|
join_buffer_size = 1M
|
||||||
|
|
||||||
key_buffer_size = 10M
|
key_buffer_size = 10M
|
||||||
|
max_connections = {{ mariadb_max_connections }}
|
||||||
#max_allowed_packet = 1G
|
#max_allowed_packet = 1G
|
||||||
#thread_stack = 192K
|
#thread_stack = 192K
|
||||||
#thread_cache_size = 8
|
#thread_cache_size = 8
|
||||||
# This replaces the startup script and checks MyISAM tables if needed
|
# This replaces the startup script and checks MyISAM tables if needed
|
||||||
# the first time they are touched
|
# the first time they are touched
|
||||||
#myisam_recover_options = BACKUP
|
#myisam_recover_options = BACKUP
|
||||||
#max_connections = 100
|
|
||||||
#table_cache = 64
|
#table_cache = 64
|
||||||
|
|
||||||
#
|
#
|
||||||
@@ -108,7 +108,8 @@ collation-server = utf8mb4_general_ci
|
|||||||
# Read the manual for more InnoDB related options. There are many!
|
# Read the manual for more InnoDB related options. There are many!
|
||||||
# Most important is to give InnoDB 80 % of the system RAM for buffer use:
|
# Most important is to give InnoDB 80 % of the system RAM for buffer use:
|
||||||
# https://mariadb.com/kb/en/innodb-system-variables/#innodb_buffer_pool_size
|
# https://mariadb.com/kb/en/innodb-system-variables/#innodb_buffer_pool_size
|
||||||
#innodb_buffer_pool_size = 8G
|
innodb_buffer_pool_size = 256M
|
||||||
|
innodb_log_file_size = 64M
|
||||||
|
|
||||||
innodb_file_per_table
|
innodb_file_per_table
|
||||||
innodb_data_file_path=ibdata1:10M:autoextend
|
innodb_data_file_path=ibdata1:10M:autoextend
|
||||||
|
Reference in New Issue
Block a user