Defining Alternate Hosts (Magic xpi 4.5)
The start.xml file gives you the option to define an alternate host for the server to work with if the main host is unavailable or if the startup procedure on the main host fails. You do this using the alternateHosts attribute, as shown here.
Note:
|
To use the alternate hosts functionality, you must configure the clustered environment properly. For more information on how to do this, click here.
|
The alternateHosts attribute is blank by default. Here you enter the required alternate host(s), which can be in the form of a host name, an IP address, or a combination of the two (separated by a comma).
If you do not define an alternate server host in the start.xml file:
If you define an alternate server host in the start.xml file:
-
Magic xpi will attempt to run the server on your alternate host if the startup procedure on the main host fails.
-
Magic xpi will wait for a period of 60 seconds for an unavailable main host to become available. If, after this time has elapsed, the main host is still unavailable, Magic xpi will move to the next host and try to run the server there.
Note:
|
The move to the next host is cyclical. Once the last alternate host has been reached, and it is either unavailable or the startup procedure has failed, Magic xpi will then return to the main host for another attempt.
|
Magic xpi automatically returns the server to the main host. The return procedure is available only for servers running on an alternate host whose status is RUNNING.
If the main host’s GSA is available:
-
A new ServerData object will be created pointing to the main host. Triggers and workers will be defined to start in idle mode.
-
The new ServerData object will have a new ID.
-
The new ServerData object will hold the list of all previous server IDs.
-
After the server has successfully started on the main host (that is, its status is RUNNING) the alternate host will be given a command to gracefully shut down and the new server will take over.
-
The alternate ServerData object will be deleted from the Magic Space after the alternate server has been shut down.