antonputra / tutorials

DevOps Tutorials
https://youtube.com/antonputra
MIT License
3.19k stars 2.5k forks source link

Improve Nginx config #325

Closed melroy89 closed 3 weeks ago

melroy89 commented 3 weeks ago

Me again 😆 .You are (again) using default configurations. Which is not good.

I try to come-up with again a better Nginx configuration. I don't use Apache myself, but you most likely want to fine-tune that setup as well.

m6a.xlarge might be not large enough with only 2 cores to really stress the system.

For now I set the Nginx thread pool to use only 2 threads. However, if your test environment will have 4 or 8 cores, please increase the threads in the thread pool as well as max queue and worker_connections!

Last but not least, you're not running the latest Nginx version. Try to run nginx v1.27.2

antonputra commented 3 weeks ago

@melroy89 You created PR against 219 not the main branch :(

melroy89 commented 3 weeks ago

@melroy89 You created PR against 219 not the main branch :(

@antonputra Because that is the LInk in your YouTube description! New PR: https://github.com/antonputra/tutorials/pull/326