Hi
There has been an attack on my server for the past week, the botnet network open pages that used mysql and php and it used to cause a lot of load on my mysql so the server would get really slow, I added a security measure so whenever I turn on the option it would redirect the users to login before they can load any content that would use mysql, now my problem is that PHP use to much load to just check if the user is logged in or not and then redirecting the user to another page (the login page is cached so the problem is not there), Here is some detail about my server
2 * Intel(R) Xeon(R) CPU E5-2630 v3
128GB Ram
SSD Disks
cPanel
I'm currently using two core license and when the attack hits the server I see hundreds of lsphp on my server which each one of them are using a small amount of CPU and in total it's using all of my resources, is there anyway that I can tweak stuff to make PHP faster and more responsive? and also would upgrading to four core help with my issue?
Note - I have PHP suEXEC Max Conn on 100 and I can see during the attack that WaitQ for that specific host reach about 3-4k
Note - I already did setup Per Client Throttling , here is my current setting
Static Requests/second 15
Dynamic Requests/second 15
Connection Soft Limit 10
Connection Hard Limit 25
Grace Period (sec) 10
Banned Period (sec) 600
Any help would be greatly appreciated.
Parham
There has been an attack on my server for the past week, the botnet network open pages that used mysql and php and it used to cause a lot of load on my mysql so the server would get really slow, I added a security measure so whenever I turn on the option it would redirect the users to login before they can load any content that would use mysql, now my problem is that PHP use to much load to just check if the user is logged in or not and then redirecting the user to another page (the login page is cached so the problem is not there), Here is some detail about my server
2 * Intel(R) Xeon(R) CPU E5-2630 v3
128GB Ram
SSD Disks
cPanel
I'm currently using two core license and when the attack hits the server I see hundreds of lsphp on my server which each one of them are using a small amount of CPU and in total it's using all of my resources, is there anyway that I can tweak stuff to make PHP faster and more responsive? and also would upgrading to four core help with my issue?
Note - I have PHP suEXEC Max Conn on 100 and I can see during the attack that WaitQ for that specific host reach about 3-4k
Note - I already did setup Per Client Throttling , here is my current setting
Static Requests/second 15
Dynamic Requests/second 15
Connection Soft Limit 10
Connection Hard Limit 25
Grace Period (sec) 10
Banned Period (sec) 600
Any help would be greatly appreciated.
Parham