473,395 Members | 1,931 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

load balancing with multiprocessor servers

Jon
Ok, so say you have 4 servers, each with 4 processors.
Each processor has its own application domain for your
web application, and therefore has its own cache, right?

If so, is there a load balancer that handles processor
affinity for requests - so that requests are sent to the
same server, same processor, for a given user? If not,
then you are limited to single processor server, right?
Will a load balance handle server affinity so that
requests are sent each time to the same server during a
session?

Can anyone offer any expertise on this? We do not
necessarily need to handle a web farm with multiple
processors and multiple servers, but it would be nice to
understand the technical limits of the caching technology
with ASP.NET.

Thanks,

Jon
Nov 18 '05 #1
4 1151
You should consider the fact that you can use other cross request caching methods like a State Server or SQL Server to contain the session variables

Application variables are indeed bound to the server the were started on

Check out StateServer and SQLServer session state management for more information

Kind Regards
Bjorn
Nov 18 '05 #2
Jon
Ok, so how do I put put my page fragments into session
variables? Enlighten me.

Jon
Nov 18 '05 #3
Ok

Runnig on a web farm rules out the use of Application data caching because the Application object is unique to each Web server. Since each Web server has its own copy of the data cached in memory, data will become out of sync when data on one of the Web servers is updated independently of the others. Since you have no control over which server in a Web farm receives a request, the Web Service consumer might receive different results from two consecutive Web Service calls hitting two different Web servers.

More info here: http://msdn.microsoft.com/msdnmag/is...s/default.aspx
Nov 18 '05 #4
Ok, this was an interesting read, and I appreciate it.

Responses:
1) Is there really no way to send all requests for a
single user session to a single web server?
Look:
http://www.winnetmag.com/SQLServer/A...rticleID/7637/
7637.html. Why would we not want to do this? I know there
would be some performance degradation compared to the
perfect web farm situation where any server can processor
and request. But maybe there are some performance
benefits as far as caching goes? At least it would be
simpler I would think.
2) Again, if 1) is possible, then is there a way to send
all requests for a single user session to a single
server, to a single processor? Do any of the MS servers
support this?
3) In the article you reference, the technique the author
describes is interesting, but how will locking work?
Isn't it possible that between the time that the user
changes the database and the web service calls to other
servers execute, another web request comes in to another
server and uses the wrong data?
4) In the article you reference, when application data
changes on one server handling the web service, requests
are sent to all the other servers in the web farm that
handle the web service. OK. But what if the other web
servers in the web farm have multiple processors. Since
each processor has its own cache, don't we need to send
one message to each web server, per processor (i.e. 3
servers, with 4 processors = 12 messages?)?
5) If 4) is correct, is there a way to send messages to
each processor on a server?

Thanks,

Jon Paugh
Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: yagish | last post by:
Hi Techies, Am really new with the Oracle 9i Forms and am searching for a way to perform Load Balancing in Oracle 9i Forms Application. Its not a J2EE application, so cannot go the OC4J way. I...
2
by: Christopher D. Wiederspan | last post by:
I'm wondering if anybody could give me some tips on a good webfarm load-balancing solution for an ASP.NET application. Here's the rundown: we've got 3 identical servers that each have identical...
10
by: GeekBoy | last post by:
Okay, I have two identical web servers running Windows 2003 web server. I have an ASP.NET application which runs great on one of them. Dedicated IP address, behind our firewall, etc. Everyone's...
0
by: HK | last post by:
I'm wanting to get rid of a hardware load balancer and just use the Windows 2003 software load balancing with 2003 Server Web Edition. I'm wondering if anyone here uploads ASP.NET code to 2 or...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.