Skip to end of metadata
Go to start of metadata


The following example is a more complex version of dynamic setting of remote JobSchedulers. It is just an extension of the basic principle, that is described in:


This example differs from the basic one because, while in the simple example we are configuring one order per remote host (and port), here we are configuring one order with one parameter. The value of that parameter is then the list of hosts (with the corresponding ports, where JobScheduler is running on) where the order will be running on.

Example of scheduler.remote_scheduler

A scheduler.remote_scheduler example has been prepared and can be used to set up a remote scheduling demonstration.

To run the example you need at least three JobSchedulers, one of which is to be used as the 'main' JobScheduler and the others as the remote ones.

Note that scheduler.remote_scheduler only works when both the main and remote JobSchedulers are version 1.7 or newer.

The Job

A Job that processes the parameter in the order and split the value in order to be able to use the defined hosts and ports. This is an API job and is defined as follows:

The Job Chain

This is a simple JobChain just using the Job defined above.

The Order

The Order is the same as defined in the basic example. The difference resides in the definition of the Order parameter, which is called remote_scheduler_list. Instead of just one host and one port pro order, you can define a list of hosts and ports separated by comma as follows:

These objects can be seen in the following screenshot from JOE:

Remote Scheduler Parameter List

Configuring the example in your environment

There are just two things that you should configure to make this example run in your environment:

  • The Job:
    In the last line "MY_JOB_CHAIN" is the name of the Job Chain you want to send the orders to (in the main JobScheduler).

  • The Order Parameter:
    Configure your own hosts and ports for your environment. You can configure this in JOE. Alternatively, the list of hosts and ports can be edited in the XML file RemoteSchedulerOrder,ServerGroup.order.xml:

Download the example

To get the example ready to use, simply unpack the file into the 'live' folder of the 'main' JobScheduler that will be controlling the remote one(s).