NS3-LB (Load Balancing)

Source: Internet
Author: User
Tags netscaler

With F5, A10, deep conviction and other traditional debt-balanced products, NetScaler is generally done based on the application of load balancing, and for the load balance of the link is relatively less than the actual scenario, their own side of the current use of the company developed Web server to do load balancing.

Doing load balancing is typically deployed in the following steps (three elements):

1) First create server back-end servers (such as the company's OA, ERP);

2) then create a services including (IP, Protocol, port) protocol including (based on the 7-tier and 4-tier protocols and an any). A server can contain multiple services;

3) Finally create Vserver add services,vserver need to set a VIP, corresponding to a protocol and port (SSL and HTTP) SSL offload, SSL accelerator card

4) Custom Monitor;

The basic components of a general load balancing configuration are Service (services) and load Balancing virtual servers (LB VS). The service represents an app on the server. The virtual server abstracts the server by providing a single IP address to which the client is connected. To ensure that client requests are sent to the server, you must bind each service to a virtual server. In other words, you must create services for each server and bind those services to the virtual server. The client connects to the NetScaler using the VIP. When a client request is received on the VIP, NetScaler sends the request to the server determined by the load balancing algorithm. Load Balancing uses a virtual entity called the Monitor to track whether a particular configured service (server plus app) can be used to receive requests . The Load Balancer virtual server receives the request and redirects the request to the appropriate server. The choice of the appropriate server is based on the user's configuration of which load-balancing method (the default is the minimum number of connections, often used, and polling).

In addition to configuring the load balancing algorithm, you can configure session consistency. For example, you can configure a virtual server to remain persistent based on the source IP address. NetScaler then send all requests from any particular client to the same server.

Because there is no environmental test, the memory of their own computer only installed a NETSCALER11 version of the run in Vmware-workstation, the test environment may see a lot of red down when it is purely normal, there is no way to do so, but the configuration method in the project is similar.

Set the scene for the company's OA two servers: in-network transmission is to go HTTP access

OA1 (server): 192.168.1.2/24

OA2 (server): 192.168.1.3/24

vip:192.168.1.4

1) First create two OA server (Note: NetScaler default lb function is turned off, need to open manually, in SYSTEM-SETTING-CBF to turn lb function).

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/82/13/wKiom1dKvKLihdyXAAB7ICYWxZM533.png-wh_500x0-wm_3 -wmp_4-s_2236957637.png "title=" Create Oaserver.png "alt=" Wkiom1dkvklihdyxaab7icywxzm533.png-wh_50 "/>


2) Create two service, because the intranet is going to the HTTP protocol, select the default port 80.

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/82/13/wKiom1dKvPyCEuWnAAA8M2BoGkk881.png-wh_500x0-wm_3 -wmp_4-s_548925392.png "title=" Create Service.png "alt=" Wkiom1dkvpyceuwnaaa8m2bogkk881.png-wh_50 "/>

3) Create a good service after the need to bind the listener to listen to the server's service, by default NetScaler will be bound to a TCP listener, of course, the project according to their own selection of the appropriate listener to listen to the service inside, I choose Ping listener here.

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/82/12/wKioL1dKv_ixawHjAABF5aDs3Lc392.png-wh_500x0-wm_3 -wmp_4-s_3995408635.png "title=" listening. png "alt=" wkiol1dkv_ixawhjaabf5ads3lc392.png-wh_50 "/>


4) Create virtual Servers, where the protocol can choose HTTP or HTTPS, if you choose HTTPS need to bind the certificate (described later), I here by default select HTTP and 80 port. VIP is the IP address used by the user to access the OA server later, NetScaler uses the snip address to communicate with the backend server.

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/82/13/wKiom1dKvYGyYpkUAABsPlU1WGc941.png-wh_500x0-wm_3 -wmp_4-s_2203950526.png "title=" Create Vs.png "alt=" Wkiom1dkvygyypkuaabsplu1wgc941.png-wh_50 "/>

5) Create a vSERVER service or group that you need to bind

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/82/13/wKiom1dKwIWh-pW4AABKaWD6DSI660.png-wh_500x0-wm_3 -wmp_4-s_3692428615.png "title=" Binding Service.png "alt=" Wkiom1dkwiwh-pw4aabkawd6dsi660.png-wh_50 "/>

6) Then choose the method of load balancing, that is, after the customer's request arrives NetScaler, NetScaler chooses which method to jump the request back end the OA server establishes the connection, generally uses the more is the least connection number and the poll.

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/82/13/wKiom1dKwZnRhFDpAAB4I2l0ATY557.png-wh_500x0-wm_3 -wmp_4-s_3715113431.png "title=" method. png "alt=" wkiom1dkwznrhfdpaab4i2l0aty557.png-wh_50 "/>

I choose the minimum number of connections here

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/82/12/wKioL1dKwsKj0fUTAABkujNSrdM274.png-wh_500x0-wm_3 -wmp_4-s_2607607160.png "title=" minimum number of connections. png "alt=" wkiol1dkwskj0futaabkujnsrdm274.png-wh_50 "/>

7) Select session consistency, that is, when you go to request OA, we can maintain the persistence according to the source IP address, this is actually equivalent to generate a corresponding table in NetScaler,NetScaler all requests from any specific client to the same server, This is based on the source address (sources IP) can also be based on Cookinsert, this is equivalent to keep the record on the client, when the request is sent again to NetScaler from the HTTP header is marked.

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/82/14/wKiom1dKw9iwfCQ_AAB6qhq1oXc662.png-wh_500x0-wm_3 -wmp_4-s_227174253.png "title=" session consistency. png "alt=" wkiom1dkw9iwfcq_aab6qhq1oxc662.png-wh_50 "/>

8) URL redirection, this common is HTTPS using HTTP access, test the domain name.

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/82/14/wKiom1dKxXzQHHtJAAA96-NTc4I978.png-wh_500x0-wm_3 -wmp_4-s_3390598283.png "title=" redirect. png "alt=" wkiom1dkxxzqhhtjaaa96-ntc4i978.png-wh_50 "/>

There are, of course, many strategies in this netscaler that apply to a variety of different scenarios.




This article from the "hard 72 laughter to 81 difficult" blog, please be sure to keep this source http://10237709.blog.51cto.com/10227709/1784270

NS3-LB (Load Balancing)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.