/ nginx / docs / how-to-improve-concurrency


Do not force NGINX to do a redundant job

Control what do you log

The less you log the faster requests will be served. Keep in mind the pain you will be in when you will need to get some information and the last hope are logs.

Good place to start

Control what you do compress

It will cost CPU resources and time to compress something that has no benefit of being compressed like really small files or already compresses ones.

Good place to start

Smaller wait time

Less timeouts, faster next connection can be handled.

Variables