Parallel Instances
On paid service plans, you can configure Agents to scale to multiple instances. Scaling can happen in two ways.
For HTTP and Event Agents, you can scale based on Compute. If compute hits a given threshold (e.g. - 80%), Contextual will automatically scale up another Agent instance.
For Event Agents, you can also scale based on message lag. Based on the number of messages a given agent is required to process it can dynamically scale up to handle the increased message volume.


Availability During Maintenance
For HTTP to Flow agents that need to keep serving requests during planned infrastructure maintenance, set Minimum Instances to 2 or more. See Keep the Agent Available During Maintenance for setup steps and the limits of this protection.
Scale to Zero
On tenant plans that support parallel instance scaling, Event to Flow agents using Event Lag (lag-based) scaling can be configured to scale to zero running instances when the agent has no work to process.
To configure an Agent to scale to zero, set Minimum Instances to 0 and Maximum Instances to at least 1. When the agent has no work to process, the platform reduces running instances of that Agent to zero. When new events arrive, the platform starts an instance of the agent and begins processing again. Startup time is not a fixed duration and varies depending on agent size, image, and current load.
An agent configured to scale to zero may also run briefly at intervals when no new events have arrived.
A scale to zero configuration is appropriate for intermittent or bursty workloads that can tolerate startup latency. If minimizing processing latency is more important than reducing idle instance time, keep Minimum Instances set to at least 1.
Last updated
Was this helpful?