How optimize Openlitespeed settings to take advantage of server resources

moisb

New Member
#1
hello, I just migrated from nginx to a litespeed configuration, but the platform configuration files (Runcloud.io) do not change as I increase the power of my server. My webserver is located on AWS EC2 and in this instance only Openlitespeed and Redis are running. My database is on another dedicated instance (RDS).

currently my EC2 instance is t3a.xlarge (4vcpu + 16GB):


but even with all this resource available and only 2,000 daily hits, I have been experiencing periods of maximum usage (overload) of the 4 CPU cores. I think it happens when some cron task is running. The overload problem is only with CPU, the amount of memory used on average is 2GB of 16GB.

My httpd_config.conf: https://pastebin.com/y6MQWdSF
My LiteSpeed Advance Config (handler): https://pastebin.com/yWQhj8xV

My FPM Config: My PHP settings:
 
Top