Welcome! Log In Create A New Profile

Advanced

SSL sessions/sec not going further than 4000/s

Posted by shija03 
SSL sessions/sec not going further than 4000/s
August 17, 2016 06:02PM
Hello,

I am running NGINX from /dev/shm and I am stumble at a limit of 4000 sessions per second. No matter what I have changed (and my ulimit -n or hard/soft nofile under limits.conf are 65000). My goal is to be able to see 30000 sessions per second - this is not the same as to sockets connected on the server (linux netstat -apn shows only 250) Connections are established using keepalive.

Giving 16 workers (16 CPUs I have), with and without limits, and 64GB of RAM, and the configuration looks like this:


user nginx;
worker_processes 16;
worker_rlimit_nofile 200000;
worker_cpu_affinity 0000000000000001 0000000000000010 0000000000000100 0000000000001000 0000000000010000 0000000000100000 0000000001000000 0000000010000000 0000000100000000 0000001000000000 0000010000000000 0000100000000000 0001000000000000 0010000000000000 0100000000000000 1000000000000000;


events {
# worker_connections 1024;
use epoll;
worker_connections 4000;
multi_accept on;
}

http {
include /etc/nginx/mime.types;
default_type application/octet-stream;

log_format main ' - [] "" '
' "" '
'"" ""';

access_log off;

#server_tokens off;
sendfile on;
tcp_nopush on;
tcp_nodelay on;

keepalive_requests 200000;
keepalive_timeout 30 30;
reset_timedout_connection on;

send_timeout 2;

client_body_timeout 10;

#gzip on;

open_file_cache max=1000 inactive=20s;
open_file_cache_valid 30s;
open_file_cache_min_uses 2;
open_file_cache_errors on;

include /etc/nginx/proxy.conf;
include /etc/nginx/conf.d/myserver;

}

Any help is greatly appreciated.

Thank you.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 295
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready