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

x
?
Solved

Can you do Content-Based load balancing with NLB ?

Posted on 2004-10-25
4
Medium Priority
?
307 Views
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 ?

Thanks,

John
0
Comment
Question by:trzesniakj
[X]
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
4 Comments
 
LVL 85

Expert Comment

by:oBdA
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.
0
 

Author Comment

by:trzesniakj
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 ?

Thanks,

John
0
 
LVL 85

Accepted Solution

by:
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
http://www.microsoft.com/windowsserversystem/virtualserver/default.mspx

Microsoft Virtual PC 2004
http://www.microsoft.com/windows/virtualpc/default.mspx
0
 

Author Comment

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

John
0

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