Home
Web Servers - Do you know how to Setup NLB on Windows Server 2016? (aka Network Load Balancing)
  v6.0 Posted at 21/11/2017 11:22 AM by Tiago Araujo

Downtime occurs when you have a single server setup.

TODO: This is 2008 R2 – update to 2016
Note: 2008 R2 was not as reliable as later versions. So it would be better to use failover cluster in Server 2012 R2 or 2016 for a more reliable infrastructure configuration. 

​​Use NLB to allow load balancing and failover. On each of your Windows Servers, you will host your website.

You need to follow these steps to get it up and running:

  1. On all nodes of the NBL cluster, the Network Load Balancing Feature needs to be installed.
    Setup NLB Figure: Install the NLB Feature
  2. Open the Network Load Balancing Manager from Administrative Tools
    Setup NLB Figure: Under the Cluster menu item, click New
  3. Enter the first node in the cluster in ‘Host’ and press ‘Connect’
    Setup NLB Figure: Select the interface for the node
  4. Enter a Priority as 1 (this is just a host identifier)
    Setup NLB Figure: In 'Priority' enter '1'
  5. Setup NLB Figure: Enter a virtual IP address for the cluster. eg. 192.168.1.12
  6. Choose the IP address of your cluster from the dropdown list Set a Full Internet Name eg. spcluster.sydney.ssw.com.au.
    Ensure the Multicast Cluster operation mode is selected.
    Setup NLB Figure: Set the 3 cluster parameters
  7. You want sticky sessions so you don’t mistakenly bounce between servers (and lose your state)
    Setup NLB Figure: Leave the Port Rule as default. This will provide sticky sessions
    Setup NLB Figure: Success. The cluster configuration will show a green icon
  8. Right click the name of the cluster eg. spcluster.sydney.ssw.com.au Click Add Host To Cluster
    Setup NLB Figure: Add the 2nd web server
  9. Enter the host name of the next node eg. SYDVMAPS2010P02
    Click connect
    Setup NLB Figure: Enter the 2nd web servers name
  10. Take the default settings, assuring the ‘Priority (unique host identifier)’ is different than the first node:
    Setup NLB Figure: Set the priority as #2
  11. Take defaults on Port Rules page and click Finish
  12. Success. The status of the cluster will now be Converged
    Setup NLB Figure: Success with 2 green icons
  13. Open a command prompt and type in wlbs query to verify the cluster:
    Setup NLB Figure: Type in wlbs query to verify the cluster
  14. Ping both nodes and the virtual IP address externally to verify they are all working

Related rules

    Do you feel this rule needs an update?

    If you want to be notified when this rule is updated, please enter your email address:

    Comments: