Tom Troughton
Tom Troughton

Reputation: 4325

How can I synchronize physical files manually in a Kentico web farm?

We have a non-standard Kentico architecture which Kentico have advised is supported as long as synchronization of physical files between load balanced servers is disabled and handled manually. What is the correct way to manually synchronize web farm server files? I wondered about using a tool like DirSync but assume this would require one server to act as the primary, whereas with Kentico a new media file, for example, may be initially saved to any of the physical servers.

I'm hoping to identify a definitive solution to this issue. Thanks.

Upvotes: 1

Views: 517

Answers (2)

Virgil Carroll
Virgil Carroll

Reputation: 142

I read the thread above and would recommend you take a look at this tool from BizStream: https://devnet.kentico.com/marketplace/modules/compare-for-kentico

I haven't gotten to play with it myself, but they are a top notch shop so I can bet its a top notch product.

Otherwise you are going to have to go the custom sync code.

We've tried to do moves via the SQL Tables and it is 'possible', but the amount of interconnected relationships just make it quite unrealistic to build or support.

Upvotes: -1

Enn
Enn

Reputation: 2209

Kentico web farm by default synchronizes physical files automatically if the web farm is working properly. As each request can be served by different server Kentico serializes file binary into Database which is shared by all servers and then re-creates file on the server where it is missing.

I'm not aware of any situation where web farms are supported, but file synchronization isn't. It's either all or nothing, there is no middle solution.

Can you be more specific of why the synchronization of physical files is not working on your end? As long as all servers see the database (which they should otherwise the WF is not working at all) the file synchronization will work.

PS: If your files are not synchronized, go to Web farm -> Tasks application and check how many tasks are there. If there are no tasks (or very few which are being deleted constantly) then your web farms are working, if there are tasks older then few minutes then your web farms are not working at all.

Upvotes: 2

Related Questions