Answer the question
In order to leave comments, you need to log in
Increasing which server settings will speed up sites?
I have VPS.
According to ISP Manager, the processor is loaded up to 4%, the RAM is 15%, the space is 70%
hdd disks
Intel(R) Xeon(R) CPU E5645 @ 2.40GHz (2 cores)
RAM 4 giga
swap file 204 MiB
apache 2.2.15- 47.el6.centos.1
php 5.6.17-1.el6.remi
perl 5.10.1-141.el6_7.1
kernel 2.6.32-042stab127.2 Can
you please tell me what server parameters can be changed to speed up the opening of sites?
Or since the processor and RAM are not loaded anyway, then increasing the server power will not speed up the opening of sites in any way?
Will SDD drives speed up?
Answer the question
In order to leave comments, you need to log in
They will speed up good connected network interfaces and a well-twisted kernel.
SSD should be installed on some superloaded sites.
Normal processor and disks.
Normal OS (Сentos 6 is outdated) and PHP in FastCGI mode or PHP mpm-itk module
Optimization of the MySQL server also does not hurt.
I would format this misunderstanding and set it up from scratch.
Too superficial data to be able to advise specifically. For - it is necessary, as they say, to update, but - it is not clear what engines you have there, what is used in the form of a database and what is the connection between the database and the web server. Maybe you need to install a newer version of php, maybe finalize the scripts for it, and also update the muscle on Marya db, or maybe put nginx as a proxy, some kind of meme cache and a lot more. Sometimes just increasing the memory in the database configuration will give a performance boost. Well, you need to understand what we measure.
The network - in my opinion, is not the first indicator on which the speed of sites depends. The bottleneck is usually the return of dynamic content, which is tied to disk performance and database speed. To answer more specifically, you need to look at the settings and check the load on the server with utilities.
Increasing which server settings will speed up sites?
More power probably won't help.
Optimize your site.
Upgrade to php 7.3.
Use caching.
I think you will need 2 cores and 1GB of RAM. SSD is a priority, but not essential if the site is already in memory. An SSD will help when accessing the disk if you have a lot of heavy content, such as video. Otherwise it won't have much effect.
Of course, the advisers are great and various "optimize the site" and "update the software", of course, can help.
But it is not exactly.
I would first proceed from the monitoring data:
1. network
load 2. memory / cpu
load 3. disk load (queues to disk)
- The channel is not loaded at traffic peaks = the channel does not need to be changed yet
- Memory / CPU is not at 100 % (and there is no queue to the CPU) - it also seems to make no sense to upgrade
- there are often no queues for disks - it means that the disk system is coping with your load.
If there are no problems in the above areas - you can go to
- component upgrade
- database load analysis
It is also worth mentioning that you can help
- changing the host
- Optimization of content delivery (CDN, in current realities and for dynamic content, through, for example, CloudFlare - despite its latest fakap)
- APM data analysis. You can take some kind of datadog or newrelic in free variations, but you will have to optimize the site code if problems are found. I would not recommend doing this item until you have tried other ways to solve your problem - you can dig into areas you don't need and see problems where there really aren't any. In your case, I wouldn't bother with it.
PS My answer refers to some general case. If your site is the first work of some novice programmer (including you), then it may well be that nothing will help him at all, except for a complete rewrite. I don’t want to offend you - I just turned off my first share and forgot :D
Ssd always gives an increase.
In this case, you need to twist the settings of the web server of the database, optimize the code
innodb_flush_log_at_trx_commit = 2
You can even
innodb_flush_log_at_trx_commit = 0
SSD - definitely
Cache php opcache
php 7 and higher is a 2x increase relative to 5.6
php-FPM - the fastest
Well, most importantly, web sites do not like the number of cores, but their frequency.
For example, on my I9, even on 1 5GHz core, your site will work faster than on this 2.6 shit, no matter how many cores you cram there.
https://ru.hetzner.com/hosting/produkte_rootserver/ex62
price -20% vat since it's not in a "rising country"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question