Bobcares

Linode NodeBalancer – Everything that you need to know!

by | Jan 30, 2019

Looking for a website that is free of service hiccups?

Then, the best solution is to make your server highly available. Luckily, Linode comes with NodeBalancer service.

These NodeBalancers help to distribute website traffic to many servers and avoid downtime. But, it involves configuration that depends on the type of your website.

At Bobcares, we help Linode customers to setup NodeBalancers as part of our Managed Cloud Services.

Today, we’ll discuss the top merits of NodeBalancers along with the common usability issues.

 

 

Why to use Linode NodeBalancers?

Before proceeding further, we’ll first take a look on why we need Linode NodeBalancers.

Imagine that you own a website having considerable hits. And, in near future you are planning on a marketing campaign or simply a knock-out sale on the website. That means, your website will have more visitors and Linode server need to handle more web port traffic.

If there are no proper mechanisms to handle this additional traffic, the web server will collapse. That’s where NodeBalancers help.

NodeBalancer will sit in front of your web servers and distribute traffic between all of your web servers. In this method, visitors will be hitting the NodeBalancer first. And, users would not even know the system that runs in the back-end.

 

Merits of NodeBalancers

From our experience in managing Linode servers, our Dedicated Engineers see the major benefits of Linode NodeBalancers as :

 

1. Communication via private IP address

Although the NodeBalancer listens on a public IP address, all the communication with the Linode servers happens using private IP address. In Linode, private IP traffic is free of cost. Thus, it helps to save money in bandwidth.

 

2. Adds to security

Similarly, having a NodeBalancer adds to server security. Here, the web servers do not have to be directly exposed to the Internet. They just have to communicate to the NodeBalancers. Thus, attackers cannot directly target your web applications and initiate harm for the websites.

 

3. Scale up/down on the go

Again, NodeBalancers allows to add and remove back-end web servers on the go. When your site have more visitors, we can simply add new Linode servers to handle the load.

Or, if there is a need to scale down, we can simple remove Linode web servers. Unlike in normal server setup, this will not affect the working of website.

 

Usability problems with NodeBalancers

So far we saw the reasons to use NodeBalancers. But, we often see Linode customers reporting problems after enabling the NodeBalancers. We’ll now take a look at them.

 

1. Hosting SSL websites

A major area of usability issues happens with the SSL websites. Form our expertise in Linode servers, our Support Engineers see that this happens mainly due to bad configuration of NodeBalancer.

Linode NodeBalancers support handling secure traffic in 2 ways. The secure communication can either end at the NodeBalancer or at the final Linode web server.

Often Linode customers report that WordPress websites do not show up correctly with NodeBalancer. Here, our Support Engineers validate the NodeBalancer SSL certificates first. Also, we tweak the WordPress configuration file to use HTTPS when the “HTTP_X_FORWARDED_PROTO” is set.

NodeBalancers can only handle one SSL certificate on them. As a result, for customers hosting multiple SSL certificates on a Nodebalancer, our Cloud Engineers recommend the use of solutions like HAProxy.

 

2. Redundancy for NodeBalancer

Unfortunately, NodeBalancer do not support floating IP address. In an attempt to optimize, some Linode customers may request for backup arrangement for NodeBalancer too.

But, this is not necessary as the NodeBalancer by default has a backup mechanism internally. If for some reason NodeBalancer goes down, it automatically do a switch over to backup system and run the NodeBalancer from the same IP address.

 

3. Getting real client IP

Recently, a Linode customer reported the problem that all his website requests show up as if originated from the NodeBalancer IP address. He actually wanted to track the IP address of the original visitor.

On further checking, our Dedicated Engineers found that in his setup, the SSL connection was terminating at the Linode web server. Here, the connection hits the NodeBalancer first, which then forwards to back-end nodes.  So, that will always show the NodeBalancer IP.

To fix, we had to suggest the customer to use the session variable to grab the visitor details.

Another workaround here is to change the NodeBalancer settings to end the SSL connection at NodeBalancer. As a result, NodeBalancer would add the “x-forwarded-for header” that contains the client IP address.

 

4. No SSH access

Last, but not the least, you do not have SSH access to the NodeBalancer. This can create usability issues if you would like to specifically check the server logs. But, most of the management can be easily done from the Linode Manager itself.

[Trouble in choosing the configuration options in Linode NodeBalancer? We can help you out.]

 

Conclusion

Linode NodeBalancer really helps to avoid single point failure of your apps hosted in Linode. Today, we saw the benefits of NodeBalancer and how our Cloud Engineers solve the usability problems in Linode NodeBalancer.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

SEE SERVER ADMIN PLANS

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF