Hi Forum
I am looking for some guidance on where to look or check for a connection limit or timeout setting with OpenLitespeed.
To brefly explain, I have been running some load testing for a PHP website (Craft CMS 4) and it appears that no matter what size server I run, 4 Core with 16GB RAM, 8 Core with 32GB RAM or 16 cores with 64GB RAM. (All dedicated resources on Azure) the connection count seems to cap out at around 180 clients/sec as reported by loader.io.
We have even tried moving the database off to it's own Azure managed instance and connected it to the Enhance server via a private network so all database connections were still using internal IPs. The website always loads quickly when you are browsing it but it does not seem to be able to go past 180 clients/sec.
When testing with the 16 Core server I could see that all of the cores were in use but only around 30% each with plenty of headroom and the used memory was only ever around 4GB in total so plenty of memory left on every size. The disk queue was not high and the disk IOPS were not high either.
With each change in server size I tried tweaking the config by increasing the "Server Configuration > General > Number of Workers" and more importantly the "Server Configuration > External App > LiteSpeed SAPI App > Max Connections" setting.
I even tried the auto configuration from cPFence (https://gist.github.com/cPFence/d829366b95f8abd4d4ac2501b7be425d#file-ols_optimize-sh) and set the following in the script but still capped out at 180 ish clients/sec
Server Configuration > General > Number of Workers = 4
The Enhance package itself has no limits on it so thats not limiting it.
If I review the openlitespeed error_log I see multiple lines like this
[NOTICE] [3224] [18.204.4.113:34502#xxxxxx.xxxxxxxx.com] oops! 503 Service Unavailable
or
[NOTICE] [3224] [44.197.182.180:41572#xxxxxx.xxxxxxxx.com] ExtConn timed out while connecting.
or
No request delivery notification has been received from LSAPI application, possible dead lock.
I did try switching to LiteSpeed but that had the exact same issue so switched back to OpenLiteSpeed.
What am I missing?
Any help is much appreciated!