feat: Report num_cpus seen by IOx on startup (#1484)

pull/24376/head
Andrew Lamb 2021-05-12 09:42:16 -04:00 committed by GitHub
parent 0b1ef52481
commit ebea554e5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

1
Cargo.lock generated
View File

@ -1531,6 +1531,7 @@ dependencies = [
"mem_qe", "mem_qe",
"metrics", "metrics",
"mutable_buffer", "mutable_buffer",
"num_cpus",
"object_store", "object_store",
"observability_deps", "observability_deps",
"once_cell", "once_cell",

View File

@ -61,6 +61,7 @@ logfmt = { path = "logfmt" }
mem_qe = { path = "mem_qe" } mem_qe = { path = "mem_qe" }
metrics = { path = "metrics" } metrics = { path = "metrics" }
mutable_buffer = { path = "mutable_buffer" } mutable_buffer = { path = "mutable_buffer" }
num_cpus = "1.13.0"
object_store = { path = "object_store" } object_store = { path = "object_store" }
observability_deps = { path = "observability_deps" } observability_deps = { path = "observability_deps" }
packers = { path = "packers" } packers = { path = "packers" }

View File

@ -99,7 +99,8 @@ async fn wait_for_signal() {
/// command line arguments, if any. /// command line arguments, if any.
pub async fn main(config: Config) -> Result<()> { pub async fn main(config: Config) -> Result<()> {
let git_hash = option_env!("GIT_HASH").unwrap_or("UNKNOWN"); 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. // Install custom panic handler and forget about it.
// //