שלום רב, בזמן האחרון יש קצת יותר מדי משחקים עם ה load בשרת..
אני אשמח אם תוכלו לייעץ לי בנוגע לאופטימיזצייה של הקונפיגורציות בשרת.
מפרט השרת:
2 מעבדי קאווד קור - E5405 @ 2.00GHz
6 ג'יגה ראם.
MySQL 5.0.67
my.cnf -
קוד:
[mysqld]
port = 3306
socket = /var/lib/mysql/mysql.sock
safe-show-database
tmpdir = /home/tmp
back_log = 50
skip-innodb
max_connections = 1000
key_buffer_size = 800M
myisam_sort_buffer_size = 64M
join_buffer_size = 1M
read_buffer_size = 1M
sort_buffer_size = 3M
table_cache = 8000
thread_cache_size = 768
wait_timeout = 25
connect_timeout = 10
tmp_table_size = 64M
max_heap_table_size = 64M
max_allowed_packet = 64M
net_buffer_length = 16384
max_connect_errors = 100000
thread_concurrency = 16
concurrent_insert = 2
table_lock_wait_timeout = 30
read_rnd_buffer_size = 1M
bulk_insert_buffer_size = 8M
query_cache_limit = 6M
query_cache_size = 192M
query_cache_type = 1
query_prealloc_size = 262144
query_alloc_block_size = 65536
transaction_alloc_block_size = 8192
transaction_prealloc_size = 4096
default-storage-engine = MyISAM
max_write_lock_count = 8
[mysqld_safe]
nice = -10
open_files_limit = 8192
[mysqldump]
quick
max_allowed_packet = 16M
[myisamchk]
key_buffer = 640M
sort_buffer = 16M
read_buffer = 16M
Apache 2.2.14 -
קוד:
<IfModule mpm_prefork_module>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
ServerLimit 450
MaxClients 450
MaxRequestsPerChild 10000
</IfModule>
מותקן על השרת xcache, ככה שאני אשמח לקבל המלצות לקונפיגורציה של זה גם
תודה רבה.