Skip to content

Commit 658704c

Browse files
committed
Use 'disabled' as the default of backend_batch_strategy
1 parent f3d05b2 commit 658704c

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

conf/server-proxy.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ slowlog_sample_rate = 1000
1212
thread_number = 2
1313

1414
backend_conn_num = 2
15-
backend_batch_strategy = "fixed"
15+
# "disabled" should be good enough for most cases.
16+
# For larger throughput with pipline enabled,
17+
# we can try "fixed" or "dynamic" for higher throughput.
18+
backend_batch_strategy = "disabled"
1619
# In bytes
1720
backend_flush_size = 1024
1821
# In nanoseconds

src/bin/server_proxy.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ fn gen_conf() -> Result<ServerProxyConfig, &'static str> {
6565
"disabled" => BatchStrategy::Disabled,
6666
"fixed" => BatchStrategy::Fixed,
6767
"dynamic" => BatchStrategy::Dynamic,
68-
_ => BatchStrategy::Fixed,
68+
_ => BatchStrategy::Disabled,
6969
})
70-
.unwrap_or_else(|_| BatchStrategy::Fixed);
70+
.unwrap_or_else(|_| BatchStrategy::Disabled);
7171
let backend_flush_size =
7272
NonZeroUsize::new(s.get::<usize>("backend_flush_size").unwrap_or(1024))
7373
.ok_or("backend_flush_size")?;

0 commit comments

Comments
 (0)