2.4.10 Executing jobs in a cloud environment (example of defining a jobnet that uses flexible jobs)
If you define a jobnet to execute jobs in a cloud environment in which host names and IP addresses are not fixed, use flexible jobs. If you use flexible jobs, processing can be executed by an agent host that is not directly managed by the manager host. Therefore, flexible jobs are useful when jobs need to be executed in an auto-scaling environment in situations such as the following:
-
A load balancer is used to distribute a job to execution agents.
-
A job is executed on all execution agents that exist in an auto-scaling environment.
We also recommend that you use a flexible job if you execute any of the following:
-
A job to be executed in an environment in which host names and IP addresses are not fixed
If host names and IP addresses are fixed, we recommend that you use PC jobs and Unix jobs rather than flexible jobs.
-
A job that does not require analysis, and that requires only re-execution if execution of the job does not succeed
In an auto-scaling environment, if destination agents are deleted as a result of scale-in operation, a flexible job might fail. It is difficult, in this case, to analyze the cause of the error. Therefore, in an auto-scaling environment, we recommend that you execute a jobnet that you have only to re-execute without analyzing the cause if the jobnet fails.
An example of defining a flexible job that uses a load balancer is shown in the following figure. For details about the system components and other considerations required to execute flexible jobs, see 2.9 Executing jobs in a cloud environment in the JP1/Automatic Job Management System 3 System Design (Configuration) Guide. For an example of defining a jobnet that executes a flexible job on multiple execution agents simultaneously, see 2.4.11 Executing a job on multiple execution agents simultaneously (example of defining a jobnet that uses flexible jobs).
|
When the jobnet defined in the above figure is executed, the following operations take place:
-
A job execution request is transferred via relay agent (AGT1).
-
The requested job is distributed by load balancer (LB1) to destination agents where the job is executed.
For notes on using flexible jobs, see 7.8 Notes on using flexible jobs.
For details about the settings necessary to execute flexible jobs, see 21.3 Setup to execute flexible jobs in the JP1/Automatic Job Management System 3 Configuration Guide.