-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
investigate why cli is so slow #15373
Comments
I am trying to run influxdb on raspberrypi and I have some ridiculously slow cli client startup, it might be related. The http interface is fast and snappy, but just calling
Establishing socket itself is not a problem
I wonder if we have problem with similar step that is more prominent on my low-resource machine.
We seem to use different versions, but general behavior seems the same.
|
So seems like the issue comes from a blank import of which will also blank import by removing query.go, repl.go, the cli can be reduced to 7-12 miliseconds $ influx -h|gnomon
0.0049s Influx Client
0.0004s
0.0001s Usage:
0.0001s influx [flags]
0.0000s influx [command]
0.0001s
0.0001s Available Commands:
0.0000s auth Authorization management commands
0.0001s bucket Bucket management commands
0.0001s delete Delete points from influxDB
0.0001s help Help about any command
0.0000s org Organization management commands
0.0000s ping Check the InfluxDB /health endpoint
0.0001s setup Setup instance with initial user, org, bucket
0.0001s task Task management commands
0.0000s user User management commands
0.0000s write Write points to InfluxDB
0.0000s
0.0000s Flags:
0.0000s -h, --help Help for the influx command
0.0000s --host string HTTP address of Influx (default "http://loc
0.0000s --local Run commands locally against the filesystem
0.0001s -t, --token string API token to be used throughout client call
s
0.0000s
0.0016s Use "influx [command] --help" for more information about a command
.
0.0003s
Total 0.0097s compare to
I think query is simple to fix by sending a tcp request to influxd. For repl, @nathanielc, @jsternberg, what do you think about making a web socket inside influxd? cc @russorat |
nice, close it |
Did this fix make it into v1.7.10? I'm still seeing an extremely slow CLI on v1.7.10 - 30 seconds just to display the version:
|
@dandv thanks for commenting here. I don't see any indication that this was backported. Let me try to track this down. |
with the influxd locally.
compare the cli time and api time. have 2 orgs
curl http://localhost:9999/api/v2/orgs took 0.02 secs.
run
got
almost all command took at least 2.5 sec.
exp:
influx -h|gnomon
The text was updated successfully, but these errors were encountered: