-
Notifications
You must be signed in to change notification settings - Fork 549
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement polling tenants concurrently (#3647)
* Implement polling tenants concurrently * Pass config through tempodb * Avoid race on consecutiveErrors * Add comments for atomic use * Increase tenant count, concurrency and randomness in poller integration test * Drop test logs * Tidy up * Include TenantPollConcurrency in deletion integration test * Match a regex on the error rather than a specifc one to account for the concurrency * Add log for base test * Use math/rand/v2 * Fix for consistent error handling of consequetive errors * Reduce test work and output for truncation and timeouts * Update changelog * Adjust error handling Here we make changes to the error handling to account for the additional complexity brought with the tenant concurrency. This changes the behavior of the blocklist_poll_tolerate_consecutive_errors configuration by applying to a single tenant, which instructs the poller to retry until the threshold is met. A new configuration parameter blocklist_poll_tolerate_tenant_failures has been added to account for the number of failing tenants that will be tolerated. This allows parts of the old behavior scoped to a single tenant, but also accounts for a more global picture. This means that a single failing tenant by default will not stop the entire polling process. Tests have been updated to account for this additional logic. * Fix tenant failure increment * Fix race in test * Lint * Avoid race for integer read/write * Clarify tracking of failing tenants * Play golf * Add doc for new config option
- Loading branch information
Showing
8 changed files
with
352 additions
and
141 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
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
Oops, something went wrong.