Limiting the rate of new calls
The DIALEX_RATE_* settings limit how fast new calls (the dial request) are accepted. Each DMZ server has its own token bucket.
| Key | Default | What it does |
|---|---|---|
DIALEX_RATE_LIMIT_ENABLED |
On | Turns the limit on. |
DIALEX_RATE_BURST |
175 | Bucket size: calls let in at once. |
DIALEX_RATE_TOKENS_PER_SEC |
15 | Refill rate: calls per second once the burst is used. |
DIALEX_RATE_QUEUE_LIMIT |
150 | Calls that wait for a free slot when the bucket is empty, oldest first. Beyond that, calls are refused with HTTP 429. 0 refuses at once. |
Sizing
- All values are per DMZ server. The total is the value times the number of DMZ servers behind the load balancer.
- Example: 3 DMZ servers with 15 per second accept about 45 new calls per second in total, with a burst of up to 3 × 175.
- When you add or remove a DMZ server, recalculate.
- Waiting calls add delay to the dial. Keep the waiting limit near what one server clears in about 10 seconds (15 per second × 10 = 150).
Applying a change
The limiter is built when the DMZ starts. Restart each DMZ server after changing these settings.
No comments to display
No comments to display