Node Reuse for PHP Agent

This page describes how to use the node reuse feature for the PHP Agent.

Node Reuse for PHP Agent

This page describes how to use the node reuse feature for the PHP Agent.

Configure the Reuse Node Name Property

Configure the nodeReuse property in the PHP configuration file:
  1. Edit the PHP configuration file, php.ini or appdynamics_agent.ini depending on your environment.
  2. In the PHP configuration file, configure the following settings:
    agent.nodeReuse
    When the value of agent.nodeReuse is set to true, the agent uses reuse node name. The default value is false.
    agent.nodeReusePrefix
    When you configure the agent to reuse node names, use the agent.nodeReusePrefix property to specify the prefix that the controller uses to generate node names dynamically.

    This setting is required when agent.nodeReuse is set to true.

    An example of the reuse node feature:

    With the following configuration in the php.ini reportGen. Node names will have suffixes -1, -2, and so on, depending on the number of nodes are running in parallel. The name of a node that is shut down and qualifies as a historical node that may be reused by a new node.

    agent.nodeReuse=true agent.nodeReusePrefix=reportGen
    Note: When agent.nodeReuse and a node name is used, the agent.nodeReusePrefix property is given precedence.

Configure the Reuse Node Name Property During Installation

You can configure the reuse node name property while -r installing the PHP Agent. Use the -r flag with the installation command:

./install.sh -a <account_name>@<account_access_key> -r <controller-host> <controller-port> <app_name> <tier_name> <node_name>