By yggitteam
i have 2 server with 4GB and 2 CPU. is it possible to determine which server better than the other via apache status? i use both server for same application and use CF loadbalance.
i want to destroy one but i wonder which one i should destroy. my website is some kind of e-commerce website…
please help me to choose and your analyst as why i should destroy that server…
Here is apache status image https://prnt.sc/yjev4j
in my opinion. i should destroy server A because the response time 3x longer than server B
Server A serve 60% of client Server B serve 40%
and if i build new server, which MPM i should use? imo prefork is better for my kind of website because server B using prefork and have shorter time request while higher CPU load.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi @yggitteam,
Since you are using a load balancer you can’t really tell which one is performing better in my opinion. Having said that, what you can do is optimize the one that you wish to use and then remove the other one.
You mentioned MPMs, a website really performs differently, in speed and everything depending on the MPM. What I usually like to use is MPM Event with PHP-FPM installed and OPcache enabled.
Prefork: Each child process handles one connection at a time. This is the default mode for Apache.
Worker: It uses multiple child processes with many threads each.
Event: This MPM was designed to allow more requests to be served simultaneously by passing off some processing work to supporting threads and freeing up the main threads to work on new requests.
Let’s talk some facts, MPM Prefork is an old MPM and it’s quickly being replaced by both Worker and Event.:
MPM Event
Basically, the best go to combination is MPM Event with PHP-FPM. That’s what everything is using, from cPanel servers to Plesk ones.
So, all in all, it doesn’t matter which server you’ll use but how you optimize it.
Regards, KFSys
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.