Skip to content

Commit dc00685

Browse files
authored
perf(router): Increase inbound/outbound router cap. (#203)
In both server and client case, the default value of MAX_CONCURRENT_STREAMS is `u32::MAX`. However, we currently cap the inbound and outbound router capacity limits to 100. This change increases the capacity of outbound to 10_000. This will close linkerd/linkerd2#2395 and could possibly address the issue in linkerd/linkerd2#2363. Signed-off-by: Kevin Leimkuhler <kevinl@buoyant.io>
1 parent 7e55196 commit dc00685

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ const DEFAULT_RESOLV_CONF: &str = "/etc/resolv.conf";
300300
/// It's assumed that a typical proxy can serve inbound traffic for up to 100 pod-local
301301
/// HTTP services and may communicate with up to 10K external HTTP domains.
302302
const DEFAULT_INBOUND_ROUTER_CAPACITY: usize = 100;
303-
const DEFAULT_OUTBOUND_ROUTER_CAPACITY: usize = 100;
303+
const DEFAULT_OUTBOUND_ROUTER_CAPACITY: usize = 10000;
304304

305305
const DEFAULT_INBOUND_ROUTER_MAX_IDLE_AGE: Duration = Duration::from_secs(60);
306306
const DEFAULT_OUTBOUND_ROUTER_MAX_IDLE_AGE: Duration = Duration::from_secs(60);

0 commit comments

Comments
 (0)