Cloud Proxy with Load Balancer

book

Article ID: 196406

calendar_today

Updated On:

Products

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

Issue/Introduction

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: 54.45.0.125


Environment

Release : 11.1.0 onwards and APM SaaS

Component : APM Agents

Resolution

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
https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/dx-apm-saas/SaaS/implementing-agents/migrate-agents-using-cloud-proxy.html#concept.dita_e5552e4232322e9de844fa9251eb951624058f6d_HighAvailabilitySetup