Tuesday, May 10, 2016

Network Load Balancing in Windows 2012

Source: http://subhashsingh.com/2013/12/step-by-step-network-load-balancing-in-windows-server-2012/

Step-by-Step Network Load Balancing in Windows Server 2012


Network Load Balancing is implemented in a special driver installed on each Windows host in a cluster. The cluster presents a single IP address to clients. When client requests arrive, they go to all hosts in the cluster, and an algorithm implemented in the driver maps each request to a particular host. The other hosts in the cluster drop the request. We can set load partitioning to distribute specified percentages of client connections to particular hosts. We also have the option of routing all requests from a particular client to the host that handled that client’s first request. Hosts in the cluster exchange heartbeat messages so they can maintain consistent information about what hosts are members of the cluster. If a host fails, client requests are rebalanced across the remaining hosts, with each remaining host handling a percentage of requests proportional to the percentage we specified in the initial configuration. Network Load Balancing relies on the fact that incoming packets are directed to all cluster hosts and passed to the Network Load Balancing driver for filtering. We can configure a Network Load Balancing cluster in (multicast or unicast) given mode is recommended which is Multicast
Network Load Balancing
For best practices your systems should be  in domain, Steps for adding you systems in domain is given here.
Adding Systems in domain
  • In the bottom right hand corner click on network icon and open network and sharing center
Dashboard
  • Right click on Ethernet and select properties
Network setting
  • Highlight Internet Protocol Version(TCP/IPv4) and click properties
Screenshot (18)
  • Change the preferred DNS IP with your e.g. 192.168.1.112 click ok
Screenshot (20)
  • Click on WORKGROUP
Screenshot (21)
  • Click on change to add you system from workgroup to domain
Screenshot (22)
  • Select domain and enter the domain name
Screenshot (23)
  • Example we have entered trendz.com click OK
Screenshot (24)
  • Enter the admin username and password of domain controller to add system in domain
Screenshot (25)
  • Success will prompt with welcome message in pop-up
Screenshot (26)
  • to apply proper settings it will ask for restart your system
Screenshot (27)

Network Load Balancing
Screenshot (35)
  • Select Add roles and Features select next
Screenshot (36)
  • Select role based or feature-based installation click next
Screenshot (37)
  • Select server from server pool and click next
Screenshot (38)
  • Select Add IIS role and NLB feature from the list click next
Screenshot (39)

Screenshot (41)

Screenshot (42)
  • Select the service for IIS role which you want to install
Screenshot (43)
  • Summery list of roles and features which is going to install.
Screenshot (44)

Screenshot (45)
  • Check the IIS is running properly
Screenshot (46)
  • Find the NLB in administrative tool or control panel if the icon is not on the dashboard and open
Screenshot (47)
  • NLB Manager will open as shown below
Screenshot (48)
  • Right click on the NBL select new cluster
Screenshot (49)
  • Add the host IP
Screenshot (50)
  • Set Host Priority
Screenshot (51)
  • Select to add the Cluster IP Addresses
Screenshot (52)

Screenshot (53)
  • Setting Cluster IP and Subnet mask
Screenshot (54)

Screenshot (55)
  • Set Full internet name of NLB cluster and set it to multicast mode
Screenshot (56)

Screenshot (57)
  • Host Added successfully in the cluster
Screenshot (58)
  • Do the same process to install NLB feature for another Host (like 192.168.1.12 )and  Add host in same cluster according to the steps given below.
Screenshot (47)
  • Connect to existing cluster
Screenshot (48)

Screenshot (49)
  • Add new host in existing cluster
Screenshot (50)

Screenshot (51)

Screenshot (52)
  • Set host priority
Screenshot (53)

Screenshot (54)
  • Added both host in same NLB cluster and green color is showing good health of cluster
Screenshot (55)
Test your NLB
  • Login to domain Controller
Screenshot (1)
  • Add A record in your domain for newly added cluster IP
Screenshot (2)
Screenshot (3)
  • here we are adding “demo” (FQDN: demo.trendz.com) for 192.168.1.13
Screenshot (4)
Screenshot (5)
  • Check Host 1 Web server is functioning
Screenshot (6)
  • Check Host 2 Web server is functioning
Screenshot (7)
  • Check NLB Cluster  IP is functioning as a Web server
Screenshot (8)
  • Check FQDN is resolving NLB cluster Web server IP
Screenshot (9)

No comments:

Post a Comment