Top
PRIMECLUSTER Messages
FUJITSU Software

8.1 Lambda Function Messages

The Lambda function outputs messages to the following log group:

/aws/lambda/<Lambda function name>

<Lambda Function Name> is the name of the Lambda function configured for switcher. For details, please refer to "Configuring AWS Lambda" in "Using the Smart Workload Recovery Feature" in the "PRIMECLUSTER Installation and Administration Guide Cloud Services".

Information

  • Log Group is the unit of log management in Amazon CloudWatch Logs (the Log Management Service).

    For details on Log Group, refer to "Amazon CloudWatch Logs User Guide".

  • The variables that appear in the Lambda function message are as follows:

    Value

    Contents

    system_id

    Integer value identifying the cluster node

    instance_id

    Instance ID of the source instance

    new_instance_id

    Instance ID of the target instance

    event_id

    ID of the event that occurred during the switch

    event_type

    Type of event that occurred during the switch

    bhsg_id

    Security group ID applied for data protection

    target_id

    Target group ID of the ELB to which you want to add the target instance

    state

    State used by the switch for internal control.
    Depending on the message, one of the following may occur:

    • Execution management objects (SWITCHING | NOT _ SWITCHED | None)

    • Instance state (terminated | shutting-down)

    is_recovery_target

    The value of the instance's tag "fujitsu.swr.is_recovery_target"

    PCLSWR_SYSTEM_LIST

    AWS Lambda Environment Variables Configured in a Running Lambda Function

    alarm_name

    CloudWatch alarm name whose configuration is updated on the target instance

    ami_id

    The ID of the Amazon Machine Image (Hereinafter referred to as AMI) to use in creating the instance

  • The execution managed object is the value used to prevent double execution of the Lambda function when switching. If the execution management object is SWITCHING, the Lambda function is not executed. The values indicate the following:

    Value

    Contents

    SWITCHING

    The Lambda function is running.

    NOT_SWITCHED

    The Lambda function is not running.

Point

Handling messages in your Lambda function may require you to check the tags on your instance. To verify the tag, do the following:

  • Open the Amazon EC2 service management screen and choose the < Instances > button from the sidebar.

  • From the list of displayed instances, select an instance with the same instance ID as the < instance_id > output in the message.

  • Select the Tags tab from the instance detail. Displays the tags for the instance.