# Event Lag Scaling

These instructions apply to the legacy Admin Console.

Event Lag Scaling automatically increases the number of processing Agent Instances you have based on the backlog of unprocessed events or messages. In the example below, the Agent is set to scale up to 3 instances if the number of unprocessed events exceeds 100. Events are added to Event Agents from Triggers, Actions and Send to Agent Nodes.

<figure><img src="https://docs.contextual.io/legacy/media/Screen%20Shot%202024-07-18%20at%209.14.50%20PM%20(1).png" alt=""><figcaption></figcaption></figure>

The **Event Lag Threshold** affects more than auto-scaling. It also governs how many messages should be buffered for each instance from the backlog at a time, which is what makes backlog work spread evenly across your running instances. See [Message Distribution](https://docs.contextual.io/legacy/components-and-data/agents/how-agents-work/message-distribution.md) for details.
