Server and agent communication configuration
This topic describes the communication between Deployment Automation server and agents.
Agent-server communication overview
Servers and agents communicate either directly or through an agent relay. If an agent relay is used, the agent connects to the server through the agent relay, and the agent relay manages the requests to the server.
If your agents are dispersed across geographic locations or must communicate through firewalls, you need to configure the agents to connect to the server through agent relays. Also use agent relays to manage network traffic in implementations where you have many agents, even if they are on the same network and don't have to go through firewalls.
When a JMS connection is established between the server and the agent, regardless of whether an agent relay is used, the connection remains open as long as the entities involved are online. The server provides HTTP endpoints that the agents trigger to perform service operations.
These are the most common HTTP operations, which agents initiate by default:
- Download plugins
- Check plugin versions
- Upload log steps
- Download files
- Upload files
You can configure agent-server communication in several ways:
|Agent-to-server||To configure your agents to communicate directly with the server, when installing the agents, point the agents to the server.|
|Agent-initiated with agent relay||
To configure your agents and servers for agent-initiated HTTP communication through agent relays:
|Server-initiated with agent relay||
To configure your agents and servers for server-initiated HTTP communication:
The next sections describe the types of communication through agent relays.
You can configure agents and agent relays so that all HTTP communication between the agent and server is initiated by the agents.
The following diagram displays agent-initiated HTTP communication using agent relays.
Tip: The agent relay installation option that controls this is Connect the agent relay to a central server. For this scenario, set it to Y.
You can configure agents and agent relays so that the server initiates the upload of HTTP requests over a designated size. This enables the server to control the traffic across the network and make sure that the volume of incoming requests from many agents does not overload the network.
The agent still initiates the HTTP request as part of the process being executed, and a certain amount of information is passed through to the server on every request. However, the agent relay suspends any HTTP requests that are too large to pass through directly and enables the server to process them when it is ready.
Note: Only the inbound JMS port needs to be opened, and the server initiates all communications over the JMS tunnel.
This type of communication is sometimes referred to as unidirectional communication, and the agent relay is referred to as passive, because the server is initiating and regulating the HTTP communication.
The following diagram displays server-initiated HTTP communication using agent relays.
- Agents send concurrent requests through HTTP. Requests 1a, 1b and 1c are processed concurrently, but the diagram displays only the processing of request 1a.
- Every agent request coming to an agent relay is put on hold before the server provides the response. All the requests coming from agents are queued on an agent relay. The agent relay processes the requests and assigns them internal IDs.
- The server periodically polls the agent relay, and detects that the agent relay has an incoming request. The agent relay sends the request ID information to the server using JMS.
- When the server receives the request ID, it sends an HTTP request to
get the request body from the agent relay.
Depending on the size of the initial request, this step may be omitted. For small requests, the body can be transferred using JMS during the previous step.
- After receiving the body of the request, the server processes it as needed.
- After processing the request, the server sends the response to the agent relay.
- The agent relay returns the response to the agent from the agent relay using HTTP.
Tip: The agent relay installation option that controls this is Connect the agent relay to a central server. For this scenario, set it to n.