Skip to content

Performance - Nginx Stream SSL Server Vs Nginx HTTPS Server #87

@AITech19

Description

@AITech19

We have observed that the performance is very low in the Nginx Stream SSL Server compared to the Nginx HTTPS Server. Why is the Stream SSL Server giving low performance? Please find the Nginx configuration below and can anyone suggest ways to boost the performance of the Stream SSL Server?

**benchmark tool: Apache benchmark

events {
use epoll;
worker_connections 65536;
multi_accept on;
accept_mutex off;
}

Stream Server

stream {
upstream https_server {
server 19.0.0.7:443;
}
server {
listen 1500 ssl ;
ssl_certificate cert/server.crt.pem;
ssl_certificate_key cert/server.key.pem;
ssl_client_certificate cert/RootCA.crt.pem;
ssl_asynch on;
proxy_pass https_server;
proxy_ssl on;
proxy_ssl_session_reuse off;
proxy_ssl_asynch on;
}
}

Backend Server

http {
keepalive_timeout 50s;
connection_pool_size 1024;
keepalive_requests 10000;
access_log off;
server {
listen 443 ssl default_server;
ssl_protocols TLSv1.2;
ssl_certificate cert/server.crt.pem;
ssl_certificate_key cert/server.key.pem;
ssl_client_certificate cert/rootca.crt.pem;
ssl_session_cache off;
root /html;
index index.html index.htm index.nginx-debian.html;
server_name _;
location / {
try_files $uri $uri/ =404;
}
}
}**

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions