Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

fleetctl: optimize status command #1341

Merged
merged 1 commit into from
Sep 3, 2015

Conversation

royvandewater
Copy link

Use the Unit API instead of Units API to speed up lookups on
environments with a large number of distinct services.

Fixes #1340

@royvandewater
Copy link
Author

When time fleetctl status <service> is run against 2.5k services without this patch:

real    4m24.150s
user    0m0.475s
sys     0m0.155s

And with this patch:

real    0m2.344s
user    0m0.146s
sys     0m0.020s

@royvandewater
Copy link
Author

Whoops, failed the formatter, gimme a sec

Use the Unit API instead of Units API to speed up lookups on
environments with a large number of distinct services.

Fixes coreos#1340
@royvandewater
Copy link
Author

I think this build failure may not be me, looks like it's the same one that's failing in master.

@mischief
Copy link
Contributor

mischief commented Sep 3, 2015

@royvandewater it is a race condition in the test. it was not your fault.

@mischief mischief merged commit cd23d91 into coreos:master Sep 3, 2015
@mischief
Copy link
Contributor

mischief commented Sep 3, 2015

@royvandewater thank you.

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

Successfully merging this pull request may close these issues.

2 participants