influxdata / influxdata/influxdb

CLI startup got very slow from 1.7.8 to 1.7.9

Open
#16,181 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
Rust
Stars
31.7k
Forks
3.7k
Avg merge
13h 37m
Merged PRs (30d)
8

Description

I tried this for amd64 and armhf builds. The _influx_ command responded in 1.5.5 in under one second after its startup. But it seems it to get slower and slower each release. From 1.7.8 to 1.7.9 it made a big step in the wrong direction. Showing the version information, or connect to the database makes no difference. Once connected to the database there are no delays. But running one command for example from shell scripts makes no longer sense if the command is passed after a half minute later to the database.

Linux 4.9.0-11-amd64 x86_64
(https://dl.influxdata.com/influxdb/releases/influxdb-1.7.8_linux_amd64.tar.gz)
$ time ./influxdb-1.7.8-1/usr/bin/influx -version >/dev/null
real 0m6.093s
user 0m8.732s
sys 0m0.324s

https://dl.influxdata.com/influxdb/releases/influxdb-1.7.9_linux_amd64.tar.gz
$ time ./influxdb-1.7.9-1/usr/bin/influx -version >/dev/null
real 0m27.328s
user 0m39.312s
sys 0m0.672s

Best Regards,
Matthias

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the provided `influx -version` timings on the 1.7.8 and 1.7.9 Linux builds, then profile startup before database connection. Compare the startup paths between those releases and verify that the command completes without the reported delay while preserving version output and database-command behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux
Domain
cli, databases, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.