Return 429 when queue is full
Open
enhancement
- Dominant language
- Go
- Stars
- 1.3k
- Forks
- 543
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 109
Description
Currently when APM's queue is full the server starts responding with a `503`
```
{
"accepted": 0,
"errors": [
{
"message": "queue is full"
}
]
}
```
Opening the discussion to return a `429` instead which could signal agents to back-off incrementally.
This would also help diagnosing queue is full vs unavailability issues do to [downstream issues](https://github.com/elastic/apm-server/issues/5949).
It also brings us inline with how Elasticsearch signals its (thread) queues are full.
Contributor guide
Assessment
This issue has not been assessed yet.