Quantcast
Channel: Drupal.Practice.Development.Training - міграція
Viewing all articles
Browse latest Browse all 4

PerconaDB конфігурація SQL сервер - InnoDB aka XtraDB на 2G RAM і двоядерному CPU і FreeBSD

$
0
0

Дана конфігурація максимально довго тестована і оптимізована саме під не дуже потужні машинки, але з врахуванням максимальної продуктивності.

конфігурація SQL сервера для розробки і з деякими винятками для production


# 2GB RAM
# CPU i386 P4 class dualcore
# single HDD (no raid)
# system swap size 6GB +
[client]
port = 3306
socket = /tmp/mysql.sock

[mysqld]
port = 3306
socket = /tmp/mysql.sock
back_log = 50
max_connections = 100
max_connect_errors = 10

table_open_cache = 2048
max_allowed_packet = 32M
binlog_cache_size = 1M
max_heap_table_size = 64M
read_buffer_size = 2M
read_rnd_buffer_size = 16M
sort_buffer_size = 8M
join_buffer_size = 8M
thread_cache_size = 8
thread_concurrency = 8
query_cache_size = 64M
query_cache_limit = 2M
ft_min_word_len = 4

default-storage-engine = MYISAM
thread_stack = 192K
transaction_isolation = REPEATABLE-READ
tmp_table_size = 64M
log-bin=mysql-bin
binlog_format=mixed
log_warnings
slow_query_log
long_query_time =0.5
server-id = 1
key_buffer_size = 32M
bulk_insert_buffer_size = 64M
myisam_sort_buffer_size = 128M
myisam_max_sort_file_size = 10G
myisam_repair_threads = 2
myisam_recover

innodb_additional_mem_pool_size = 16M
innodb_buffer_pool_size = 512M
ibdata1:1500M;ibdata2:1500M;ibdata3:1500M;ibdata4:1500M;ibdata5:1500M;ibdata6:1500M;ibdata7:1500M;ibdata8:100M:autoextend
innodb_file_io_threads = 4
innodb_thread_concurrency = 16
innodb_flush_log_at_trx_commit = 1
innodb_log_buffer_size = 8M
innodb_log_file_size = 128M
innodb_log_files_in_group = 3
innodb_max_dirty_pages_pct = 90
innodb_lock_wait_timeout = 120

[mysqldump]
quick
max_allowed_packet = 32M

[mysql]
no-auto-rehash

[myisamchk]
key_buffer_size = 512M
sort_buffer_size = 512M
read_buffer = 8M
write_buffer = 8M

[mysqlhotcopy]
interactive-timeout

[mysqld_safe]
open-files-limit = 8192

Даний конфіг тестовано на percona xtradb версій 5.1+


Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images