worker_processes  16;

worker_cpu_affinity 0000000000000001 0000000000000010  0000000000000100 0000000000001000 0000000000010000 0000000000100000 0000000001000000 0000000010000000 0000000100000000 0000001000000000 0000010000000000 0000100000000000 0001000000000000 0010000000000000 0100000000000000 1000000000000000;
worker_rlimit_nofile 1048576;

events {
        worker_connections 1048576;
}

http {
        # something and so on
}