Cloud Proxy with Load Balancer


Article ID: 196406


Updated On:


CA Application Performance Management Agent (APM / Wily / Introscope) CA Application Performance Management (APM / Wily / Introscope) INTROSCOPE DX Application Performance Management


The cloud proxies in our DR environment in the DMZ network zone are logging frequent "connection reset by peer", about 3500 an hour. Agent are not able to report metrics at times and this issue seems to be affect APMIA performance.

Infrastructure involved in our deployment: APM agents/ACC Controllers > load balancer > cloud proxy > DX SaaS

Cloud proxy release:


Release : 11.1.0 onwards and APM SaaS

Component : APM Agents


Cloud Proxy is a standalone service running in a customer host OS environment. OS service manager or a third-party application is required to ensure instance availability. Cloud Proxy provides a liveness probe through HTTP and HTTPs endpoints under /supportability/health. A load balancer can be put in front of DX APM Cloud Proxies to achieve high-availability. The load balancer will ensure agent reconnects are routed to an available instance and balancing the number of connections between the instances too.
Requirements for different agent transport protocols for a third-party load-balancing solution:
Agents connecting via HTTP/HTTPs Protocol transport
  - The load balancer must ensure that HTTP requests of an agent are balanced to the Cloud Proxy instance based on the HTTP JSESSIONID session cookie. The Cloud Proxy instance is keeping a WebSocket channel to APM Gateway associated with the HTTP session of the agent.
Agents connecting via WebSocket protocol transport
 - Agent WebSocket transport creates a stable TCP socket connection. The third-party solution must support the WebSocket protocol.
Agents connecting via Isengard protocol
 - The Isengard protocol is transferred directly through a TCP socket connection. A network load balancer or similar technique can be used to ensure failover to an available Cloud Proxy instance.

Additional Information

High Availability (HA) Setup