Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

influx CLI: dreadfully slow; even version command takes 1.5 s CPU time #18630

Closed
wfjm opened this issue Jun 21, 2020 · 1 comment
Closed

influx CLI: dreadfully slow; even version command takes 1.5 s CPU time #18630

wfjm opened this issue Jun 21, 2020 · 1 comment

Comments

@wfjm
Copy link

wfjm commented Jun 21, 2020

Steps to reproduce:
List the minimal actions needed to reproduce the behavior.

  1. docker run ... quay.io/influxdb/influxdb:2.0.0-beta
  2. docker exec -it influxdbv2 bash
  3. time influx version

Expected behavior:
That trivial actions are quickly performed

Actual behavior:
Every command, even a trivial one, takes 2s CPU time

time influx version
  Influx CLI 2.0.0-beta.12 (git: ff620782eb) build_date: 2020-06-21T10:17:39Z
  real    0m2.113s
  user    0m2.134s
  sys     0m0.016s

I extracted the influx program with docker cp and executed it one the same host but outside of the docker container. This gives slightly faster execution times, but still values around 1.6s:

time ./influx version
Influx CLI 2.0.0-beta.12 (git: ff620782eb) build_date: 2020-06-21T10:21:30Z
real 0m1.639s   user 0m1.671s   sys 0m0.004s

Environment info:

  • System info: Run uname -srm: Linux 5.3.0-51-generic x86_64
  • InfluxDB version: Run influxd version: Influx CLI 2.0.0-beta.12 (git: ff62078)
  • Other relevant environment details: Container runtime: docker
  • /proc/cpuinfo: Intel(R) Core(TM) i3-8109U CPU @ 3.00GHz
@mark-rushakoff
Copy link
Contributor

I’m closing this as a duplicate of #18292.

I believe we understand why this is happening, but we haven’t yet fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants