Skip to content

Commit 7c8171c

Browse files
nipunn1313Convex, Inc.
authored andcommitted
Splay lambdas even more on conductor deploy (#42203)
GitOrigin-RevId: 9f8ea8b94f678c0a6c8428cece1042ccf5c1c938
1 parent 07e45a1 commit 7c8171c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

crates/common/src/knobs.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,10 +1047,11 @@ pub static FUNRUN_INITIAL_PERMIT_TIMEOUT: LazyLock<Duration> =
10471047
/// backend/node-executor code.
10481048
///
10491049
/// AWS has a rate limit of 15/s on their APIs, so we need this to be roughly
1050-
/// large enough to be on the same scale as N/s where N is the number of
1051-
/// instances with lambdas.
1050+
/// larger than (N / 15) where N is the number of instances with lambdas.
1051+
///
1052+
/// You can check go/num-instances-with-lambdas
10521053
pub static AWS_LAMBDA_DEPLOY_SPLAY_SECONDS: LazyLock<Duration> =
1053-
LazyLock::new(|| Duration::from_secs(env_config("AWS_LAMBDA_DEPLOY_SPLAY_SECONDS", 1800)));
1054+
LazyLock::new(|| Duration::from_secs(env_config("AWS_LAMBDA_DEPLOY_SPLAY_SECONDS", 5000)));
10541055

10551056
/// The maximum number of requests to send using a single AWS Lambda client.
10561057
/// Empirical tests have shown that AWS servers allows up to 128 concurrent

0 commit comments

Comments
 (0)