Welcome! Log In Create A New Profile

Advanced

proxy_pass for large number of connections

Posted by rfocus_streamer 
proxy_pass for large number of connections
May 27, 2015 08:13AM
Hello, can someone to help me for config file to use for large number of connections ?

I use nginx only for proxy_pass but I see problem with upload and send data to users ( on error log there is nothing )

Can anyone give me recommendation how to set up nginx.conf ?

here is my config line :

user www-data;
worker_processes auto;
worker_rlimit_nofile 8192;

events {
worker_connections 2048;
}

include mime.types;
default_type application/octet-stream;

sendfile on;

server {
listen 8080;
server_name localhost;

location / {
root html;
index index.html index.htm;
}

location /someurl{
more_set_headers 'Content-Type: application/octet-stream';
proxy_max_temp_file_size 0;
auth_basic "Enter your login details !";
auth_basic_user_file c:/users.txt;
proxy_pass http://127.0.0.1:9090;
}
Attachments:
open | download - nginx upload.jpg (25.1 KB)
Re: proxy_pass for large number of connections
May 27, 2015 09:48AM
Which version? nginx or mine? with mine you can use 32k/worker and multiple workers are supported.

---
nginx for Windows http://nginx-win.ecsds.eu/
Re: proxy_pass for large number of connections
May 27, 2015 10:36AM
nginx/1.7.11.3 Gryphon ( Windows )
Re: proxy_pass for large number of connections
May 27, 2015 12:29PM
Is the problem php? see the service installer on site how that one creates a PHP pool.
Then look at the myLoadBalancer example in nginx-win.conf

---
nginx for Windows http://nginx-win.ecsds.eu/
Re: proxy_pass for large number of connections
May 27, 2015 03:44PM
No there is no php on this server, only proxy_pass

So I need for best performance config rules !
Re: proxy_pass for large number of connections
May 27, 2015 03:57PM
In that case whats running on http://127.0.0.1:9090 needs to be able to handle many (proxy_passed) connections on its own, unless you have multiple instances which you then loadbalance using the same technique as with php(-cgi).

---
nginx for Windows http://nginx-win.ecsds.eu/
Re: proxy_pass for large number of connections
May 27, 2015 04:08PM
http://127.0.0.1:9090 is local iptv stream running on VLC so can serve lot of connections, I need to configure nginx to proxypass local iptv stream for large users !
Re: proxy_pass for large number of connections
May 27, 2015 04:48PM
If the backend on 9090 can handle connections non-blocking there is no real limit, so what is currently the problem?

---
nginx for Windows http://nginx-win.ecsds.eu/
Re: proxy_pass for large number of connections
May 28, 2015 07:52AM
9090 working without problem, but problem is with port 8080 ( nginx ) sometimes upload going down ( see picture on attach. ), maybe is a problem network adapter also but I want to know can nginx make that problem with sending data to users ?!
Re: proxy_pass for large number of connections
May 28, 2015 09:22AM
Attachments don't work too well here, please use some pastebin service.

Do you have logfile entries that show what is going on? the logs often will tell why a client link is dropped.

---
nginx for Windows http://nginx-win.ecsds.eu/
Re: proxy_pass for large number of connections
May 28, 2015 09:35AM
there is no attachments is only live stream, also on log there is nothing !
Re: proxy_pass for large number of connections
May 28, 2015 10:35AM
Enable debug for error logging, if something is getting dropped it will get logged.

In your first post you attached an image, this forum doesn't do well with that, so if you want anyone to see that image you have to put it elsewhere.

---
nginx for Windows http://nginx-win.ecsds.eu/
Re: proxy_pass for large number of connections
May 28, 2015 10:41AM
Here is a link of picture :
http://s4.postimg.org/g9d62snt9/nginx_upload.jpg
Re: proxy_pass for large number of connections
May 28, 2015 11:55AM
Ok, but that can be anything, client poor/low upload, saturation somewhere along the way, your storage not fast enough, etc...

If there is no error logged anywhere it's not the backend or nginx but something behind the backend or before it reaches nginx.

---
nginx for Windows http://nginx-win.ecsds.eu/
Re: proxy_pass for large number of connections
May 28, 2015 02:57PM
Thank you very much, I just wanted to make sure that the nginx is not a problem.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 94
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