Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Session State lost when NLB host crashes

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Next:  Tilde in filename causes 500 error when access fr..  
Author Message
anonymous131

External


Since: Oct 17, 2003
Posts: 720



(Msg. 1) Posted: Thu Nov 20, 2003 5:09 pm
Post subject: Session State lost when NLB host crashes
Archived from groups: microsoft>public>inetserver>iis (more info?)

What happens in the following scenario:
1) I have two Win2003 servers configured with NLB
2) They are both running an ASP.NET application
3) Affinity is set to single
4) The application is using Session vars and Cache vars
5) Server A crashes

A) Users who were tied to Server A are redirected to
Server B AND Server B has all the same Session and Cache
information available to the users.
B) Users who were tied to Server A are redirected to
Server B BUT Server B does not have any of the Session or
Cache information.
C) Users who were tied to Server A get a nasty message
and need to start over.

NOTE: I'm hoping for A...expecting B...and would wonder
about the usefulness of NLB if it was C.

TIA, Doug

 >> Stay informed about: Session State lost when NLB host crashes 
Back to top
Login to vote
atanuchatterje

External


Since: Nov 21, 2003
Posts: 1



(Msg. 2) Posted: Fri Nov 21, 2003 4:32 am
Post subject: Session State lost when NLB host crashes [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I think LB is implemented in ur DNS server and is done by
ISP, u can ask him if he can maintain LB keeping the
session state, What i mean is , a client request suppose
goes to server A for the 1st time , any subsequent request
the client makes , the DNS wud recognize it, and wud send
to server A only.I know this is possible, but depends on
ur ISP, whether or not he has the proper setup to do that.
If ur ISP cant do it, then u probably need to get rid of
session variables in the IIS servers, u can think of
keeping the session variables in the database. But i can
understand after developing the full application, its
going to be a huge job.

Regards
Atanu

 >> Stay informed about: Session State lost when NLB host crashes 
Back to top
Login to vote
newsgroups4

External


Since: Sep 10, 2003
Posts: 31



(Msg. 3) Posted: Fri Nov 21, 2003 4:36 pm
Post subject: Session State lost when NLB host crashes [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Doug,

The only way to keep your session information in the
event of a server crash would be to set up a third server
to manage that info for both web servers. Since you are
using .Net, you can use either a State Server or SQL
Server to accomplish this task. See the following link
for more info:

<a style='text-decoration: underline;' href="http://www.microsoft.com/technet/treeview/default.asp?" target="_blank">http://www.microsoft.com/technet/treeview/default.asp?</a>
url=/technet/prodtechnol/windowsserver2003/proddocs/deploy
guide/iisdg_net_tezu.asp

Sincerely,
Invotion Engineering Team
Advanced Microsoft Hosting Solutions
<a style='text-decoration: underline;' href="http://www.Invotion.com" target="_blank">http://www.Invotion.com</a>
 >-----Original Message-----
 >What happens in the following scenario:
 >1) I have two Win2003 servers configured with NLB
 >2) They are both running an ASP.NET application
 >3) Affinity is set to single
 >4) The application is using Session vars and Cache vars
 >5) Server A crashes
 >
 >A) Users who were tied to Server A are redirected to
 >Server B AND Server B has all the same Session and Cache
 >information available to the users.
 >B) Users who were tied to Server A are redirected to
 >Server B BUT Server B does not have any of the Session
or
 >Cache information.
 >C) Users who were tied to Server A get a nasty message
 >and need to start over.
 >
 >NOTE: I'm hoping for A...expecting B...and would wonder
 >about the usefulness of NLB if it was C.
 >
 >TIA, Doug
 >.
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Session State lost when NLB host crashes 
Back to top
Login to vote
kenremove

External


Since: Aug 23, 2003
Posts: 3041



(Msg. 4) Posted: Fri Nov 21, 2003 9:37 pm
Post subject: Re: Session State lost when NLB host crashes [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You can store the ASP.Net session state externally (eg in ASP.Net Session
State server). Then, when the user is redirected to server B, option A will
be what happens.

Otherwise, option B will probably happen, and option C may happen if you
have code that relies on certain session information being present and
doesn't check to make sure that it's there.

Cheers
Ken

"Doug" <anonymous.RemoveThis@discussions.microsoft.com> wrote in message
news:038d01c3afb2$eb2e5eb0$a401280a@phx.gbl...
: What happens in the following scenario:
: 1) I have two Win2003 servers configured with NLB
: 2) They are both running an ASP.NET application
: 3) Affinity is set to single
: 4) The application is using Session vars and Cache vars
: 5) Server A crashes
:
: A) Users who were tied to Server A are redirected to
: Server B AND Server B has all the same Session and Cache
: information available to the users.
: B) Users who were tied to Server A are redirected to
: Server B BUT Server B does not have any of the Session or
: Cache information.
: C) Users who were tied to Server A get a nasty message
: and need to start over.
:
: NOTE: I'm hoping for A...expecting B...and would wonder
: about the usefulness of NLB if it was C.
:
: TIA, Doug
 >> Stay informed about: Session State lost when NLB host crashes 
Back to top
Login to vote
user645

External


Since: Aug 23, 2003
Posts: 180



(Msg. 5) Posted: Sat Nov 22, 2003 12:20 am
Post subject: Re: Session State lost when NLB host crashes [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Atanu Chatterjee" <atanuchatterjeecal DeleteThis @hotmail.com> wrote in message
news:2fc701c3b012$64c86360$a601280a@phx.gbl...
 > I think LB is implemented in ur DNS server and is done by
 > ISP, u can ask him if he can maintain LB keeping the
 > session state, What i mean is , a client request suppose
This is not possible.
What you mean is HTTP TCP/IP stickyness. But this does not keep the
application asp.net session

 > goes to server A for the 1st time , any subsequent request<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Session State lost when NLB host crashes 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]