<html><head></head><body><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div><div>Hi Team<br><div><br><div>I am trying execute ~1000 curl request from my CentOS machine to my nginx server in ~5 sec.<br><div>The same exercise continuous every ~5sec.<br><div><br><div>I am using libcurl to make the HTTP request.<br><div><br><div>During this process i see most of my request are failed with reason<br><div><br><div><span><b>Failure Curl Error Code[ 7 ] Reason[ Couldn't connect to server ]</b><br></span><span></span><div><br><div>Can someone suggest whether i am missing any configuration info in my nginx server. Below is my nginx server configuration<br><div><br><span>user nginx;<br>worker_processes auto;<br>error_log /var/log/nginx/error.log;<br>pid /run/nginx.pid;<br><br># Load dynamic modules. See /usr/share/nginx/README.dynamic.<br>include /usr/share/nginx/modules/*.conf;<br><br><br>worker_rlimit_nofile 262144;<br><br>events {<br> worker_connections 16384;<br>}<br><br>http {<br> log_format main '$remote_addr - $remote_user [$time_local] "$request" '<br> '$status $body_bytes_sent "$http_referer" '<br> '"$http_user_agent" "$http_x_forwarded_for"';<br><br> access_log /var/log/nginx/access.log main;<br><br> sendfile on;<br> tcp_nopush on;<br> tcp_nodelay on;<br> keepalive_timeout 65;<br> types_hash_max_size 2048;<br><br> include /etc/nginx/mime.types;<br> default_type application/octet-stream;<br><br> # Load modular configuration files from the /etc/nginx/conf.d directory.<br> # See http://nginx.org/en/docs/ngx_core_module.html#include<br> # for more information.<br> include /etc/nginx/conf.d/*.conf;<br><br> limit_conn_zone $binary_remote_addr zone=perip:10m;<br> limit_conn_zone $server_name zone=perserver:10m;<br><br> server {<br> limit_conn perip 2000;<br> limit_conn perserver 20000;<br> listen *:8080 backlog=16384;<br> }<br>}</span><br></div></div></div></div></div></div></div></div></div></div></div></div></div><div><br></div><div class="ydp2b8ea2csignature"><div><span>Regards</span></div><div style="color:rgb(0, 0, 0);font-size:13px;font-family:arial, helvetica, clean, sans-serif;background-color:transparent;font-style:normal;"><span>Mohanaprakash T<br></span></div></div></div></div></body></html>