📜 ⬆️ ⬇️

Citrix NetScaler. Load Balancing: To help the novice administrator

Friends, I am glad to welcome you again in a series of articles on Citrix solutions. But today I will not describe that, according to the results of an independent study of the “Gartner Magic Square” (Gartner Magic Quadrant) in the context of Application Delivery Controllers, the product described below is in the top three. I want to show that they can and should be used in the context of “everyday opportunities”. In my experience, administrators of medium and large companies are starting to deal with Citrix NetScaler. And, as practice and experience shows, in the context of interaction with Citrix XenDesktop / XenApp. And this says one thing: there is a tool that, even in a free implementation, can implement the functionality needed by many customers to operate the infrastructure of web servers and other components, and therefore can facilitate the work of many of my colleagues.


Namely, I wanted to dwell on some functionality that will definitely come in handy? Namely - Load Balancing. It seemed that the thing was clear to everyone, necessary, but we often approach it through our fingers.

Someone will say why for small companies to use Citrix NetScaler, because there are solutions based on DNS - DNS Round Robin. For load balancing, this is not a good choice. Pulling aside, I would say - this is “evil” and the complete opposite of “Best Practices”. And taking into account Windows LBS with a large number of more worthy alternatives is “not sporting”.
')
And now I will show why this is exactly the case:

Disposition:

We have “mirror” 3 WEB servers, NetScaler VPX, AD DNS. I suppose the setting of NS I omit, because NetScaler setup is repeatedly described.


image

Let's check the work of WEB servers

1st:

image

2nd:

image

3rd:

image

Everything is ready for demonstration.

So, we establish test criteria for identifying the weak and strong revenge of both solutions.
In the disposition, we have 3 mirrored Web servers b configured MS DNS sevrer with configured Round robin with 3 records of tested DNS servers created.

image

Configured by Citrix NetScaler with Load Balancing functionality.

First of all, let's refresh in memory how DNS Round robin works. Well, here I will not go deep into the theory, I suppose the name itself speaks for itself. Let's “I will explain to you only on the“ fingers ”: when the Round robin function is on, the DNS server gives a new response each time for a request from clients. Below is a pictorial picture in which each new request receives a new response.

image

Everything seemed clear. But let's think that if one of the servers is unavailable and / or loaded. Let's complicate testing and turn off one of the servers:

image

Here it is, the first request will fall on the server is turned off. It’s impossible to talk about this approach with fault-tolerant service, you can’t argue.

What to do in a similar or similar situation? Accessibility for mirrored Web servers is a special case, there can be a variety of services and services as a balancer.
Why, as one of the solutions, I strongly recommend to look towards Citrix's NetScaler solution.

First, the free Citrix NetScaler version - NetScaler VPX Express can solve this problem. And secondly, and subsequent ones - a time-tested solution, simple, convenient, and providing a large third-party additional functionality. In addition, NS work on the most common types of hypervisors — ESX, Hyper-V, Xen, KVM, and in Azure and AWS clouds.

Let's take a look at the general setup of Citrix NetScaler for balancing the availability of a Web service.
There is an LB server with a configured server group.

image

The logical scheme is as follows - the load balancer 192.168.0.7 and 3 servers:

image

It remains to check how the Citrix NetScaler load balancer will behave when 1 or even 2 of the 3 existing servers fail.

In the video, I will alternately disable one or two servers while monitoring availability using the ICMP protocol and availability of the Load Balancing server.

image

Go!



Go!

Description of the operations:

- At the presented video at the beginning we see with you how all 3 pre-configured Web servers work, and the LB server works.
- Checked the availability of 3 servers
- Disconnected 1st server
- LB without loss began to redirect to the 2nd and 3rd servers.
- Disconnected 2nd server
- LB without loss began to redirect to the 3rd server.
- Enabled 1st server
- LB without loss began to redirect to the 1st and 3rd servers.

So let's summarize. I am sure that I will find quite a few options for using the load balancing tool with Citrix NetScaler in most organizations. Therefore, network administrators, system administrators can use it. Use for free, and the tool has a wide range of applications. In addition, if you later encounter a Citrix VDI solution,
So you will be substantially prepared)

Personally, my opinion, you should definitely use a tool that can significantly increase the availability of services and services given its position in the market, and, most importantly, in the required edition it is free.

PS In this section, we do not consider the algorithms and methods of balancing, but only at the macro level, we will discover a new toolkit of work.

In addition, I want to know your opinion. What balancing solutions do you use? I will welcome any comments and observations.

Source: https://habr.com/ru/post/308292/


All Articles