![]() |
VOOZH | about |
Logs
Use this processor to set a limit on the number of logs sent within a specific time window. For example, you can set a limit so that only 100 logs are sent per second. Setting a rate limit can help you catch any spikes in log ingestion and prevent unexpected billing costs.
To set up the processor:
The Throttle processor sets a rate limit on the number of logs sent within a specified time window. While similar to the Quota processor, the main difference between the Throttle and Quota processors is that the Quota processor’s time window is fixed at 24 hours and cannot be changed, while the Throttle processor’s time window can be configured. Since the Throttle processor’s time window is configurable, the processor has a capacity replenishment rate based on the throttling rate and time window you set. See Capacity replenishment rate for more information.
The following table compares the Throttle processor with the Quota processor:
| Feature | Quota Processor | Throttle Processor |
|---|---|---|
| Time window | Fixed at 24 hours | Configurable |
| Handling initial burst of events | Processes data up to the fixed daily limit. | Processes events up to your configured throttling rate. |
| After the limit is reached | Stops processing data until the 24-hour time window is reset. | Continues at a steady, calculated rate. |
| Reset mechanism | Resets every 24 hours. | Continuous replenishment. Time window also resets if you redeploy the Worker or the pipeline. |
| How limits are stored or tracked | Quota limits persist even if the Worker is restarted, because the limits are stored in the backend. | The time window resets if you redeploy the Worker or the pipeline, because throttle limits are tracked in the Worker’s memory. |
When the Throttle processor is enabled, the number of logs the processor allows through immediately is based on the configured Throttling Rate. For example, if the Throttling Rate is set to 1000 events over 60 seconds, and 5,000 events arrive the moment the processor is enabled:
The Throttle processor uses a generic cell rate algorithm, which enables a steady rate of events to pass through. The replenishment rate is based on the settings of your Throttle processor and allows a certain number of events to pass through per second. This rate can be calculated as follows:
$$\text"Throttle rate" / \text"Time window (in seconds)"$$
If you use the following processor settings:
The capacity replenishment rate is:
$$\text"1000 events" / \text"60 minutes" ≈ \text"17 events"/ \text"minute" ≈ \text"0.28 events"/ \text"second"$$
If T is the time when the processor is enabled and the processor receives 5000 events at that time, the number of events that the processor allows through based on T is as follows:
T + 0 minutes (when the processor is enabled):T + 1 minute: ~17 events can be processedT + 2 minutes: ~17 events can be processedNote: The replenishment rate determines the maximum throughput after the initial capacity. You can adjust the throttling rate for a higher or lower throughput if needed.
| |