Как выбрать лучшее решение OS+Vestacp+config+php7(select old)
Re: Как выбрать лучшее решение OS+Vestacp+config+php7(select old)
Щас протестирую сюда кину данные результата!skurudo wrote:Традиционно предлагаю пройтись тюнерами
viewtopic.php?f=32&t=14149
Code: Select all
-- MYSQL PERFORMANCE TUNING PRIMER --
- By: Matthew Montgomery -
MySQL Version 5.5.48-log x86_64
Uptime = 7 days 18 hrs 28 min 48 sec
Avg. qps = 1995
Total Questions = 1339875439
Threads Connected = 128
Server has been running for over 48hrs.
It should be safe to follow these recommendations
To find out more information on how each of these
runtime variables effects performance visit:
http://dev.mysql.com/doc/refman/5.5/en/server-system-variables.html
Visit http://www.mysql.com/products/enterprise/advisors.html
for info about MySQL's Enterprise Monitoring and Advisory Service
SLOW QUERIES
The slow query log is enabled.
Current long_query_time = 5.000000 sec.
You have 448 out of 1339875560 that take longer than 5.000000 sec. to complete
Your long_query_time seems to be fine
BINARY UPDATE LOG
The binary update log is NOT enabled.
You will not be able to do point in time recovery
See http://dev.mysql.com/doc/refman/5.5/en/point-in-time-recovery.html
WORKER THREADS
Current thread_cache_size = 256
Current threads_cached = 73
Current threads_per_sec = 0
Historic threads_per_sec = 0
Your thread_cache_size is fine
MAX CONNECTIONS
Current max_connections = 200
Current threads_connected = 128
Historic max_used_connections = 201
The number of used connections is 100% of the configured maximum.
You should raise max_connections
INNODB STATUS
Current InnoDB index space = 68 M
Current InnoDB data space = 113 M
Current InnoDB buffer pool free = 91 %
Current innodb_buffer_pool_size = 4.00 G
Depending on how much space your innodb indexes take up it may be safe
to increase this value to up to 2 / 3 of total system memory
MEMORY USAGE
Max Memory Ever Allocated : 23.58 G
Configured Max Per-thread Buffers : 18.78 G
Configured Max Global Buffers : 4.70 G
Configured Max Memory Limit : 23.48 G
Physical Memory : 31.22 G
Max memory limit seem to be within acceptable norms
KEY BUFFER
Current MyISAM index space = 444 M
Current key_buffer_size = 512 M
Key cache miss rate is 1 : 536600
Key buffer free ratio = 52 %
Your key_buffer_size seems to be too high.
Perhaps you can use these resources elsewhere
QUERY CACHE
Query cache is enabled
Current query_cache_size = 192 M
Current query_cache_used = 125 M
Current query_cache_limit = 8 M
Current Query cache Memory fill ratio = 65.38 %
Current query_cache_min_res_unit = 4 K
MySQL won't cache query results that are larger than query_cache_limit in size
SORT OPERATIONS
Current sort_buffer_size = 16 M
Current read_rnd_buffer_size = 32 M
Sort buffer seems to be fine
JOINS
Current join_buffer_size = 16.00 M
You have had 76575 queries where a join could not use an index properly
join_buffer_size >= 4 M
This is not advised
You should enable "log-queries-not-using-indexes"
Then look for non indexed joins in the slow query log.
OPEN FILES LIMIT
Current open_files_limit = 65746 files
The open_files_limit should typically be set to at least 2x-3x
that of table_cache if you have heavy MyISAM usage.
Your open_files_limit value seems to be fine
TABLE CACHE
Current table_open_cache = 32768 tables
Current table_definition_cache = 400 tables
You have a total of 15156 tables
You have 17495 open tables.
The table_cache value seems to be fine
You should probably increase your table_definition_cache value.
TEMP TABLES
Current max_heap_table_size = 32 M
Current tmp_table_size = 32 M
Of 690556909 temp tables, 49% were created on disk
Perhaps you should increase your tmp_table_size and/or max_heap_table_size
to reduce the number of disk-based temporary tables
Note! BLOB and TEXT columns are not allow in memory tables.
If you are using these columns raising these values might not impact your
ratio of on disk temp tables.
TABLE SCANS
Current read_buffer_size = 32 M
Current table scan ratio = 26 : 1
read_buffer_size is over 8 MB there is probably no need for such a large read_buffer
TABLE LOCKING
Current Lock Wait ratio = 1 : 21211
Your table locking seems to be fine
Вопрос:
Какую ос лучше всего использовать под производительный сервер nginx+fpm+php(выбор версий для опеределенных сайтов): CentOS 6.8 minimal, CentOS 7.3 minimal, Debian 8.7 LAMP, Debian 8.7 minimal, openSUSE 42.2 minimal, Ubuntu 16.04.1 LTS minimal, Ubuntu 16.10 minimal ?
Re: Как выбрать лучшее решение OS+Vestacp+config+php7(select old)
Deeryo wrote:Самый производительный вариант - это использовать nginx и php-fpm с модулем opcache. Apache в этом случае нет. Можно даже сделать переключатель версий php, используя готовые пакеты (без компиляции) и шаблоны панели.
viewtopic.php?f=28&t=12344&p=48598#p48598
viewtopic.php?f=28&t=12344&p=48799#p48792
поделись еще ссылкой по настройке nginx+php fpm 7 с выбором нужной версии php через шаблон!