一個magento2網站10萬SKU ,需要怎麼樣的伺服器
目前8G記憶體4核心
還有 php.ini 需要怎麼樣的配置
mysql ,my.cnf 需要怎麼樣配置
網上看到一些參考如下 , 想知道該怎麼調整這些參數。
mysql
innodb_thread_concurrency = 8
innodb_flush_log_at_trx_commit = 2
thread_concurrency = 12
thread_cache_size = 32
table_cache = 10034mgmache_ 2M
join_buffer_size = 8M
tmp_table_size = 256M
key_buffer = 32M
innodb_autoextend_increment=512
max_allowed_packet = 16M
max_heap_table_size = 256M
read_buffer_size = 2M
read_rnd_buffer_size = 16M
bulk_insert_buffer_size = 64M
_myisam_sort_buffer_b; am_max_extra_sort_file_size = 1G
myisam_repair_threads = 1
PHP設定
realpath_cache_size = 32k
realpath_cache_ttl = 7200
max_input_time = 900 000
output_buffering = 4096
回覆內容:
一個magento2網站10萬SKU ,需要怎麼樣的伺服器
目前8G記憶體4核心
網上看到一些參考如下 , 想知道該怎麼調整這些參數。
mysql
innodb_flush_log_at_trx_commit = 2
thread_concurrency = 12thread_cache_size = 32
table_cache = 10034mgmache_ 2Mjoin_buffer_size = 8M
tmp_table_size = 256M
key_buffer = 32M
innodb_autoextend_increment=512
max_allowed_packet = 16M
max_heap_table_size = 256M
read_buffer_size = 2M
read_rnd_buffer_size = 16M
bulk_insert_buffer_size = 64M
_myisam_sort_buffer_b; am_max_extra_sort_file_size = 1G
myisam_repair_threads = 1
PHP設定
realpath_cache_size = 32k
realpath_cache_ttl = 7200
max_execution_time = 90
max_input_time = 900 000
output_buffering = 4096