Assigning tests to an Endpoint Agent
Last updated
Last updated
Both Endpoint Agent and Endpoint Pulse can run a combination of multiple Scheduled and Dynamic Tests at a time. This number varies as per the license type of the agent. You can learn more about license types . However, you can assign more than 10 tests to an agent.
In case, more than 10 tests are assigned to an agent, the platform works on a mechanism that decides which tests should run on a given agent. For every agent, this mechanism runs at every check-in (10 minutes), or earlier, if the agent is connected to the WebSocket. Now, all enabled tests associated with the agent are gathered and sorted to determine which tests will run on the agent. To sort the tests, the following cascading (moving down to the next one if there is a tie) list of strategies is used to compare the tests:
Test priority is defined in the user interface (if toggled the task has higher precedence).
Type of test (from highest to lowest precedence)
Test targeting this agent directly.
Test targeting this agent through a label.
Test targeting all agents.
Tests already assigned to the agent have higher precedence.
A tie-breaker (more details below).
The tie-breaker
Imagine a scenario with 20 enabled tests, all using the same priority and type. Based on the above strategy, they all have an equal chance of being assigned to an agent. To determine which 10 tests would be assigned to an agent, the mechanism randomly spreads the tests to all agents, while maintaining a deterministic and consistent behavior per agent. For example, the scenario could have the following spread:
Agent1: Test# - [1,3,5,7,9,12,14,16,18,20]
Agent2: Test# - [2,4,6,8,10,11,13,15,17,19]
1
Webex
all agents
2
Webex
all agents
3
Zoom
[agent1, agent2]
4
Zoom
all agents