PHPエージェント用共有プロキシの使用

複数のエージェントを実行している場合、デフォルトでは、各エージェントがコントローラと通信するために独自のJavaプロキシを自動的に起動します。

ただし、同じマシンで複数の を実行している場合は、エージェントが単一の共有プロキシまたはマルチテナントプロキシに報告するように設定することでオーバーヘッドを削減することができます。この場合、そのプロキシの手動での起動が必要になります。

単一のプロキシに報告できるノード数は、プロキシに与えられるヒープサイズにより制限されます。多数のエージェントが単一のプロキシに報告している場合は、runproxy スクリプトの maxHeapSize と maxPermSize の設定を調整する必要があります。

Setting up a Multi-Tenant Proxy

  1. Configure each agent for manual launch of the proxy.
    To do this, in the PHP configuration file—php.ini or appdynamics_agent.ini depending on your setup—for each agent, set the agent.auto_launch_proxy value to 0.
  2. Configure a single proxy control directory for all the agents that will share the proxy.
    They must all be on the same machine. To do this, in the PHP configuration file for each agent, set agent.proxy_ctrl_dir to the same proxy control directory. The permissions on this directory should be readable and executable by the process that runs Apache and writable by the process that runs the proxy.
  3. Before you start the agents, arrange to launch the proxy manually, passing the proxy control directory configured in step 2 as the proxyCommunicationDir argument to the runProxy script.
    See information on executing the runProxy in Start the PHP Agent Proxy Manually. Splunk AppDynamics recommends launching the proxy on system startup.
  4. Verify that each agent reporting to the multi-tenant proxy is configured with a unique app_name/node_name combination.
    The app_name and node_name are arguments to the agent install script.