File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -1330,6 +1330,21 @@ pub static COMMIT_TRACE_THRESHOLD: LazyLock<Duration> =
13301330pub static INSTANCE_LOADER_CONCURRENCY : LazyLock < usize > =
13311331 LazyLock :: new ( || env_config ( "INSTANCE_LOADER_CONCURRENCY" , 16 ) ) ;
13321332
1333+ /// Whether or not to use a rate limiter when loading instances
1334+ pub static INSTANCE_LOADER_USE_RATE_LIMITER : LazyLock < bool > =
1335+ LazyLock :: new ( || env_config ( "INSTANCE_LOADER_USE_RATE_LIMITER" , true ) ) ;
1336+
1337+ /// The number of instances that can be loaded per second when the rate limiter
1338+ /// is in use. The default value of 4 means that for a Conductor with 5000
1339+ /// instances, we'd take about 20 minutes to load all instances with infinite
1340+ /// concurrency.
1341+ pub static INSTANCE_LOADER_INSTANCES_PER_SECOND : LazyLock < NonZeroU32 > = LazyLock :: new ( || {
1342+ env_config (
1343+ "INSTANCE_LOADER_INSTANCES_PER_SECOND" ,
1344+ NonZeroU32 :: new ( 4 ) . unwrap ( ) ,
1345+ )
1346+ } ) ;
1347+
13331348/// The max number of storage files that can be fetched concurrently during
13341349/// export. Concurrency is also limited by `EXPORT_MAX_INFLIGHT_PREFETCH_BYTES`.
13351350pub static EXPORT_STORAGE_GET_CONCURRENCY : LazyLock < usize > =
You can’t perform that action at this time.
0 commit comments