Skip to content

Commit b4d9d03

Browse files
authored
Increase the default buffer capacity to 100K (#752)
We've received reports that the default in-flight limit may be too small. Now that the proxy can consume multiple cores, it seems wise to increase the default from 10K to 100K. This bound should prevent high-traffic workloads from hitting the in-flight limit in all but extreme cases, while still protecting the proxy against infinite growth.
1 parent 42a7435 commit b4d9d03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

linkerd/app/src/env.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ const DEFAULT_RESOLV_CONF: &str = "/etc/resolv.conf";
189189
const DEFAULT_INITIAL_STREAM_WINDOW_SIZE: u32 = 65_535; // Protocol default
190190
const DEFAULT_INITIAL_CONNECTION_WINDOW_SIZE: u32 = 1048576; // 1MB ~ 16 streams at capacity
191191

192-
// 10_000 is arbitrarily chosen for now...
193-
const DEFAULT_BUFFER_CAPACITY: usize = 10_000;
192+
// 100_000 is arbitrarily chosen for now...
193+
const DEFAULT_BUFFER_CAPACITY: usize = 100_000;
194194

195195
// This configuration limits the amount of time Linkerd retains cached clients &
196196
// connections.

0 commit comments

Comments
 (0)