[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now


Can you do Content-Based load balancing with NLB ?

Posted on 2004-10-25
Medium Priority
Last Modified: 2010-04-19
Hi there,

Looking for some guidance with NLB.  I've never used it before but I have used other load balancers like Netegrity's Central Dispatch.  

We will have a 2-node Win 2003 cluster using IIS for the websites.  We will have video files that need to be served off of only 1 of the machines for various reasons.

With Netegrity's Central Dispatch, you can set up load balancing rules that state "If the file being requested is of this type, send the request to this machine."  I believe they call it "Content-Based" load balancing.

Can NLB be made to do this same type of routing ?  If so, how ?


Question by:trzesniakj
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
LVL 85

Expert Comment

ID: 12411634
No, that can't be done with NLB; NLB provides, as the name says, network load balancing, not some sort of "content load balancing" or content scanning. It simply directs network packets to one of the cluster members, but it doesn't answer any web requests.
But nothing keeps you from referencing a dedicated machine for the file download, or from adding a port rule to handle traffic on a specific port on a dedicated machine.

Author Comment

ID: 12413500
OK.  Great info.  Thanks !

I'm going to talk more to our network guys about this.  But can you give me an example of how you would set up a port rule or how, in a cluster, you could reference a specific machine in the link for the file ?


LVL 85

Accepted Solution

oBdA earned 2000 total points
ID: 12415054
One possibility, if these are just regular downloads, is to simply change your website and adjust the download's target address to the dedicated server's absolute address (assuming you're usually using relative links).
In case you want to have the option to have failover to the other machine in case your "video server" goes down, but usually have only one machine handle the video traffic, you can use a port rule.
Add another web for your video stuff on both machines, let's call it VideoWeb; let it listen on a different port than 80, for example 81.
In NLB Manager, right-click your NLB cluster, choose "cluster properties", go to the "port rules" tab. If you've created the NLB cluster with the NLB Administrator, it will already have created a default rule for the NLB cluster for the ports from 0 to 65535 and all cluster IP addresses, to distribute the load evenly. Edit that rule, so that it now handles the ports 0 to 80, and add two more like the one: one for ports 82 to 65535, one for port 81.
Now right-click the cluster member that should handle the video traffic by default, choose "host properties", go to the "port rules" tab. Edit the "82" rule, and set the load weight to 100. Do the same for the other host, but set the load weight to 1.
This should now keep the VideoWeb traffic on the video host by default, the other host should only take over if the video server goes down. If you don't want the other host handling this traffic at all, set the load weight to 0. During a catastrophe, you'd still be able to readjust this quickly.
Instead of using another port, you could as well add another IP address to the cluster addresses, and assign the rule to the IP address. In this case, you'll have to change (and maybe multiply) the default rule, so that it will apply to the normal cluster address (and other cluster IP addresses you might have added).
If you want to test this, but don't have the hardware for this, you can create a test environment using Virtual Server (you should get NLB to work with Virtual PC as well, but I haven't tried that yet). A machine with 1GB of RAM and W2k3 should easily handle your two test servers.

Microsoft Virtual Server 2005

Microsoft Virtual PC 2004

Author Comment

ID: 12426769
Wow !  Couldn't ask for a better explanation.  Thanks for all the help !


Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

So you have two Windows Servers and you have a directory/folder/files on one that you'd like to mirror to the other?  You don't really want to deal with DFS or a 3rd party solution like Doubletake. You can use Robocopy from the Windows Server 200…
The HP utility "HP Lights-Out Online Configuration Utility for Windows Server 2003/2008" could be of great use when it comes to remotely configure a HP servers ILO WITHOUT rebooting the server. We would only need to create and run scripts using thi…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question