-
Notifications
You must be signed in to change notification settings - Fork 3.9k
roachprod: reduce start-up lag #137916
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
roachprod: reduce start-up lag #137916
Conversation
b2d78c1
to
9cc858a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, we're under the Doherty threshold again with this!
StaticCheck is unhappy with:
|
The update check takes >800ms where I am. `roachprod` is slow enough as is, so allow folks to opt out and also opt out automatically in cases where `roachprod update` doesn't work in the first place (osx). Epic: none Release note: None
It takes like 400ms.
Azure in particular takes a long time - sometimes well north of 1s.
TFTR! Fixed the lint. @herkolategan if your team wants to socialize anything about these env vars, please go ahead... after all, so far the only person they're going to benefit is yours truly. bors r+ |
👎 Rejected by code reviews |
bors r+ |
On my machine (which is in Europe), this brings
time roachprod --help
from1.56s
down to to0.06s
under the following env vars:Under these env vars, my roachprod
aws --version
on each start (python, ~400ms)A better way (but one outside of my purview) for most of these would be to add caching for each of these and so to avoid the cost in the common case.
Azure is an exception, as the (wall-clock) profile below shows we're spending most of our time waiting for
GetTokenFromCLIWithParams
to return. It's not clear how to optimize this. (The AWS portion of the flamegraph isaws --version
).Epic: none