diff --git a/Cargo.lock b/Cargo.lock index 82db1a1bdf..7fa865195b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1531,6 +1531,7 @@ dependencies = [ "mem_qe", "metrics", "mutable_buffer", + "num_cpus", "object_store", "observability_deps", "once_cell", diff --git a/Cargo.toml b/Cargo.toml index ea9d49144a..904749f4e9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -61,6 +61,7 @@ logfmt = { path = "logfmt" } mem_qe = { path = "mem_qe" } metrics = { path = "metrics" } mutable_buffer = { path = "mutable_buffer" } +num_cpus = "1.13.0" object_store = { path = "object_store" } observability_deps = { path = "observability_deps" } packers = { path = "packers" } diff --git a/src/influxdb_ioxd.rs b/src/influxdb_ioxd.rs index 8953b78eff..9856b73a35 100644 --- a/src/influxdb_ioxd.rs +++ b/src/influxdb_ioxd.rs @@ -99,7 +99,8 @@ async fn wait_for_signal() { /// command line arguments, if any. pub async fn main(config: Config) -> Result<()> { let git_hash = option_env!("GIT_HASH").unwrap_or("UNKNOWN"); - info!(git_hash, "InfluxDB IOx server starting"); + let num_cpus = num_cpus::get(); + info!(git_hash, num_cpus, "InfluxDB IOx server starting"); // Install custom panic handler and forget about it. //