Skip to content

Instantly share code, notes, and snippets.

@batonac
Last active May 5, 2022 15:26
Show Gist options
  • Save batonac/4228a6a1262c9946c97ca2ea1890efad to your computer and use it in GitHub Desktop.
Save batonac/4228a6a1262c9946c97ca2ea1890efad to your computer and use it in GitHub Desktop.
mysql configuration for zfs inside linux virtual server on runcloud proxmox with 128 MB ram limit
[mysqld]
bulk_insert_buffer_size = 8388608
character-set-client-handshake = FALSE
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci
innodb_buffer_pool_chunk_size = 67108864
innodb_buffer_pool_size = 67108864
innodb_checksum_algorithm = full_crc32
innodb_doublewrite = 0
innodb_file_per_table = 1
innodb_flush_log_at_trx_commit = 2
innodb_flush_method = O_DIRECT
innodb_flush_neighbors = 0
innodb_io_capacity_max = 2500
innodb_io_capacity = 1000
innodb_log_file_size = 16777216
innodb_log_write_ahead_size = 16384
innodb_read_io_threads = 4
#innodb_read_only_compressed = FALSE
innodb_thread_concurrency = 0
innodb_use_atomic_writes = 0
innodb_use_native_aio = 0
innodb_write_io_threads = 4
join_buffer_size = 8388608
key_buffer_size = 8388608
max_allowed_packet = 1073741824
max_connections = 4096
max_heap_table_size = 268435456
myisam_sort_buffer_size = 8388608
query_cache_limit = 16777216
query_cache_size = 134217728
query_cache_type = 1
read_rnd_buffer_size = 262144
sort_buffer_size = 2097152
table_definition_cache = 1408
table_open_cache = 2048
thread_cache_size = 64
tmp_table_size = 268435456
[mysql]
default-character-set = utf8mb4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment