I have a requirement to synchronize multiple VSEs with same set of services with a automatic fashion to achieve HA. It there any in-build script which I can use or any best way to implement this would be helpful.
Don't think there's anything similar to what you are asking out of the box. Maybe if someone's created such a script, please post it here or any other alternatives.
BTW - how are you planning to configure the HA assuming you had the script which mirrors the VS to multiple VSEs?
Once both the VSEs are in sync, one will act as a master and another will be as slave. To achieve HA, planning to hook up both the VSEs to the loadbalancer.
One way to would be to use a script with the cURL () command to deploy the VS to both VSEs.
See Daniel_Bingham's response on this thread - Fail-over provision for VSE Server
Thanks Koustubh. I will try shell scripting option with curl command. Thanks.
I've written similar Shell script, it just syncs .mars between two vseDeploy directories, roughly logic is:
# Sync to NAS
rsync -a --delete-before --include="*.mar" --exclude="*" $LISA_HOME/vseDeploy/$VSE_NAME/ $NAS_OR_SHARED_LOCATION
# Sync from NAS
rsync -a --delete-before --include="*.mar" --exclude="*" $NAS_OR_SHARED_LOCATION $LISA_HOME/vseDeploy/$VSE_NAME/
In our case this script is running every hour as a cron job.
Thanks PF_Giorgi for suggesting this option. It will be helpful for me. Thanks.
Retrieving data ...