![]() I've tried my best to give you the succinct version of what to calculate, as well as how, but depending on your level of skill, you may need to read the article fully. The most complicated one to calculate is max_children because there is a formula he uses to do this which is (Total RAM - Memory used on server) / Process Size = max_children. The article will help you scientifically calculate the exact settings you should use for max_children, start_servers, min_spare_servers, and max_spare_servers. You are probably going to want to read this article on FPM tuning which I used to determine the settings below. ![]() ![]() You really do want to maximise your server as much as possible to avoid bottlenecks and crashes later on. That said, overlooking this step is like buying a sports car and never going above 20 mph you're going to kill the engine by not using the car correctly. ![]() This section outlines how to go about configuring your php-fpm It may seem complicated and overwhelming and you can totally skip this if you want to. Ignore files apc.filters = "/var/apc.use_request_time=1 Allow 2 seconds after a file is created before it is cached to prevent users from seeing half-written/weird pages. The number of seconds a cache entry is allowed to idle in a slot before APC dumps the cache. Relative to the number of cached files (you may need to watch your stats for a day or two to find out a good number). Opcache.error_log=/var/log/opcache-errors.log
0 Comments
Leave a Reply. |