Quantcast
Channel: General
Viewing all articles
Browse latest Browse all 7363

Can i make failover with msdeploytoll help?

$
0
0

Ok, there are two servers, running windows 2008R, lets name them SRV1 and SRV2. SRV1 is production server and there are plenty of IIS sites, so we need failover of this IIS on SRV1. We made script on SRV1:

msdeploy.exe -verb:sync -source:webServer -dest:webServer,computername=SRV2

This script copies all IIS data to SRV2, everything works OK. Then SRV1 goes down, we made some automatic dns changes, so after few minutes SRV2 starts serving IIS clients. That is ok too :) But then SRV1 brings online, it has old data so we need replicate with msdeploy tool from SRV2 to SRV1.

My question would be, is it possible to make some script, to determine which server SRV1 or SRV2 is "Master" and copies all data from master to "principal", or in this scenario, tehen SRV1 goes down (we make some changes in SRV2) and when SRV1 goes up, msdeploy tool automaticly understand that SRV1 is up and ready to become master, copies new data from SRV2 to SRV1 and inform that SRV1 can become master.


Viewing all articles
Browse latest Browse all 7363

Trending Articles



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