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

Slow firewall list command #303

Closed
zulh-civo opened this issue Mar 2, 2023 · 2 comments
Closed

Slow firewall list command #303

zulh-civo opened this issue Mar 2, 2023 · 2 comments

Comments

@zulh-civo
Copy link
Member

When I sent curl to list all firewalls (docs), the result was fast. But when I did civo firewall ls, it's very slow. I'm not entirely sure what's causing this and whether this affect others too or just me. Can someone from CLI team check?

Version

$ civo version
Civo CLI v1.0.48

STAGING

1.9 seconds vs 1 minute 55 seconds

$ time curl --silent --location --request GET 'https://<staging-host>/v2/firewalls?region=STAGING' \
--header 'Authorization: Bearer <redacted>'
...
curl --silent --location --request GET  --header   0.02s user 0.01s system 1% cpu 1.964 total

$ time civo firewall ls
...
civo firewall ls  0.34s user 0.22s system 0% cpu 1:55.26 total

LON1

4.4 seconds vs 5 minutes 47 seconds

$ time curl --silent --location --request GET 'https://<production-host>/v2/firewalls?region=LON1' \
--header 'Authorization: Bearer <redacted>'
...
curl --silent --location --request GET  --header   0.03s user 0.02s system 0% cpu 4.400 total

$ time civo firewall ls
...
civo firewall ls  0.38s user 0.24s system 0% cpu 5:47.76 total
@RealHarshThakur
Copy link
Member

This is a CLI issue. API latencies are within our SLI

@haardikdharma10
Copy link
Contributor

This should be fixed with the above PR^
Closing.

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

3 participants