Hitachi

JP1 Version 12 JP1/Automatic Job Management System 3 Configuration Guide


21.3.1 Setup procedure to distribute a job by using a load balancer

This subsection describes the setup procedure to distribute a job in a cloud environment that uses a relay agent and a load balancer.

Organization of this subsection

(1) Setting up JP1/AJS3 - Manager

This subsection describes how to set up JP1/AJS3 - Manager.

  1. Install and set up JP1/AJS3 - Manager and JP1/Base.

  2. On the manager host, start the following service:

    • JP1/AJS3 service

  3. Set up a relay agent, and then execute the ajsagtadd command on the manager host to register the relay agent as an execution agent.

    For details about how to set up a relay agent, see (2) Setting up a relay agent.

    For details about the ajsagtadd command, see ajsagtadd in 3. Commands Used for Normal Operations in the manual JP1/Automatic Job Management System 3 Command Reference.

(2) Setting up a relay agent

This subsection describes how to set up a relay agent.

  1. Install and set up JP1/AJS3 - Agent and JP1/Base.

  2. Execute the ajsatsetup command with the -m option specified.

    The host is set up as a relay agent. At the same time, the JP1/AJS3 Autonomous Agent Messenger service is set up completely. For details about the ajsatsetup command, see ajsatsetup in 2. Commands Used during Setup in the manual JP1/Automatic Job Management System 3 Command Reference.

  3. In the relay agent, specify settings to enable the communication using port number 22251/tcp (jp1ajs2atmsg) to pass through the firewall.

    For details about the setting of port numbers, see 2.3.4 Communications in firewall environments in the JP1/Automatic Job Management System 3 System Design (Configuration) Guide.

  4. On the relay agent, start the following services:

    • JP1/AJS3 service

    • JP1/AJS3 Autonomous Agent Messenger service

(3) Setting up the cloud environment

This subsection describes how to set up the cloud environment.

  1. Create an instance for the destination agent in the cloud environment.

  2. Install and set up JP1/AJS3 - Agent and JP1/Base in the created instance.

  3. Execute the ajsatsetup command with the -a option specified.

    The host is set up as a destination agent. At the same time, the JP1/AJS3 Autonomous Agent and JP1/AJS3 Autonomous Agent Messenger services are set up completely. For details about the ajsatsetup command, see ajsatsetup in 2. Commands Used during Setup in the manual JP1/Automatic Job Management System 3 Command Reference.

  4. Specify the following settings for the instance:

    • Set up user mapping in JP1/Base.

      When you use a relay agent, enter the host name of the relay agent or an asterisk (*) for Server host.

    • In Linux, set automatic startup of the JP1/AJS3 Autonomous Agent and JP1/AJS3 Autonomous Agent Messenger services.

      For details about how to set automatic startup, see 15.9.1(5) Setting automatic startup and termination of the JP1/AJS3 Autonomous Agent service or the JP1/AJS3 Autonomous Agent Messenger service.

      In Windows, this setting is not necessary because the JP1/AJS3 Autonomous Agent and JP1/AJS3 Autonomous Agent Messenger services always start automatically.

    • If necessary, disable automatic startup of JP1/Base and JP1/AJS3 services.

      The JP1/Base and JP1/AJS3 services do not need to start on the destination agent. When you want to avoid starting unnecessary services, disable their automatic startup.

    • Enable the host name of the relay agent to be resolved.

      When you do not use the relay agent, enable the host name of the manager host to be resolved. Note that you cannot use jp1hosts and jp1hosts2 for host name resolution.

    • Specify settings to enable the communication using the port with port number 22251/tcp (jp1ajs2atmsg) to pass through the firewall.

    • Deploy the program (user program) to be executed.

    • You might need to enable the host name of the destination agent to which the load balancer transferred a flexible-job execution request to be checked in the log file output from the source of the flexible-job execution request. To enable this, specify appropriate settings so that individual instances to be added by auto scaling as needed will have unique host names.

  5. Specify the following settings for the cloud environment:

    • Set up auto scaling.

    • Set up security appropriately so that only the communications originating from the relay agent will be permitted.

    • Specify settings appropriately so that the load balancer will deliver the communication using the port with port number 22251/tcp (jp1ajs2atmsg) to the instance that is added by auto scaling.