Decrease CONSOLE_CONCURRENCY.

Last run with 128 created too much load on cplane.
This commit is contained in:
Arseny Sher
2024-04-05 20:25:09 +03:00
committed by Arseny Sher
parent ea37234ccc
commit 7434674d86

View File

@@ -121,7 +121,10 @@ pub async fn find_garbage(
const S3_CONCURRENCY: usize = 32;
// How many concurrent API requests to make to the console API.
const CONSOLE_CONCURRENCY: usize = 128;
//
// Be careful increasing this; roughly we shouldn't have more than ~100 rps. It
// would be better to implement real rsp limiter.
const CONSOLE_CONCURRENCY: usize = 16;
struct ConsoleCache {
/// Set of tenants found in the control plane API