Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...DNN 4 FarmingDNN 4 Farming
Previous
 
Next
New Post
6/27/2006 2:21 PM
 
Hello,
I've read the whitepaper on DNN 4 webfarming and everything looks good. I'm a little confused though. Is it implemented yet or is it just in the design/planning phase? Does anyone out there run DNN on more than one webserver?

I'm planning on implementing a DNN site that will run on 2 webservers in the very near future and I just wanted some comments from other people with farm experience. Let me know how your multi-server sites run and if you are happy with them. Thanks,



 
New Post
6/28/2006 5:13 PM
 
bump

Come on, someone out there has to be running this self-professed "Enterprise Software" on more than one web server, right?
 
New Post
6/28/2006 5:25 PM
 

It's implemented and has been for a few versions (since 3.1 in fact). I know of a few installations using multiple IIS servers (in one case 8 IIS servers, and a couple of clustered SQL servers).

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
6/28/2006 10:37 PM
 

I am running DNN 3.2.2 on multiple web servers pointed to single SQL database. I would say that DNN support for web farms is partially implemented and does have some issues.

The docs talk of three areas that need to be sensitive to web farm:

1. Caching. I have no problem with this function.

2. Scheduler. I believe this has serious troubles. I can find no code in scheduler process whatsoever that refers to the webfarm settings. So, the scheduler acutally runs the same regardless of webfarm settings. I am using the "server" settings for scheduler tasks so that specific Scheduler tasks run on a specific machine. That parts works. For example, I configured the module indexer to run on only one machine named "server". However, I am also configured for 2 separate websites in IIS on another machine (for SSL cert and other reasons) that point to same physical code directory.

What happens is that each Scheduler task process is run once for each IIS website. The same problem occurs if IIS webgardens are used (number of worker processes > 1).  I believe what needs to happen is that the entire Scheduler code needs to split the work out by ThreadId.  so, something like:

Look for a task due to be worked on NOW by server=me and thread=blank. If found, update task with threadid = my threadId. Look for task due to be worked on NOW and threadId  = my threadId. If found, then "its my task" do the work. If not found, then another thread snatched the task.

That way, both webgardens and web farms would not end up with multiple parallel worker processes trying to do the same work, which tpyically results in database deadlocks, by the way.

Second problem. The entire schedule should work off UCT date time, not server time. And use the database time. So, have SQL insert or update tasks, history, etc with getdateutc()  , not use .Net Nowuct()    The reason this is a problem is that I have two web servers in different timezones pointed to same database, so one is always an hour behind and never "gets" to its tasks, they are always 1 hr plus away from "due", since the other server always grabs the task.

3. Logging. Similar timezone issues. With web servers in different time zones pointed to a single database, the event log entries (such as errors) get logged with intermixed times.  I solved this by changing the stored procedue to insert a log entry to ignore the passed datetime value.  I insert getdateutc() instead.  That way, all log entries are recorded in "database server" time (there is only one database regardless of how many web servers your have) and they are all in UTC time.  I then had to modify the eventinfo class (I thnk that was the object) to convert UTC to user time for display purposes.

So, it works OK as a webfarm.  It really has troubles as a web garden since it thinks all worker process with same machine name are the same.

 
New Post
6/29/2006 12:05 PM
 
Thanks a lot that's very good information, especially about the scheduler. It sounds like I won't have a problem with the implementation.

If anyone else out there has any experience with DNN4 specifically I'd still like to hear about it.
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...DNN 4 FarmingDNN 4 Farming


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out