Re: Load Balancing NTLM over HTTP with NGINX

2022-11-19 Thread Michael B Allen
On Sat, Nov 19, 2022 at 4:04 PM Maxim Dounin wrote: > Hello! > > On Fri, Nov 18, 2022 at 10:30:29PM -0500, Michael B Allen wrote: > > > NTLM over HTTP is a 3 request "handshake" that must occur over the same > TCP > > connection. > > My HTTP service implements the NTLMSSP acceptor and uses the cl

Re: Load Balancing NTLM over HTTP with NGINX

2022-11-19 Thread Maxim Dounin
Hello! On Fri, Nov 18, 2022 at 10:30:29PM -0500, Michael B Allen wrote: > NTLM over HTTP is a 3 request "handshake" that must occur over the same TCP > connection. > My HTTP service implements the NTLMSSP acceptor and uses the clients remote > address and port like "10.11.12.13:54433" to track th

Re: Load Balancing NTLM over HTTP with NGINX

2022-11-19 Thread Michael B Allen
nt client connections? > Nevermind. As long as the Jespa-Connect-Id uniquely identifies the client, it doesn't matter what the NGINX to backend connections are. They can be the default 1.0. So load balancing NTLM with my implementation using the above nginx.conf directives works great. I d

Load Balancing NTLM over HTTP with NGINX

2022-11-18 Thread Michael B Allen
Hi, NTLM over HTTP is a 3 request "handshake" that must occur over the same TCP connection. My HTTP service implements the NTLMSSP acceptor and uses the clients remote address and port like "10.11.12.13:54433" to track the authentication state of each TCP connection. My implementation also uses a

Load balancing with custom configuration fields

2022-09-22 Thread Devashi Tandon
somehow use the upstream load balancing of NGINX with this custom configuration, or will we have to define our own load balancing logic in our nginx module? Could we do something similar to: ext_private_server http://load-balancer; and then: upstream load-balancer {   server http://private

Re: Help with UDP load balancing passive health checks

2022-02-25 Thread Sergey Kandaurov
> On 25 Feb 2022, at 08:30, Pawel Fraczek wrote: > > Thanks for the explanation. Sorry if I'm being dense but is there some way > to get udp passive health check to fail to the next server? > > Meaning,based on my configuration, am I doing something wrong or is this > simply unavailable wit

Re: Help with UDP load balancing passive health checks

2022-02-24 Thread Pawel Fraczek
Thanks for the explanation. Sorry if I'm being dense but is there some way to get udp passive health check to fail to the next server? Meaning,based on my configuration, am I doing something wrong or is this simply unavailable with udp? Thanks On Thu, Feb 24, 2022, 1:31 AM Sergey Kandaurov wr

Re: Help with UDP load balancing passive health checks

2022-02-24 Thread Sergey Kandaurov
> On 23 Feb 2022, at 06:45, Pawel Fraczek wrote: > > Hi, I'm trying to building a syslog load balancer and I'm running into issues > with the failover of UDP messages. TCP works just fine, when the server goes > down, all messages failover to the active server. But with UDP, that does not >

Help with UDP load balancing passive health checks

2022-02-22 Thread Pawel Fraczek
Hi, I'm trying to building a syslog load balancer and I'm running into issues with the failover of UDP messages. TCP works just fine, when the server goes down, all messages failover to the active server. But with UDP, that does not happen. Maybe someone can point me to what I'm doing wrong. Below

Re: NGINX load balancing - Proxy

2022-02-16 Thread Carlos Renato
Hi Francis, thanks you! Em ter., 15 de fev. de 2022 às 13:49, Francis Daly escreveu: > On Tue, Feb 15, 2022 at 12:31:06PM -0300, Carlos Renato wrote: > > Hi there, > > > This what I get when trying to start NGINX with the simplified file. > > > > [root@proxy conf.d]# cat webgateway.conf > > upst

Re: NGINX load balancing - Proxy

2022-02-15 Thread Francis Daly
On Tue, Feb 15, 2022 at 12:31:06PM -0300, Carlos Renato wrote: Hi there, > This what I get when trying to start NGINX with the simplified file. > > [root@proxy conf.d]# cat webgateway.conf > upstream webgateway { >server 192.168.239.151:9090; >server 192.168.239.152:9090; > } > > server

Re: NGINX load balancing - Proxy

2022-02-15 Thread Carlos Renato
Hi, Josef This what I get when trying to start NGINX with the simplified file. [root@proxy conf.d]# cat webgateway.conf upstream webgateway { server 192.168.239.151:9090; server 192.168.239.152:9090; } server { listen 9191; proxy_pass webgateway; } } [root@proxy conf.d]# nginx -t n

Re: NGINX load balancing - Proxy

2022-02-15 Thread Josef Vybíhal
Seems to me, that you are not using stream{} module as noted by Francis, and you are still putting server block to http{}. If not, post nginx -T J. On Tue, Feb 15, 2022 at 4:17 PM Carlos Renato wrote: > > Hi Francis, > Thanks for the reply and willingness to help me. > > [root@proxy conf.d]# cat

Re: NGINX load balancing - Proxy

2022-02-15 Thread Carlos Renato
Hi Francis, Thanks for the reply and willingness to help me. [root@proxy conf.d]# cat teste.conf upstream webgateway { server 192.168.239.151:9090; server 192.168.239.152:9090; } server { listen 9191; proxy_pass webgateway; } [root@proxy conf.d]# I cannot start NGINX. Feb 15 01:

Re: NGINX load balancing - Proxy

2022-02-15 Thread Francis Daly
On Tue, Feb 15, 2022 at 10:29:50AM -0300, Carlos Renato wrote: Hi there, > My file is like this. Untested by me, but I have edited this to now resemble what I think you want... > upstream webgateway { >server 192.168.239.151:9090; >server 192.168.239.152:9090; > } > > server { >lis

Re: NGINX load balancing - Proxy

2022-02-15 Thread Carlos Renato
Hi Francis, Thanks for the reply. My file is like this. upstream webgateway { server 192.168.239.151:9090; server 192.168.239.152:9090; keepalive 10; } server { listen 9191; server_name proxy.lab.local; location / { proxy_set_header Host $host; proxy_set_heade

Re: NGINX load balancing - Proxy

2022-02-15 Thread Francis Daly
On Tue, Feb 15, 2022 at 08:38:07AM -0300, Carlos Renato wrote: Hi there, > Hello, I would like to use NGINX to balance traffic between two McAfee > (standalone) proxy. nginx as a server will listen for http or https requests; it does not "do" http-proxy requests. (As in: it is not a http (forwar

Re: NGINX load balancing - Proxy

2022-02-15 Thread Carlos Renato
Hello, I would like to use NGINX to balance traffic between two McAfee (standalone) proxy. I've made some advances and I'm able to open an HTTP page. Now, I need the client to open an HTTPS request. Em ter., 15 de fev. de 2022 às 00:54, Sergey A. Osokin escreveu: > Hi Carlos, > > hope you're d

Re: NGINX load balancing - Proxy

2022-02-14 Thread Sergey A. Osokin
Hi Carlos, hope you're doing well. On Mon, Feb 14, 2022 at 11:08:53PM -0300, Carlos Renato wrote: > Hey guys, > > Can someone help me? I'm using NGINX to direct connections to two Proxy > servers. > > I did a simple setup. > > upstream webgateway { >server 192.168.239.151:9090; >server

NGINX load balancing - Proxy

2022-02-14 Thread Carlos Renato
Hey guys, Can someone help me? I'm using NGINX to direct connections to two Proxy servers. I did a simple setup. upstream webgateway { server 192.168.239.151:9090; server 192.168.239.152:9090; } server { listen 81; server_name proxy.lab.local; location / { proxy_pass h

nginx DNS load balancing - Log client requests

2021-11-16 Thread satay
Hello, I would like to log the clients requests information basically DNS resolution requests A, PTR records etc.. How do I enable that logging? Please advise. Thanks Posted at Nginx Forum: https://forum.nginx.org/read.php?2,292863,292863#msg-292863 ___

Re: Load Balancing Apache Tomcat with Nginx : (OpenMeetings Cluster using Apache Tomcat Server)

2021-10-04 Thread Aom Jeff Root
Hi Mr Sergey, Thank you for your email, this was enough helpful for me. Thanks once again. Kind regards, Jeffrey. Le ven. 1 oct. 2021 à 17:09, Sergey A. Osokin a écrit : > Hi Jeffrey, > > On Mon, Sep 27, 2021 at 12:47:53PM +, Aom Jeff Root wrote: > > Hi dear, > > > > > >- I'm student a

Re: Load Balancing Apache Tomcat with Nginx : (OpenMeetings Cluster using Apache Tomcat Server)

2021-10-01 Thread Sergey A. Osokin
Hi Jeffrey, On Mon, Sep 27, 2021 at 12:47:53PM +, Aom Jeff Root wrote: > Hi dear, > > >- I'm student and i work on open source web conferencing project (school >project) I choose Openmeetings > > I work on clustering openmeetings with two nodes and I want to make single > access to

Load Balancing Apache Tomcat with Nginx : (OpenMeetings Cluster using Apache Tomcat Server)

2021-09-27 Thread Aom Jeff Root
Hi dear, - I'm student and i work on open source web conferencing project (school project) I choose Openmeetings I work on clustering openmeetings with two nodes and I want to make single access to the group server. I want to use nginx load balancer . How to configure the nginx to make it

Re: Upstream get stuck in disabled state for websocket load balancing

2021-07-11 Thread Maxim Dounin
Hello! On Fri, Jul 09, 2021 at 09:13:37AM -0400, Oleg Pisklov wrote: [...] > Then a strange thing happens. I expect that new websocket connections will > be distributed evenly among two backends. But most of them land on backend1, > as if backend2 is still disabled. Sometimes there is one client

Upstream get stuck in disabled state for websocket load balancing

2021-07-09 Thread Oleg Pisklov
My current nginx configuration looks like: worker_processes 1; error_log /dev/stdout debug; events { worker_connections 1024; } http { upstream back { server backend1 max_fails=1 fail_timeout=10; server backend2 max_fails=1 fail_timeout=10; } server { listen 80; locat

Re: How to implement a new load-balancing algorithm in Nginx

2021-06-25 Thread malzad
Hi Maxim, Thanks a lot for the help. I will start to look into it. Best, Washik Posted at Nginx Forum: https://forum.nginx.org/read.php?2,291913,291916#msg-291916 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: How to implement a new load-balancing algorithm in Nginx

2021-06-25 Thread Maxim Dounin
Hello! On Thu, Jun 24, 2021 at 02:59:33PM -0400, malzad wrote: > is it possible to implement a new load-balancing algorithm in Nginx just > like “least_conn”, “ip_hash”? The algorithm will hash (not similar to > generic hash provided by Nginx) some part of the URL and do s

How to implement a new load-balancing algorithm in Nginx

2021-06-24 Thread malzad
Hello, is it possible to implement a new load-balancing algorithm in Nginx just like “least_conn”, “ip_hash”? The algorithm will hash (not similar to generic hash provided by Nginx) some part of the URL and do some other calculations, and based on the calculation, the request will be passed to

Re: DNS load balancing issue

2021-04-18 Thread Satay Epic
Anyone? On Wed, Feb 19, 2020, 5:25 PM satay wrote: > Hi Maxim, > > Thanks for responding. I agree with your recommendation. I guess a direct > upgrade from 1.12 to 1.16 (free community version) is possible and > shouldn't break it. > > I'm preferring 1.61 since it's the latest stable version.

Re: Load Balancing TCP directive mail {}

2020-06-08 Thread andersonsserra
Thomas, Thanks for the answer! I made the corrections and the nginx service worked. Thank you. Although it worked, I saw that the backend servers are receiving the IP request from the proxy, is there any way to pass the source IP of the proxy request preserving the source IP and port? take a look

Re: Load Balancing TCP directive mail {}

2020-06-07 Thread itpp2012
andersonsserra Wrote: --- > nginx: [emerg] "stream" directive is not allowed here in /etc/nginx/email/balanceador.conf:1 Posted at Nginx Forum: https://forum.nginx.org/read.php?2,288282,288291#msg-288291

Re: Load Balancing TCP directive mail {}

2020-06-06 Thread Thomas Ward
{} block as your nginx.conf is trying to do. Thomas On 6/6/20 6:51 PM, andersonsserra wrote: > Hi folks, > > I'm trying to do a round-robin load balancing for outgoing connections from > my MTA servers. At first I tried it as follows: > > [root@proxy-lb02 email]#

Load Balancing TCP directive mail {}

2020-06-06 Thread andersonsserra
Hi folks, I'm trying to do a round-robin load balancing for outgoing connections from my MTA servers. At first I tried it as follows: [root@proxy-lb02 email]# pwd /etc/nginx/email [root@proxy-lb02 email]# cat balanceador.conf stream { upstream stream_backend

Re: UDP Load balancing - [Solved]

2020-04-23 Thread Andrei
On Wed, Apr 22, 2020 at 4:22 AM deprito wrote: > Hello @arigatox, > > do you mind share with me, how to LB UDP protocol like wireguard? > > My nginx.conf > user www-data; > worker_processes auto; > pid /run/nginx.pid; > include /etc/nginx/modules-enabled/*.conf; > > stream { > > upstream syslog_u

Load balancing 50000 Citrix ICA sessions through nginx - hardware requirements

2020-04-22 Thread Thomas Glanzmann
Hello, I would like to use nginx to load balance Citrix ICA sessions (socks over https) to four netscalers. Nginx would just distribute the 5 sessions to 4 netscalers. Just tcp with ip hash, no ssl offloading necessary. The traffic is approx. 5 Gbit/s. The connections are long running approx. 1

Re: UDP Load balancing - [Solved]

2020-04-21 Thread deprito
Hello @arigatox, do you mind share with me, how to LB UDP protocol like wireguard? My nginx.conf user www-data; worker_processes auto; pid /run/nginx.pid; include /etc/nginx/modules-enabled/*.conf; stream { upstream syslog_udp { server x.x.x.x:51820; server x.x.x.x:51820; } se

Re: Nginx load balancing to keep sessions between IIS servers

2020-03-27 Thread Francis Daly
On Tue, Mar 24, 2020 at 06:01:35PM -0400, robe007 wrote: Hi there, > I have set up a load balancer with NGINX for two IIS web servers that works > with sessions. What is "a session"? The answer to that may make it clear how to achieve what you want. > upstream mybalancer { > ip_hash; >

Nginx load balancing to keep sessions between IIS servers

2020-03-24 Thread robe007
I have set up a load balancer with NGINX for two IIS web servers that works with sessions. Here is the NGINX configuration file I have created for the load balancing: #Log Format log_format upstreamlog '$server_name to: $upstream_addr [$request] ' 'upstrea

Re: DNS load balancing issue

2020-02-19 Thread satay
Hi Maxim, Thanks for responding. I agree with your recommendation. I guess a direct upgrade from 1.12 to 1.16 (free community version) is possible and shouldn't break it. I'm preferring 1.61 since it's the latest stable version. Beside the upgrade, do you recommend any performance tuning shoul

Re: DNS load balancing issue

2020-02-18 Thread Maxim Konovalov
Hi Satay, On 19.02.2020 09:09, Satay Epic wrote: > Hello, > > I've NGINX 1.12-1 running on CentOS 7.2 and being used for DNS load > balancing. However I'm seeing lots of errors in the "dns.log".. I've > no access to the system right now but error was

DNS load balancing issue

2020-02-18 Thread Satay Epic
Hello, I've NGINX 1.12-1 running on CentOS 7.2 and being used for DNS load balancing. However I'm seeing lots of errors in the "dns.log".. I've no access to the system right now but error was like.. "No response received from the upstream server" The occurrence

Re: UDP Load balancing - [Solved]

2020-01-28 Thread arigatox
Excellent! I upgraded to 1.16.1 and udp load balancing is working as expected. Thank you again Roman. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,286837,286842#msg-286842 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org

Re: UDP Load balancing

2020-01-28 Thread arigatox
Thanks Roman, I will try a newer version and let you know Posted at Nginx Forum: https://forum.nginx.org/read.php?2,286837,286841#msg-286841 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: UDP Load balancing

2020-01-28 Thread Roman Arutyunyan
Hi, On Tue, Jan 28, 2020 at 08:52:53AM -0500, arigatox wrote: > Hi, I am testing nginx as a reverse proxy/load balancer for UDP. I have > configured the upstream servers, and it is working fine, except one issue > that is driving me crazy. > > It seems that nginx does not keep the udp source port

UDP Load balancing

2020-01-28 Thread arigatox
Hi, I am testing nginx as a reverse proxy/load balancer for UDP. I have configured the upstream servers, and it is working fine, except one issue that is driving me crazy. It seems that nginx does not keep the udp source ports between requests. It changes the source port on every request. So I can

Re: Nginx Load Balancing repsond 404

2020-01-14 Thread chateau Xiao
What’s the result of curl when make you request direct to the backend port 1 and 10001? > 在 2020年1月9日,下午9:49,梁维伟 <15521068...@163.com> 写道: > > Hi. > > I have this config below And I requested upstream resource and got 404 > response. However, when I modified 'listen 80' to 'listen 8081', I

Nginx Load Balancing repsond 404

2020-01-09 Thread 梁维伟
Hi. I have this config below And I requested upstream resource and got 404 response. However, when I modified 'listen 80' to 'listen 8081', I requested upstream resource again, I got 200 response. I wonder why. Thanks. snippet of my nginx config http { upstream backend { server IP:

Re: NGINX configuration with two backends (without load balancing) and NGINX - MYSQL TLS encryption

2019-11-21 Thread Roger Pack
QL servers > listening on the same port using different names like you can with http? We > don't want to perform any load balancing operation on them, we just want to > be able to redirect to MySQL instances based on a logical name, same as on > http. > > Question 2 > When

NGINX configuration with two backends (without load balancing) and NGINX - MYSQL TLS encryption

2019-11-20 Thread kev jr
Hi all, Question 1 Is it possible to have NGINX reverse proxy to multiple MySQL servers listening on the same port using different names like you can with http? We don't want to perform any load balancing operation on them, we just want to be able to redirect to MySQL instances based

Re: Load balancing with least_conn strategy does round-robin

2019-02-20 Thread Maxim Dounin
Hello! On Wed, Feb 20, 2019 at 11:01:45AM -0500, emil.vikstrom wrote: > I want to use nginx as a load balancer for tcp streams and because I want to > share the load evenly over all machines I thought that least_conn would be > the right strategy to use in this case. But I have stumbled upon an p

Load balancing with least_conn strategy does round-robin

2019-02-20 Thread emil.vikstrom
m the documentation Syntax: least_conn; Default:— Context:upstream Specifies that a group should use a load balancing method where a connection is passed to the server with the least number of active connections, taking into account weights of servers. If there are several such servers, the

Regarding nginx load balancing based on cpu, memory

2018-08-11 Thread Arunachalam Parthasarathy
hi experts, We had tried hash type load balancing (explorer other types too), but we could not find a rule / config where it can load balance based on cpu or memory limit of application server Do we need write plugin ourselves for the same ? Thanks

Re: UDP load balancing and ephemeral ports

2018-07-17 Thread Maxim Dounin
Hello! On Tue, Jul 17, 2018 at 10:13:35AM -0400, bwmetc...@gmail.com wrote: > Cool. Thanks. Slightly related... given that the proxy_timeout is 10m by > default, can ephemeral ports on the backend be shared by different clients > making requests to nginx? No. The port is bound to a session wi

Re: UDP load balancing and ephemeral ports

2018-07-17 Thread bwmetc...@gmail.com
Cool. Thanks. Slightly related... given that the proxy_timeout is 10m by default, can ephemeral ports on the backend be shared by different clients making requests to nginx? Posted at Nginx Forum: https://forum.nginx.org/read.php?2,280540,280552#msg-280552 _

Re: UDP load balancing and ephemeral ports

2018-07-17 Thread Maxim Dounin
Hello! On Mon, Jul 16, 2018 at 08:27:07PM -0400, bwmetc...@gmail.com wrote: > A couple of questions regarding UDP load balancing. If a UDP listener is > configured to expect a response from its upstream nodes, is it possible to > have another IP outside of the pool of upstream nod

UDP load balancing and ephemeral ports

2018-07-16 Thread bwmetc...@gmail.com
Hello, A couple of questions regarding UDP load balancing. If a UDP listener is configured to expect a response from its upstream nodes, is it possible to have another IP outside of the pool of upstream nodes send a response to the ephemeral port where nginx is expecting a response? I'm p

Re: TCP load balancing with domain name

2018-06-21 Thread Maxim Konovalov
Aravind, On 21/06/2018 11:35, aRaviNd wrote: > Hi All, > > I am trying to configure tcp load balancing with Nginx with below > configuration. > > stream { >     server { >         listen 25; >         resolver 1.1.1.1; >         proxy_pass $host:25; >     }

TCP load balancing with domain name

2018-06-21 Thread aRaviNd
Hi All, I am trying to configure tcp load balancing with Nginx with below configuration. stream { server { listen 25; resolver 1.1.1.1; proxy_pass $host:25; } } If I try to connect mx1.abc.com i would like to expand my variable $host to mx1.abc.com and internally

Load balancing

2018-05-10 Thread Friscia, Michael
I’m working on a project to perform A/B testing with the web hosting platform. The simple version is that we are hosted everything on Azure and want to compare using their Web Apps versus running a VM with IIS. My question is about load balancing since there seems to be two ways to go about

Re: Suggestions for web apps to test out nginx load balancing?

2018-01-26 Thread Peter Booth
ne have a suggestion about a simple, free, open source web app, > with a database that I could test out and get familiar with, nginx's load > balancing functionality on? > > Thank you, >leeand00 > > Posted at Nginx Forum: > https://forum.nginx.o

Suggestions for web apps to test out nginx load balancing?

2018-01-26 Thread leeand00
Does anyone have a suggestion about a simple, free, open source web app, with a database that I could test out and get familiar with, nginx's load balancing functionality on? Thank you, leeand00 Posted at Nginx Forum: https://forum.nginx.org/read.php?2,278284,278284#msg-2

DTLS Load Balancing

2018-01-24 Thread Sékine Coulibaly
I've setup a simplisti UDP load balancing as follow : stream { upstream dtls_udp_upstreams { hash $remote_addr:remote_port; server preprod.mycorp.com:5684; } server { listen 5684 udp; proxy_pass dtls_udp_upstreams; proxy_responses 1; } } I notice that the bala

Re: UDP Load balancing

2018-01-22 Thread Payam Chychi
On Mon, Jan 22, 2018 at 6:02 AM Sékine Coulibaly wrote: > Hi, > > I'm evaluating Nginx Plus for a UDP Load Balancer but can't make it work. > The packets are spoofed correctly on the LB side (as seen with tcpdump, > where I can see packets created, the source IP being the one of the client, > the

UDP Load balancing

2018-01-22 Thread Sékine Coulibaly
Hi, I'm evaluating Nginx Plus for a UDP Load Balancer but can't make it work. The packets are spoofed correctly on the LB side (as seen with tcpdump, where I can see packets created, the source IP being the one of the client, the destination the one of the selected upstream). However, on the upstr

nginx load-balancing latency problem

2017-10-26 Thread Kiss Norbert
Hi Everyone I would like to ask a little help to understand and refine my config. The basic problem: We have 2 nginx frontend on a same site (only for backup and sandbox the secound). We have 2 graylog backend servers on different sites. The nginx servers and SERVER_B is on the same site. The Ngi

nginx load-balancing latency problem

2017-10-25 Thread Kiss Norbert
Hi Everyone I would like to ask a little help to understand and refine my config. The basic problem: We have 2 nginx frontend on a same site (only for backup and sandbox the secound). We have 2 graylog backend servers on different sites. The nginx servers and SERVER_B is on the same site. The Ngi

DTLS Load Balancing

2017-10-19 Thread Simon Bernard
to know if it make sense to make load balancing based on this connection ID.    Here is the use case:    You have a cluster of servers behind a unique IP address.    You do load balancing using IP address.    You use UDP/DTLS.    Some clients are behind NAT and so theirs IP/port can chang

Re: load balancing algorithms

2017-09-27 Thread Adam Schwartz
Hi, > Certainly things will be different if > requests are not equal, though this is what least_conn is expected > to address (and again, it does so better than just testing two > choices). Awesome, I hope to address this issue in my research. My suspicion is that round-robin and random will c

Re: load balancing algorithms

2017-09-26 Thread Maxim Dounin
Hello! On Tue, Sep 26, 2017 at 09:43:37AM -0400, Adam Schwartz wrote: > > On the other hand, there is API in nginx which allows to implement > > any load balancing algorithm needed. > > Cool! I was looking for something like that. > > > As for the algorithms you&

Re: load balancing algorithms

2017-09-26 Thread Adam Schwartz
> On the other hand, there is API in nginx which allows to implement > any load balancing algorithm needed. Cool! I was looking for something like that. > As for the algorithms you've mentioned, "power of two choices" seems > to be better than random, though

Re: load balancing algorithms

2017-09-25 Thread Maxim Dounin
Hello! On Mon, Sep 25, 2017 at 03:11:36PM -0400, Adam Schwartz wrote: > I’m Adam and I’ve been researching load balancing for my > undergraduate senior project. I’m particularly interested in the > behavior of the “power of two choices” and join-idle-queue > algorithms on Ngin

load balancing algorithms

2017-09-25 Thread Adam Schwartz
Hello, I’m Adam and I’ve been researching load balancing for my undergraduate senior project. I’m particularly interested in the behavior of the “power of two choices” and join-idle-queue algorithms on Nginx. I’ve found that the `ngx_http_upstream_module` specifies a `least_conn` and

AW: DNS Load Balancing keeps getting upstream errors

2017-08-31 Thread Lukas Tribus
Hello, > Also, has anyone tried using nginx for DNS load balancing in production? I would not recommend using nginx to load-balance DNS traffic at all. nginx is just a dumb UDP proxy and I doubt it performs well enough in a DNS setup. dnsdist [1] is written with this purpose in mind and u

DNS Load Balancing keeps getting upstream errors

2017-08-30 Thread mangysushi
926897 Average Latency (s): 0.000794 (min 0.000645, max 0.026699) Latency StdDev (s): 0.000750 >From I can tell, it seems nginx is throttling the nameservers because of perceived failures in getting responses from them. How can I troubleshoot this further? Also, has anyone tried using

Re: NGINX Open Source TCP Load Balancing - service discovery

2016-10-18 Thread Francis Daly
On Mon, Oct 17, 2016 at 02:44:00PM -0700, Matthew Ceroni wrote: Hi there, Untested, but... > https://www.nginx.com/blog/dns-service-discovery-nginx-plus/ > The issue is around where to set the variable. I have tried setting it in > the upstream block but that errors saying set is not valid in t

NGINX Open Source TCP Load Balancing - service discovery

2016-10-17 Thread Matthew Ceroni
https://www.nginx.com/blog/dns-service-discovery-nginx-plus/ Testing out the options provided in the above link. Specifically the "Setting the Domain Name in a Variable". The example given is L7 load balancing. I have a need for L4 using upstream, yet I am not able to get this method t

Re: UDP load balancing - 1 new socket for each incoming packet?

2016-09-01 Thread Roman Arutyunyan
Hello, On Thu, Sep 01, 2016 at 02:58:50PM +0800, Gwenole Gendrot wrote: > Hi, > > > I've been using nginx 1.11.3 to test the UDP load balancing feature, using a > "basic" configuration. > The functionality is working out of the box, but a new socket will b

UDP load balancing - 1 new socket for each incoming packet?

2016-08-31 Thread Gwenole Gendrot
Hi, I've been using nginx 1.11.3 to test the UDP load balancing feature, using a "basic" configuration. The functionality is working out of the box, but a new socket will be created by the proxy for each packet sent from a client (to the same connection). This leads to reso

Re: Load balancing algorithm

2016-08-01 Thread Andrew Hutchings
Hi Dewangga, On 01/08/16 10:36, Dewangga Bachrul Alam wrote: Hello! On 08/01/2016 04:19 PM, Andrew Hutchings wrote: Hi Dewangga, I'm not quite sure what your desired outcome would be by connecting to two servers at the same time for a single client but it won't work the way you might think it

Re: Load balancing algorithm

2016-08-01 Thread Dewangga Bachrul Alam
the same table in multiple > servers being written to at the same time. See this blog post for more > information: > > https://www.nginx.com/blog/advanced-mysql-load-balancing-with-nginx-plus/ > > Kind Regards > Andrew > > On 01/08/16 09:20, Dewangga Bachrul Alam

Re: Load balancing algorithm

2016-08-01 Thread Andrew Hutchings
ation: https://www.nginx.com/blog/advanced-mysql-load-balancing-with-nginx-plus/ Kind Regards Andrew On 01/08/16 09:20, Dewangga Bachrul Alam wrote: Hello! I got curios with load balancing algorithm, I got scenarios like this. I have 3 galera cluster, each cluster have 3 node and it

Load balancing algorithm

2016-08-01 Thread Dewangga Bachrul Alam
Hello! I got curios with load balancing algorithm, I got scenarios like this. I have 3 galera cluster, each cluster have 3 node and it was solved with stream module. Cluster1: Node1-Cluster1: 192.168.11.1 Node2-Cluster1: 192.168.11.2 Node3-Cluster1: 192.168.11.3 Cluster2: Node1-Cluster2

Re: load balancing % available

2016-04-13 Thread Валентин Бартенев
On Wednesday 13 April 2016 12:21:52 B.R. wrote: > As per the docs, I do not see a mean of doing what you wish directly in an > upstream block. > That cut-off might be a feature request you could post on their bug tracker. > > In the meanwhile, you might parse data about servers from an upstream gr

Re: load balancing % available

2016-04-13 Thread B.R.
hat should be available before an error response is returned. > > The scenario I am looking into is one where Nginx can manage load balancing > across servers in a tier and there are multiple tiers. If less than 50% > servers are available in any tier I would like to respond with a HTTP

load balancing % available

2016-04-13 Thread benson9
returned. The scenario I am looking into is one where Nginx can manage load balancing across servers in a tier and there are multiple tiers. If less than 50% servers are available in any tier I would like to respond with a HTTP failure and the hardware load balancer can then route traffic to a stan

Re: TCP Load Balancing with Proxy Protocol

2016-03-07 Thread Aleksandar Lazic
Hi. Am 07-03-2016 15:33, schrieb Pavlo Zhuk: Yes, it is https://www.nginx.com/resources/admin-guide/proxy-protocol/ Please pay attention that only V1 is supported! http://hg.nginx.org/nginx/file/tip/src/core/ngx_proxy_protocol.c http://cbonte.github.io/haproxy-dconv/configuration-1.5.html#se

Re: TCP Load Balancing with Proxy Protocol

2016-03-07 Thread Pavlo Zhuk
Yes, it is https://www.nginx.com/resources/admin-guide/proxy-protocol/ On Mon, Mar 7, 2016 at 4:10 PM, Chino Aureus wrote: > > Hi, > > Newbie here. Would like to ask if NGINX supports Proxy Protocol. This to > expose client IP addresses to the backend nodes. > > > Regards, > Chino > >

TCP Load Balancing with Proxy Protocol

2016-03-07 Thread Chino Aureus
Hi, Newbie here. Would like to ask if NGINX supports Proxy Protocol. This to expose client IP addresses to the backend nodes. Regards, Chino ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Load balancing based on hash of the domain

2015-12-15 Thread Bram
Wow, was struggling with that for a week already. Can’t believe that was it. Thank you Valentin and Francis! > Op 15-dec.-2015, om 12:26 heeft Valentin V. Bartenev het > volgende geschreven: > > On Tuesday 15 December 2015 11:56:43 Bram wrote: >> Problem is that it will not accept anything be

Re: Load balancing based on hash of the domain

2015-12-15 Thread Valentin V. Bartenev
On Tuesday 15 December 2015 11:56:43 Bram wrote: > Problem is that it will not accept anything besides $remote_addr and > $request_uri. > For example: > > upstream loadbalancer { > hash $server_name consistent: There's a typo: you've used a colon at the end of the directive. wbr,

Re: Load balancing based on hash of the domain

2015-12-15 Thread Francis Daly
On Tue, Dec 15, 2015 at 11:56:43AM +0100, Bram wrote: Hi there, > Problem is that it will not accept anything besides $remote_addr and > $request_uri. > For example: > > upstream loadbalancer { > hash $server_name consistent: Use ; not : > #hash $request_uri consistent; >

Re: Load balancing based on hash of the domain

2015-12-15 Thread Bram
number of arguments in "hash" directive in /etc/nginx/nginx-loadbalancing.conf:6 > Op 15-dec.-2015, om 10:58 heeft Valentin V. Bartenev het > volgende geschreven: > > On Tuesday 15 December 2015 10:13:35 Bram Verdonck wrote: >> Hi all, >> >> >&

Re: Load balancing based on hash of the domain

2015-12-15 Thread Valentin V. Bartenev
On Tuesday 15 December 2015 10:13:35 Bram Verdonck wrote: > Hi all, > > > I wish to use load balancing in front of a shared webhosting cluster with > multiple domains. > To make optimal use of resources, it would make sense to do load balancing > based on domain instead

Load balancing based on hash of the domain

2015-12-15 Thread Bram Verdonck
Hi all, I wish to use load balancing in front of a shared webhosting cluster with multiple domains. To make optimal use of resources, it would make sense to do load balancing based on domain instead of random or based on IP. I noticed that there is a hash parameter but I’m unable to use

Re: Nginx as a reverse caching / load balancing solution - verification of setup needed.

2015-09-04 Thread B.R.
ark : > >> Good day Guys. >> >> I would like to ask if someone could please verify my configs : >> http://pastebin.com/8Xk63RYD >> http://pastebin.com/EfNSpvMV >> >> I have a Nginx server sitting in front of two Apache servers. >> I'm using Nginx a

Re: Nginx as a reverse caching / load balancing solution - verification of setup needed.

2015-09-04 Thread Brent Clark
http://pastebin.com/8Xk63RYD > http://pastebin.com/EfNSpvMV > > I have a Nginx server sitting in front of two Apache servers. > I'm using Nginx as a reverse caching / load balancing solution. > But what I'm trying achieve is to cache only for imag

Re: Nginx as a reverse caching / load balancing solution - verification of setup needed.

2015-09-04 Thread Sebastian Krebs
ng Nginx as a reverse caching / load balancing solution. > But what I'm trying achieve is to cache only for images, css and Js. > > All in all it appears it all works. > > The other question I would like to ask is, does the order of location > matter? > Depends. For regu

Nginx as a reverse caching / load balancing solution - verification of setup needed.

2015-09-04 Thread Brent Clark
Good day Guys. I would like to ask if someone could please verify my configs : http://pastebin.com/8Xk63RYD http://pastebin.com/EfNSpvMV I have a Nginx server sitting in front of two Apache servers. I'm using Nginx as a reverse caching / load balancing solution. But what I'm trying ach

Re: nginx load balancing

2015-08-14 Thread Aleksandar Lazic
Hi. Am 14-08-2015 07:55, schrieb Chino Aureus: Hi, I'm new to nginx. Need help understanding the http/s load balancing capability of nginx open source versus nginx plus. Appreciate any info regarding this query :) You can find a comparison between the version in the feature matrix.

  1   2   >