PC Review


Reply
Thread Tools Rate Thread

cache and webfarm

 
 
Fabio R.
Guest
Posts: n/a
 
      24th Oct 2005
I'm developing a web application that needs to support a webfarm scenario so
I've used a filecachedependency on a shared folder (for now, always in my
local machine) to clear cache on all application processes / server when I
update some data...
On some articles (like
http://msdn.microsoft.com/msdnmag/is...2/12/WebFarms/) someone suggests
to use a webservice call on every server in the farm, this webservice simply
invalidate or update the cache.
My doubts are:
- is the filedependency on a shared folder (also used for filesession) a so
bad idea, can I have any problems using it?
- can the webservice method be more efficient?
- what happens if the servers with webservice are dual CPU (with 2 asp.net
process running)? Can be the cache invalidate on both with that method?
Thanks to anyone can give me an explanation, I'm not so expert in webfarm
scenario...
Fabio R.


 
Reply With Quote
 
 
 
 
Bruce Barker
Guest
Posts: n/a
 
      24th Oct 2005
couple issues:

1) access to shared folder - all the asp.net accounts must be a domain
account with access to the share. use app pools on 2003 for this.

2) file monitoring on a network share uses non-paged pool, and you can run
out. see:

http://support.microsoft.com/default...b;en-us;221790


-- bruce (sqlwork.com)



"Fabio R." <fabio71 _ at _ yahoo.it> wrote in message
news:(E-Mail Removed)...
> I'm developing a web application that needs to support a webfarm scenario
> so I've used a filecachedependency on a shared folder (for now, always in
> my local machine) to clear cache on all application processes / server
> when I update some data...
> On some articles (like
> http://msdn.microsoft.com/msdnmag/is...2/12/WebFarms/) someone suggests
> to use a webservice call on every server in the farm, this webservice
> simply invalidate or update the cache.
> My doubts are:
> - is the filedependency on a shared folder (also used for filesession) a
> so bad idea, can I have any problems using it?
> - can the webservice method be more efficient?
> - what happens if the servers with webservice are dual CPU (with 2 asp.net
> process running)? Can be the cache invalidate on both with that method?
> Thanks to anyone can give me an explanation, I'm not so expert in webfarm
> scenario...
> Fabio R.
>



 
Reply With Quote
 
 
 
 
Fabio R.
Guest
Posts: n/a
 
      25th Oct 2005
About the second point:
tha app can get into trouble if more than 125 users try to read/write on the
UNC share at the same time or if IIS needs to monitor (to notify changes)
more than 125 files?
Thanks for your reply,
Fabio

"Bruce Barker" <brubar_nospamplease_@safeco.com> ha scritto nel messaggio
news:(E-Mail Removed)...
> couple issues:
>
> 1) access to shared folder - all the asp.net accounts must be a domain
> account with access to the share. use app pools on 2003 for this.
>
> 2) file monitoring on a network share uses non-paged pool, and you can run
> out. see:
>
> http://support.microsoft.com/default...b;en-us;221790
>
>
> -- bruce (sqlwork.com)
>
>
>
> "Fabio R." <fabio71 _ at _ yahoo.it> wrote in message
> news:(E-Mail Removed)...
>> I'm developing a web application that needs to support a webfarm scenario
>> so I've used a filecachedependency on a shared folder (for now, always in
>> my local machine) to clear cache on all application processes / server
>> when I update some data...
>> On some articles (like
>> http://msdn.microsoft.com/msdnmag/is...2/12/WebFarms/) someone
>> suggests to use a webservice call on every server in the farm, this
>> webservice simply invalidate or update the cache.
>> My doubts are:
>> - is the filedependency on a shared folder (also used for filesession) a
>> so bad idea, can I have any problems using it?
>> - can the webservice method be more efficient?
>> - what happens if the servers with webservice are dual CPU (with 2
>> asp.net process running)? Can be the cache invalidate on both with that
>> method?
>> Thanks to anyone can give me an explanation, I'm not so expert in webfarm
>> scenario...
>> Fabio R.
>>

>
>



 
Reply With Quote
 
Robbe Morris [C# MVP]
Guest
Posts: n/a
 
      25th Oct 2005
Look into ScaleOut StateServer as a way to manage this.
Not only does it handle web farm session management
quite well, it also provides a web farm cache management
api.

Read more and download an ASP.NET code sample:

http://www.eggheadcafe.com/articles/scaleout_server.asp

--
Robbe Morris - 2004/2005 Microsoft MVP C#
http://www.masterado.net





"Fabio R." <fabio71 _ at _ yahoo.it> wrote in message
news:(E-Mail Removed)...
> About the second point:
> tha app can get into trouble if more than 125 users try to read/write on
> the UNC share at the same time or if IIS needs to monitor (to notify
> changes) more than 125 files?
> Thanks for your reply,
> Fabio
>
> "Bruce Barker" <brubar_nospamplease_@safeco.com> ha scritto nel messaggio
> news:(E-Mail Removed)...
>> couple issues:
>>
>> 1) access to shared folder - all the asp.net accounts must be a domain
>> account with access to the share. use app pools on 2003 for this.
>>
>> 2) file monitoring on a network share uses non-paged pool, and you can
>> run out. see:
>>
>> http://support.microsoft.com/default...b;en-us;221790
>>
>>
>> -- bruce (sqlwork.com)
>>
>>
>>
>> "Fabio R." <fabio71 _ at _ yahoo.it> wrote in message
>> news:(E-Mail Removed)...
>>> I'm developing a web application that needs to support a webfarm
>>> scenario so I've used a filecachedependency on a shared folder (for now,
>>> always in my local machine) to clear cache on all application processes
>>> / server when I update some data...
>>> On some articles (like
>>> http://msdn.microsoft.com/msdnmag/is...2/12/WebFarms/) someone
>>> suggests to use a webservice call on every server in the farm, this
>>> webservice simply invalidate or update the cache.
>>> My doubts are:
>>> - is the filedependency on a shared folder (also used for filesession) a
>>> so bad idea, can I have any problems using it?
>>> - can the webservice method be more efficient?
>>> - what happens if the servers with webservice are dual CPU (with 2
>>> asp.net process running)? Can be the cache invalidate on both with that
>>> method?
>>> Thanks to anyone can give me an explanation, I'm not so expert in
>>> webfarm scenario...
>>> Fabio R.
>>>

>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
asp.net and webfarm, web garden? Billy Zhang Microsoft ASP .NET 10 14th Sep 2008 06:01 PM
Webfarm and msi installation setup ind_123 Microsoft ASP .NET 0 14th Dec 2007 04:37 PM
cache application block expiration on a webfarm Felix Planjer Microsoft ASP .NET 1 6th Dec 2004 06:16 PM
Webfarm and Webgarden Jenny Microsoft ASP .NET 1 29th Jul 2003 04:13 AM
Re: View State is invalid Error on webfarm! Marina Microsoft ASP .NET 0 17th Jul 2003 06:12 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:05 PM.