On Windows Server, load balancing is very easy thanks to a native feature called Network Load Balancing (NLB).
With NLB, you can also perform fault tolerance as NLB will automatically detect the unavailability of a cluster member host.
For this tutorial, we will use 2 servers with fixed IPs, because DHCP is not supported by NLB and is automatically disabled when creating the cluster.
For access from client PCs, we will test with a Windows 8 PC.
Note that in production, the configuration of server members of a cluster must be strictly identical for the user experience is optimal and to prevent strange problems occur.
Important : NLB only supports TCP/IP. So, IPX (for example) is not supported.
To show you how to create your 1st NLB cluster, we will create a web server cluster.
Nevertheless, note that putting clustered web servers requires is much more complicated, because you will have to duplicate and synchronize your database servers, your file servers, ... so that the distribution of the network load is optimal.
In our case, we will consider that the website has simply been copied/pasted from one server to another and that it's a static website.
To get started, start the Add Roles and Features wizard.
Install the "Web Server (IIS)" role on your 2 servers.
Once installed, you will find the default web site files in this folder : C:\inetpub\wwwroot
Create a "test.html" file in this folder.
And specify "server 1" for the file created on server 1, and "server 2" for the other server.
This will let you know on which server you have arrived.
Note : of course, in production, this will never be the case.
In order for your web servers to be accessible from your local network, the network mode used by Windows Server must be: private or domain.
To find out, open the "Network and Sharing" center.
If this is not the case, open the file explorer and go to "Network".
Next, click the "Network discovery and file sharing are turned off" message, and then click "Turn on network discovery ...".
Click on "No, make the network that I am connected to a private network".
Now, Windows Server will use the private network mode.
Before you create the cluster, make sure that you are able to remotely access your web servers.
® InformatiWeb-Pro.net - InformatiWeb.net 2008-2022 - © Lionel Eppe - All rights reserved.
Total or partial reproduction of this site is prohibited and constitutes an infringement punishable by articles L.335-2 and following of the intellectual property Code.