Server Instances (Magic xpi 3.x)
You can run more than one instance of a Magic xpi Server at the same time. This is different from routing, when you run various different Servers at the same time. "More than one instance" means that you run multiple instances of the same Magic xpi Server.
To run the Magic xpi project, click the Magic xpi Start shortcut icon, which is created in the projects directory when you build the project. Repeat this process to open another instance of the project. To stop the Magic xpi project, double-click the Magic xpi Stop shortcut icon.
Each instance of the Magic xpi Server handles its own recovery, scheduling, and global variables independently.
A global system variable called G.sys.ServerInstance stores the Server instances (for example, 1 for the first Server, 2 for the second Server).
Note:
|
-
On Server startup, the Magic xpi Server performs recovery, and scheduling. These activities are performed by only the first instance. However, scheduling and recovery during regular Server activity will be performed by all Servers.
For example: You are running three instances of the same Server, and the third instance is currently executing a flow. When you turn on the machine and then restart the three Magic xpi Servers, the first instance will perform the recovery for all Servers, including flows that were running on the third Server instance when the machine was shut down. However, if a specific flow in the third instance has a time-out, Server 3 handles the recovery for this flow.
|
|