Hitachi

JP1 Version 13 JP1/Base User's Guide


L.6 Setup procedure for using JP1/Base linked with the auto-scaling functionality (for agent hosts)

This subsection describes how to set up agent hosts when JP1/Base is to be linked with the auto-scaling functionality.

Perform the procedure described below on a virtual machine (EC2 instance) provided by the Amazon EC2 service.

Note that steps 3 to 7 are required if JP1/PFM is to be used for monitoring.

  1. Install JP1/Base.

  2. Enable the health check function of JP1/Base.

  3. Install JP1/PFM - Base and JP1/PFM - Agent.

  4. Configure JP1/PFM settings as necessary.

    Some settings must be configured from JP1/PFM - Web Console while the JP1/PFM service is running. If you configured these settings while the JP1/PFM service is running, perform the following procedure:

    1. Stop the JP1/PFM service on the agent host.

    2. On the agent host, execute the jpctool db clear command to delete all record information.

    3. On the manager host, execute the jpctool service delete command to delete the service information for the agent on which settings were specified. In addition, execute the jpctool service sync command to synchronize with JP1/PFM - Web Console.

  5. (Linux only) Execute the jpcconf host hostmode - mode hostname command to change the method for acquiring the names of monitored hosts to the hostname command.

  6. Disable JP1/PFM's automatic startup settings.

    In Windows:

    For all JP1/PFM services, in the Windows Services dialog box, set Startup type to Manual.

    In Linux:

    If an automated startup script file (jpc_start) was deployed, delete it.

  7. (JP1/PFM Base version 11 and only in Linux) Edit the automated startup script file of the service (jp1_pc).

    Before editing:

    #!/bin/sh
    ## Copyright (C) 2004, Hitachi, Ltd.
    ## Licensed Material of Hitachi, Ltd.
     :

    After editing:

    #!/bin/sh
    ## Copyright (C) 2004, Hitachi, Ltd.
    ## Licensed Material of Hitachi, Ltd.
    ### BEGIN INIT INFO
    # Provides: jp1_pc
    # Required-Start: $local_fs $remote_fs $syslog $network
    # Required-Stop: $local_fs $remote_fs $syslog $network
    # Default-Start: 3 5
    # Default-Stop: 0 6
    # Description: Start PFM services.
    ### END INIT INFO
     :
  8. Add the manager host to the hosts file or DNS to enable communication.

  9. Set a scale-out notification event.

    In the script definition file (jbsas_setup_agent.ini), specify the manager host to which scale-out notification events are to be sent. You can change the event attributes (event ID and message).

    For details about the script definition file, see L.8 Auto-scaling linkage script.

  10. (Windows only) Specify the settings for the Amazon EC2 startup service.

    Specify the settings by performing the following steps.

    For EC2Config:

    1. Open the EC2 Services Properties dialog box.

    Click the EC2 Config Service Settings in the Apps window.

    2. Click the General tab to expand the page.

    3. Select the Set Computer Name check box and the User Data check box.

    For EC2Launch v1:

    1. Open EC2LaunchSettings.

    2. Select the check boxes Set Computer Name and Handle User Data, and then apply the settings.

    For EC2Launch v2:

    1. Open EC2LaunchSettings.

    2. Click the General tab to open the page.

    3. Select the check boxes Set the computer name of the instance and Reboot after setting computer name, and then apply the settings.

  11. (Linux 7.3 or earlier only) Edit the cloud.cfg file.

    Add the following line to the /etc/cloud/cloud.cfg file:

    preserve_hostname: true

When you perform setup for using JP1/Base linked with the auto-scaling functionality, configure other necessary settings such as the following: