forked from observatorium/api
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return main upstream response when using multiple endpoints
This changes refactors the Proxy remote wrtie handler to do as much work outside of the handler as possible. There is a major change in behaviour. The extra endpoints are now written to async in the background of the main request. Extra endpoints will be written to with best effort and logged. The response code from the thanos backend will be returned to the client. This will cause the client to retry on specific errors and will have a knock on effect of a successfully written request prior being attempted once again to the extra remote write endpoints.
- Loading branch information
1 parent
dd9217e
commit d131672
Showing
1 changed file
with
149 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters