Installation and deployment
Version 7.x > Installation and deployment > Content staging and web farm servers View modes: 
User avatar
Member
Member
matt.barry-stockhouse - 5/6/2013 6:55:17 PM
   
Content staging and web farm servers
Is there any way to prevent the content staging module from synchronizing web farm servers? This doesn't seem like something that one would want synchronized between environments. Obviously my staging environment has different servers than my production environment.

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 5/7/2013 9:34:02 AM
   
RE:Content staging and web farm servers
Correct me if I'm wrong here but I think you're talking about two different things. Content Staging will keep track of your content changes in the database which you can then sync to another server (Dev -> Staging). A web farm would have 2 servers (or more) in your Dev environment which would sync physical files back and forth between the servers in that farm. There would be no way to sync those physical files from Dev to Staging without some sort of manual setup/process. And Kentico doesn't do that out of the box.

To go further in detail, in your Dev environment you have Server1 and Server2 and you access it via a load balancer by calling dev.mydomain.com the load balancer decides which server you access. So you want all your files in sync on both those servers. Those two servers also will connect to the same database, we'll call it Dev.

Now in your Staging environment you have Server3 and Server4 and you access it via a load balancer by calling stating.mydomain.com. Both those servers connect to the same database, we'll call it Staging.

When you perform an action within Content Stating, you are pushing change in the Dev database to the Staging database (or visa versa). When your web farm servers sync, you are syncing the physical files (aspx, ascx, .cs, etc.) from Server1 to Server2 (and visa versa) and from Server3 to Server4 (and visa versa).

User avatar
Member
Member
matt.barry-stockhouse - 5/7/2013 12:50:50 PM
   
RE:Content staging and web farm servers
I understand and agree with everything you're saying. I think I need to communicate the issue a little more clearly.

Let's say I go to the staging section in CMS Desk to review all of the content items that are ready to be synchronized to my target environment(s). In that list I am seeing tasks such as "Create Web farm server 'DEV01'" or "Delete Web farm server 'DEV01'". If I click on the "Synchronize all" button, the staging module is going to push those web farm configuration tasks into my target environment. Obviously I don't want to see 'DEV01' in my staging or production web farms.

Basically I'm wondering if there's any way to get the content staging module to ignore web farm configuration.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 5/8/2013 2:03:28 AM
   
RE:Content staging and web farm servers
Hello,

Right now, there is no setting for this but, you can use the global handler to control the logging of the staging tasks using a custom code.

Best regards,
Juraj Ondrus

User avatar
Member
Member
matt.barry-stockhouse - 5/8/2013 12:55:56 PM
   
RE:Content staging and web farm servers
Thank you Juraj, that works!