elastic / elastic/apm-server

Return 429 when queue is full

Open
#5,950 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.