Skip to content

Commit 91c2273

Browse files
Set default database threads to 13
1 parent d6f019c commit 91c2273

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

crates/standalone/src/subcommands/start.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ pub fn cli() -> clap::Command {
9494
.arg(
9595
Arg::new("dedicated_database_cores")
9696
.long("dedicated-database-cores")
97+
.default_value("13")
9798
.value_parser(clap::value_parser!(usize))
9899
.help(
99100
"Pin exactly this many database executors to dedicated cores. On Linux, Tokio, Rayon, and blocking threads are restricted to the remaining cores while the OS schedules them within that set.",

tools/tpcc-runner/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ cargo run --release -p spacetimedb-cli -- start --listen-addr 127.0.0.1:3000
5858

5959
For standalone multi-database runs, it is usually worth setting
6060
`--dedicated-database-cores` to the number of databases so each database gets
61-
its own dedicated database executor core. For example, with `12` databases:
61+
its own dedicated database executor core. The current standalone default is
62+
`13`, so override it when your database count differs. For example, with `12`
63+
databases:
6264

6365
```bash
6466
cargo run --release -p spacetimedb-cli -- start \

0 commit comments

Comments
 (0)