Merge pull request #1552 from influxdata/jemalloc-config

feat: log jemalloc build conf
pull/24376/head
kodiakhq[bot] 2021-05-25 08:38:09 +00:00 committed by GitHub
commit 7f4b181c67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -100,7 +100,14 @@ async fn wait_for_signal() {
pub async fn main(config: Config) -> Result<()> {
let git_hash = option_env!("GIT_HASH").unwrap_or("UNKNOWN");
let num_cpus = num_cpus::get();
info!(git_hash, num_cpus, "InfluxDB IOx server starting");
let build_malloc_conf = tikv_jemalloc_ctl::config::malloc_conf::mib()
.unwrap()
.read()
.unwrap();
info!(
git_hash,
num_cpus, build_malloc_conf, "InfluxDB IOx server starting"
);
// Install custom panic handler and forget about it.
//