Настройка мускула под Торент трекер
Добавлено: 2010-03-19 14:38:08
Дайте пожалуйста пример my.cnf файла мускула который работает с торент трекером. Я уже три недели кручу мускул но результат один и тот же через 3 дня база встаёт колом. Тракер на ppkBB3cker сделан. Тарантайка 4г памяти проц core2duo 2.8.
Конфиг который стоит сейчас
my.cnf
[client]
#password = your_password
port = 3306
socket = /tmp/mysql.sock
# The MySQL server
[mysqld]
port = 3306
socket = /tmp/mysql.sock
skip-locking
key_buffer = 256M
max_allowed_packet = 1M
table_cache = 2000
table_definition_cache = 500
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 4M
myisam_sort_buffer_size = 64M
thread_cache_size = 256
query_cache_size= 64M
query_cache_limit = 4M
query_cache_min_res_unit = 2K
# Try number of CPU's*2 for thread_concurrency
thread_concurrency = 4
max_connections = 400
expire_logs_days = 10
log-slow-queries=/var/db/mysql/slow_queries.log
long_query_time=5
concurrent_insert = 2
low_priority_updates
max_heap_table_size = 64M
tmp_table_size=64M
key_cache_division_limit = 1
key_buffer_size=128M
key_cache_division_limit=70
wait_timeout = 30
max_join_size = 3000000
max_sort_length = 20
net_read_timeout=12
net_write_timeout=15
interactive_timeout=600
# Disable Federated by default
skip-federated
# binary logging format - mixed recommended
binlog_format=mixed
sync_binlog = 1
# required unique id between 1 and 2^32 - 1
# defaults to 1 if master-host is not set
# but will not function as a master if omitted
server-id = 1
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates
[isamchk]
key_buffer = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M
[myisamchk]
key_buffer = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M
[mysqlhotcopy]
interactive-timeout
Конфиг который стоит сейчас
my.cnf
[client]
#password = your_password
port = 3306
socket = /tmp/mysql.sock
# The MySQL server
[mysqld]
port = 3306
socket = /tmp/mysql.sock
skip-locking
key_buffer = 256M
max_allowed_packet = 1M
table_cache = 2000
table_definition_cache = 500
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 4M
myisam_sort_buffer_size = 64M
thread_cache_size = 256
query_cache_size= 64M
query_cache_limit = 4M
query_cache_min_res_unit = 2K
# Try number of CPU's*2 for thread_concurrency
thread_concurrency = 4
max_connections = 400
expire_logs_days = 10
log-slow-queries=/var/db/mysql/slow_queries.log
long_query_time=5
concurrent_insert = 2
low_priority_updates
max_heap_table_size = 64M
tmp_table_size=64M
key_cache_division_limit = 1
key_buffer_size=128M
key_cache_division_limit=70
wait_timeout = 30
max_join_size = 3000000
max_sort_length = 20
net_read_timeout=12
net_write_timeout=15
interactive_timeout=600
# Disable Federated by default
skip-federated
# binary logging format - mixed recommended
binlog_format=mixed
sync_binlog = 1
# required unique id between 1 and 2^32 - 1
# defaults to 1 if master-host is not set
# but will not function as a master if omitted
server-id = 1
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates
[isamchk]
key_buffer = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M
[myisamchk]
key_buffer = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M
[mysqlhotcopy]
interactive-timeout