Bots Causing heaving load on server can this be throttled
-
I am running/managing an Ubuntu server that has 96Gb RAM and 16 cores. Whenever the weekly newsletter is sent out, the website is hit with a large number of requests, mostly from bots. In order to ensure the workload is managed appropriately is it acceptable to throttle WordPress’ PHP so it’s not competing with MySQL eg by setting proc_nice within the PHP to a slightly lower setting than normal, so MySQL will process all the SQL quickly and PHP will consume the spare server resources, or is it best to just allow Linux to work out who gets what?
Scenario
A newsletter is sent out. Bots seem to process as well as humans. 100s of page requests are sent per second over 3 minutes. The server picks up the load and runs flat out for approx 3.5 minutes.What I was considering is if the PHP priority is lowered a little for system resources, processing will queue in PHP-FPM and Apache and flow into the server without just dumping all requests at once which can max out the MySQL connections and cause page drops or potentially slow page times, rather than use PHP to process and send requests to MySQL as resources are available and thereby the request flow through the server more smoothly. Thoughts? Is this a practical idea?
Obviously, the alternative is to just ensure there are sufficient MySQL connections and let the server manage the competing demands. At the workload peak, Linux is reporting (Load1) that there is sufficient workload for 51 cores, hence asking the question.
MySQL – V8.0.34, PHP – V8.2.11
Thank you. Any thoughts or advice welcomed.The page I need help with: [log in to see the link]
- The topic ‘Bots Causing heaving load on server can this be throttled’ is closed to new replies.