How to Set PHP-FPM Properly To Increase Magento2.4.3 Speed?

I have bought 2 cores CPU and 4 GB  memories  RAM web hosting online. I installed ubuntu 21.0.4, php7.4, and Nginx for Magento 2.4.3. I used the system default PHP-FPM settings. Magento 2.4.3 runs very slow. Sometimes https://www.canadasafetyglasses.com/ stops running.  I just modified php-fpm.conf settings, reboot the system, and https://www.canadasafetyglasses.com/ runs very fast now, Here are my settings for php-fpm.conf:

[global]
pid = /usr/local/php/var/run/php-fpm.pid

[www]
listen = /tmp/php-cgi.sock
listen.owner = www
listen.group = www
listen.mode = 0666
user = www
group = www
pm = ondemand
pm.status_path = /www-status
pm.max_children = 2
pm.max_requests = 100
pm.process_idle_timeout = 10s

 

Notes:

If you plan to set pm.min_spare_servers, pm.max_spare_servers, and pm.start_servers, remember:

pm.min_spare_servers(6) and pm.max_spare_servers(12) cannot be greater than pm.max_children(2)
pm.start_servers(6) must not be less than pm.min_spare_servers(1) and not greater than pm.max_spare_servers(2)