zodern / meteor-up

Production Quality Meteor Deployment to Anywhere
http://meteor-up.com/
MIT License
1.27k stars 281 forks source link

how to change nginx worker_connections #1227

Closed welkinwong closed 2 years ago

welkinwong commented 3 years ago

the nginx worker_connections default is 1024

nginx.1    | 2021/02/23 14:52:05 [alert] 63#63: 1024 worker_connections are not enough
nginx.1    | 2021/02/23 14:52:05 [alert] 63#63: *15590 1024 worker_connections are not enough while connecting to upstream, ******

access my site will be server error(code 500)😭

zodern commented 3 years ago

I created https://github.com/zodern/nginx-proxy to increase the limit. The next version of mup will include this.

wildhart commented 3 years ago

How do we use your forked nginx-proxy while we wait for 1.5.4?

In the mean time I have manually changed my remote nginx config with:

ssh ...
docker exec -it mup-nginx-proxy bash
sed -i 's/worker_connections  1024/worker_connections  10240/' /etc/nginx/nginx.conf
exit
exit
mup proxy stop
mup proxy start
wildhart commented 3 years ago

@zodern since making this change to the proxy I've noticed my app's CPU and response times have increased significantly: image

Any ideas why that could be?

markdowney commented 3 years ago

Facing the same issue. @zodern can you recommend the best way to switch to the new docker image?

markdowney commented 3 years ago

Just submitted a PR (#1234) to use zodern's docker image.

@wildhart: restarting the proxy resets default values so not sure your command worked.

zodern commented 2 years ago

This is fixed in version 1.5.4.