Johnny Lim
Johnny Lim

Reputation: 5833

In Nginx, worker_rlimit_nofile is for the whole process or for each worker process?

worker_rlimit_nofile's description is as follows:

Specifies the value for maximum file descriptors that can be opened by this process.

'this process' means the whole process or each worker process?

It's quite confusing to me.

Reference: http://wiki.nginx.org/CoreModule

Upvotes: 1

Views: 3287

Answers (1)

Max Yaskov
Max Yaskov

Reputation: 342

The directive worker_rlimit_nofile is set for each worker process separately.

Full Example Configuration from nginx.com:

...
worker_processes 5;
worker_rlimit_nofile 8192;
events {
  worker_connections 4096;
}
...

Upvotes: 1

Related Questions