Most Powerful Open Source ERP

How can I switch from Master to Clone? (Using Resilience )

  • Last Update:2020-02-10
  • Version:002
  • Language:en

Resiliency: How to do a takeover to move services from Master instance to the Clone?

 

When you have a resilient webrunner or resilient kvm, you have actually 3 instances running:

  • master instance (runner0 or kvm0): where the services are running
  • PBS : where the backup is stored
  • clone instance (runner1 or kvm1): where the services are cloned each day

 

If for some reason, you want to move your services from master to clone (because master is down, master is overloaded, ...), you need to follow the following steps. If you do the takeover procedure, your services won't run anymore on the previous master.

 

I Go to the takeover URL of your instance

You will find the takeover URL in the connection parameters of your instance (either "takeover-runner-1-url" or "takeover-kvm-1-url"). Please see also the takeover password ("takeover-runner-1-password" or "takeover-kvm-1-password"), you will need it later.

On the takeover URL, you should see something like this:

Enter Password and launch Takeover

 

II Make sure your backup is OK

In the takeover interface, you will see the last valid backup date. Make sure the date is OK and you won't lose any data. Also, you should read the log from the importer (the script that copy the data, compiles and deploy the services in the clone). The login/password to see the importer log is the same as the monitor. You will find the password in the "monitor-setup-url" connection parameter.

Note: the backup is done once per day by default. You can change this setting in the parameter "Periodicity of backup" of your instance. For example setting this parameter to "0 * * * *" will run the backup each hour.

 

III Do the takeover

If the backup is OK, you can paste the takeover password and click on the red button "Take Over".

 

IV Wait for the end of the takeover

Now you have to wait for resiliency to replace your master. The original kvm0 (or runner0) will be rename to "broken" and the kvm1 (or runner1) will be renamed to kvm0 and a new clone will be requested. Once the process is over, the system will be reajusted and your access will be moved to the new master.

 

V Update your frontend

Since your services changed the computer where they run on, they changed their IPv6. If you have a webrunner, you should redeploy your services inside the webrunner so that they know about the change. Also, you will need to change all the frontends pointing to your services (especially, the custom frontend if you have one).