Knowledgebase

NGINX load balancing and IP

Posted by rocketgiants, 02-02-2017, 02:10 PM
Hello, please forgive me if it's not the right section of the forum for this question. I checked deeply but I couldn't find a better place. Let's that that I have 3 servers: 1 load balancer and 2 web servers. Load balancer has IP xxx.xxx.xxx.111 Web server 1 has IP xxx.xxx.xxx.222 Web server 2 has IP xxx.xxx.xxx.333 If they host domain.com, pinging domain.com I will see the IP of the load balancer or the web server the data are coming from? Thanks Simon

Posted by UNIXy, 02-02-2017, 03:37 PM
The question seems simple enough but then load balancing is a very involved subject. There are many types of LBs. I'll mention two so perhaps it will help answer your question. But let's get some basic definitions explained. There is a: A proxy load balancer: it never "exposes" the backend web servers (at least not their FQDN)A redirect load balancer: it redirects to the backend web servers. So the visitor will actually "connect" to either one of the web server's FQDN. Anyway, if by "pinging domain.com" you meant an actual ICMP ping, you'd get the load balancer's IP in both LB types. That's because ICMP works at a lower level of the OSI model. It doesn't "talk" HTTP. So the LB'ing magic doesn't kick in yet. But if you meant an actual HTTP "visit", then you'd see the LB's IP in the proxy LB and the web server's IP/hostname in the redirect LB.

Posted by rocketgiants, 02-02-2017, 04:09 PM
Hello, first of all thank you for your reply. Actually I'm going to use NGINX for the load balancing. It works as proxy load balancer so I support that the answer is that web server IPs won't be showed. Thanks Simon

Posted by UNIXy, 02-02-2017, 04:23 PM
Hi Simon Correct, none will show.

Posted by rginfo, 02-02-2017, 05:06 PM
Yeah, ICMP ping will not show your actual web servers. You will want to consider fire walling access to those web servers such that only NGINX can reach it and only on specific ports. For maintenance purposes of the web servers themselves, figure out a separate secure private link.

Posted by WebHizmetleriniz, 02-02-2017, 09:13 PM
Hello ; Load balancer Try to install DNS on your servers.Each ping will be your solution.If nginx is well structured it will lighten your load.



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read
LayeredTech down? (Views: 657)
Parcom.net down (Views: 615)
Melitaweb (Views: 620)


Language:

Client Login

Email

Password

Remember Me

Search