How to optimize Hestia to handle heavy traffic

i have php website and my kvm vps have 8 GB ram and 2 cpu cores and SSD storage so i wonder how i can optimize it to handle like 500 ~ 1000 active user load as few weeks ago i was getting 503 http code.


It totally depends on your current setup. Check the internet for possible suggestions. But probably increase the max connections by increasing the max.


Have you enabled nginx + cache? So that Apache does not have to work?

Did you optimize your code so there are few database queries?

If you are running Wordpress, try to use as little plugins as you can and enable a caching plugin.

i do not have wordpress site . my site is custom php :
also my site pages are not cache and ya database Queries are not that much

You can also try keeping the bad guys away from your site.