Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

SkipDirectives in Web Farm Framework

$
0
0

 I want to skip a directory from being synced in the web farm.

I have a server farm "TestFarm" with server "Pri"(Primary) and server "Sec"(secondary) and syncing 90% of the content over the two servers, my problem however is that that I want to skip one or two directories(In this case, the "Test" dir is the one I would like to skip). I have a hard time doing so, and have been doing endless amount of research, without having any luck fixing this. Here is a bit of info on my envoroment:

Both servers running Windows Server 2008R2 Standard 64-bit, with IIS7, Web Platform Installer 3, Web Deploy 2 and WFF 2.2

I have two websites, Site1 and Site2, phisical paths:

F:\Websites\Site1

F:\Websites\Site2

and then also having some Server spesific files in a folder called "Test" in in both Site1 and Site2 that I dont want synced.

 

Now I have setup an applicationProvisioning as follow:

"Provider=contentPath" and "Path=F:\Websites"

 

All the info that I gathered said that, for me to skip directories I must just update the "applicationHost.config" file located here "C:\Windows\System32\inetsrv\config" like this: (Obviously these are not real server names ", )

 

<webFarms>
<webFarm name="TestFarm" enabled="true" adminUserName="*****" adminPassword="*****" primaryServer="Pri">
<server address="Pri" enabled="false" />
<server address="Sec" enabled="false" />
<platformProvision stopOnInstall="false" periodicSync="00:05:00" syncPlatformFromPrimary="true" />
<applicationProvision offlineWhileSync="false" syncWebServerFromPrimary="true" periodicSync="00:00:30">
<skipDirectives>
<skip name="Test" skipDirective="objectName=dirPath,absolutePath=F:\Websites\Test" />
</skipDirectives>
<clear />
</applicationProvision>
</webFarm>
</webFarms>

 

So I have done this, but still, the directory and its content keeps syncing every 30seconds from the primary server to the secondary server.

 

Then I came across a guy that mentioned that, that is the wrong applicationHost.config file and I should rather change it in "C:\Windows\SysWOW64\inetsrv\Config" only to realsize that this file has the same data in as my other appconfig file, and sync themself as I update it. I have tried restarting the web farm, restarting IIS, but all failed.

 

Any help would be greatly apreciated:)


Viewing all articles
Browse latest Browse all 27852

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>