0

I was using shared web hosting for my website, but since our hosting company does not allow the use of resources to handle current traffic, I had to move my website to a dedicated server. My website is php based and almost every page has database queries.

Features of our server;

  • Intel Xeon-Silver 4210R (2.4GHz/10-core/100W)
  • 32GB Ram
  • 2 x 480 GB SSD Enterprise
  • Centos 7

After a lot of research, we made tweak settings, apache configuration, php-fpm settings, multi phpini settings.

Plugins;

  • ClamAV Scanner

Apache MPM: mod_mpm_prefork

Apache Configuration;

  • Start Servers: 10
  • Minimum Spare Servers: 10
  • Maximum Spare Servers: 10
  • Server Limit: 2600
  • Max Request Workers: 2600
  • Max Connections Per Child: 10000
  • Keep-Alive: On
  • Keep-Alive Timeout: 1
  • Max Keep-Alive Requests: 100
  • Timeout: 30

MultiPHP INI Editor

  • max_execution_time: 30
  • max_input_time: 60
  • max_input_vars: 1000
  • memory_limit: 128M
  • post_max_size: 8M
  • session.gc_maxlifetime: 1440
  • upload_max_filesize: 2M

PHP-FPM SETTINGS

  • Max Requests: 550
  • Max Children: 50
  • Process Idle Timeout: 100

Our settings are like this, and the number of people who are active on the site momentarily did not cause any problems until 250. 1 apache process uses an average of 10MB of memory. We calculated the functions we found on the internet. We reserved 3 GB of ram for ClamAV. We have reserved 3 GB of ram for other operations.

We do not know how many instant users we can meet with these settings and we do not know whether we can use the full potential of our server.

We need your feedback and help about the settings. We're pretty new to this business. Thanks in advance!

0 Answers0