-
Notifications
You must be signed in to change notification settings - Fork 544
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Distributor: Delay simulation on ingestion (#10107)
* Distributor: Artificially delay sample ingestion if configured With Sigyn, we have a much higher latency in ingestion - somewhere around 5x. Ths can produce adverse side affects on remote write clients struggling. The purpose of this change is to help remote write clients prepare for the increase in latency by artifically producing it. The delay is meant to be configurable per tenant. Signed-off-by: gotjosh <[email protected]> * make docs Signed-off-by: gotjosh <[email protected]> * skip docs Signed-off-by: gotjosh <[email protected]> * rework the implementation to use a fake time and be a middleware wrapper * fix lint Signed-off-by: gotjosh <[email protected]> * minor style fixes Signed-off-by: gotjosh <[email protected]> * Address review comments Signed-off-by: gotjosh <[email protected]> * fix unit test to take into account jitter Signed-off-by: gotjosh <[email protected]> --------- Signed-off-by: gotjosh <[email protected]>
- Loading branch information
Showing
3 changed files
with
139 additions
and
1 deletion.
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
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
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