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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Amateur Web Farm setupAmateur Web Farm setup
Previous
 
Next
New Post
3/27/2010 5:22 AM
 

To be able to loadbalance my company website, I've created the following setup on two Dell PowerEdge R200 hosts:

  • Loadbalancers (esxi 4.0 guests: master on host0, backup on host1)
    Debian - LVS+Keepalived
    Loadbalancing algoritm - Round Robin
  • Webserver guests (esxi 4.0 guests: 1 guest on host0, 1guest on host1)
    Windows Server 2008 R2 - tasks: DC/AD, Webserver, Fileserver (only used for DFS), SQL Server 2008 Enterprise
    DFS (Distributed File System) - I placed the DNN files in here
    SQL Peer-To-Peer Transactional Replication - DNN Website database is being replicated between the hosts

Both hosts are connected with a crosscable on a gigabit interface.

 

Context
Since I'm a student and this is my first startup, my budget is very limited. DotNetNuke Professional edition unfortunately is not an option for me at this point. Sebastian Leopold pointed me to PowerDNN's PowerCache, however I'm affraid this also is too expensive for me at this point. I am able to use fairly expensive Microsoft software, since I'm enrolled in the BizSpark program.
Furthermore, forgive me for stupid remarks. I don't have an IT background (law-student).

Loadbalancing probably isn't needed, since the only tasks of the hosts are to host the company website (1 DNN website) and to host the product's server-application (ASP.Net/C#). I bought two servers, since I could get my hands on them second-hand for the same price as one new server, still with 2 years Dell warranty. So I'm trying to utilize the resources and I like to try things.

 

This is what I've done to get the DNN site (I'm running 5.3.1) working on both guests:

  1. Windows Server 2008 R2 preperation
    1. Created a DFS share, which is being replicated to local folders
    2. Installed MS SQL Server 2008 Enterprise (Default Instance / Mixed Mode authentication)
    3. IIS7 preparation
      1. Created an AD-domain user "DNNUser"
      2. Set file permissions (Users > Full Control) on the local folder to which DFS replicates
      3. Set file permissions ("DNNUser" > Full Control) on C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files
        Had to take ownership of that folder to be able to change the permissions.
      4. IIS Manager > Application Pools > DefaultAppPool > Advanced Settings > Load User Profile = True
      5. IIS Manager > New website
        1. Application pool > DefaultAppPool
        2. Physical path pointing to the DNN instance local folder to which DFS replicates
        3. Physical path > Connect as "DNNUser"
  2. Locally on desktop - I created the DNN site.
  3. Locally on desktop - Created the portal aliasses needed for the site to run on the hosts
  4. Locally on desktop - Attached the Database.MDF to SQL Server 2008 Express with SSMS
  5. Locally on desktop - Made a SQL Full backup with SSMS
  6. Restored this backup at both SQL Server 2008 Enterprise (both installed as default instance on each guest).
  7. Gave the restored backups the same database name ("DNN001") in SSMS.
  8. SSMS > Security > Logins > Created SQL user "SQLUser"
  9. Added "SQLUser" to RESTOREDDB > Security > Users (checking all Owned Schema's and Role Members, except db_denydataread, db_denydatawriter, guest)
  10. DNN web.config > modified connection strings under <connectionStrings> and <appSettings> for SQL Server 2008
  11. Made sure the site was working on both guests
  12. Configured SQL Server peer-to-peer transactional replication
    Following Kasim Wirama's (KORONX2004) tutorial on YouTube "Peer to peer in SQL 2008 Demo"
    Only difference that my DB's are named identically ("DNN001") on both guests as opposed to Kasim which uses "ticketsales_1" on guest1 and "ticketsales_2" on guest2.

After this I tried to apply the steps described in the "DotNetNuke Webfarm Support" PDF, however I was only able to complete step 1: DNN web.config > "EnableWebFarmSupport" = true

Step 2 (DBLoggingProvider) was already configured as the document described. Figured this was because the document is 5 years old.

Step 3 (Machine Keys) was pretty straightforward in my situation.

Step 4 (Host Menu > Schedule configuration). The "Run On Servers" item doesn't show an inputbox (figured this option is only available in DNN Professional), so there wasn't that much to configure, except for enabling one scheduled item that wasn't enabled by default (can't remember which one).

Step 5 (Caching Provider): I don't have access to a BroadcastPolling Caching Provider. DNN Professional and PowerDNN's PowerCache are too expensive for me at this point. I did read about Alachisoft's NCache just before writing this post, so I'm looking into that soon. Any advice if the Express edition (free) would be of any help with this setup?

 

Everything appears to be working. When navigating to the designated loadbalancing IP-adress, the site works. When I modify something on guest0, it appears on the website shown by guest1. I haven't got a clue how this will run in a production environment though. Shouldn't it work, it won't be that much of a deal to revert back to a single-host setup.

Any advice on this setup would be greatly appreciated.

 
New Post
3/27/2010 6:03 AM
 
Cheered to soon. Definitely isn't working correctly. When I finished yesterday, modifie something on guest0 and load the page on guest1 it worked fine, so I assumed it worked and called it a day. This morning however, updates made are inconsistent. This is probably a caching issue. Any advice on the way to go? I'm reading about NCache Express, Velocity, Memcached. It's all pretty vague though. Would caching be the only issue? Can't really decide on wether to continue with the webfarm setup (since I have the idea I'm pretty close, however don't know if that's true), or just roll back to a single server setup.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Amateur Web Farm setupAmateur Web Farm setup


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