Привет. Сразу скажу, ситуация не плачевная, страницы грузятся 1.5-2.7 сек, но совершенсву нет предела :)
Поделитесь своими вариациями как еще можно разогнать Prestashop?
Моя конфигурация
По железу более чем достаточно (i7 6700k/64ram/SSD)
nginx 1.8
php-fpm 5.4 (планирую переехать на 5.6 или 7.0), но на php5.6 чувствую выхлопа не будет, а на 7.0 страшновато :)
MariaDB 5.5
my.cnf
symbolic-links=0
skip-name-resolve=1
open_files_limit = 100000
skip-external-locking
key_buffer_size = 256M
max_allowed_packet = 32M
#table_open_cache = 256
sort_buffer_size = 2M
read_buffer_size = 2M
read_rnd_buffer_size = 4M
myisam_sort_buffer_size = 64M
thread_cache_size = 80
query_cache_size= 256M
thread_concurrency = 8
table_open_cache = 2048
table_cache = 4096
table_definition_cache = 8192
join_buffer_size = 8M
tmp_table_size = 256M
max_heap_table_size = 256M
query_cache_type = 0
## InnoDB
innodb_buffer_pool_size = 2G
innodb_file_per_table
nginx.conf
worker_processes 8;
worker_rlimit_nofile 65535;
events {
worker_connections 2048;
use epoll;
multi_accept on;
}
http {
# Main settings
sendfile on;
tcp_nopush on;
tcp_nodelay on;
client_header_timeout 1m;
client_body_timeout 1m;
client_header_buffer_size 2k;
client_body_buffer_size 256k;
client_max_body_size 256m;
large_client_header_buffers 4 8k;
send_timeout 30;
keepalive_timeout 60 60;
keepalive_requests 100;
reset_timedout_connection on;
server_tokens off;
server_name_in_redirect off;
server_names_hash_max_size 512;
server_names_hash_bucket_size 512;
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
open_file_cache max=200000 inactive=20s;
open_file_cache_valid 30s;
open_file_cache_min_uses 2;
# Compression
gzip on;
gzip_comp_level 5;
gzip_min_length 512;
gzip_buffers 8 64k;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript;
gzip_proxied any;
gzip_disable "msie6";
# Proxy settings
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass_header Set-Cookie;
proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_buffers 32 4k;
...
}