My NodeJS Application is running on Elastic Beanstalk, platform: Node.js running on 64bit Amazon Linux.
There is an issue worker_connections is not enough.
1024 worker_connections are not enough while connecting to upstream
This is the default worker_connections set in elastic beanstalk nginx.conf file
nginx.conf
# Elastic Beanstalk Nginx Configuration File
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;
events {
worker_connections 1024; # <-- want to change this number
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
access_log /var/log/nginx/access.log;
log_format healthd '$msec"$uri"$status"$request_time"$upstream_response_time"$http_x_forwarded_for';
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
I want to increase worker_connections
number.
To do that it means I need to replace default nginx.conf
, but I can't find a way to do this.
In AWS doc, there is only a guide to override nginx config inside http
section.
Please help! Thanks