- Notifications
You must be signed in to change notification settings - Fork1k
feat(scaletest): add runner for thundering herd autostart#19998
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
ethanndickson commentedSep 29, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
c50b755
to3a82249
Compare3a82249
tob3d9c42
Comparec50e86c
to4aca852
Compareb3d9c42
toe78cebd
CompareUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
4aca852
to604e76f
Comparee78cebd
to69328a0
Compare604e76f
toec417de
Compare69328a0
to1cbdb31
Compareb63a2e0
to46531e8
Compareclient := coderdtest.New(t, &coderdtest.Options{ | ||
IncludeProvisionerDaemon: true, | ||
AutobuildTicker: time.NewTicker(time.Second * 1).C, |
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.
This is what we do incoder server
, but with a default of 1m.
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
46531e8
to3a57c5f
CompareUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
d784291
to02eb455
Comparef84a789
intomainUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Relates tocoder/internal#911
This PR adds a scaletest runner that simulates a user with a workspace configured to autostart at a specific time.
An instance of this autostart runner does the following:
/api/v2/workspaces/<ws-id>/watch
to wait for build completions throughout the run.SetupBarrier
WaitGroup
) to also have a stopped workspace.time.Now().Add(cfg.AutoStartDelay)
pending
status, and thenrunning
.Exposes four prometheus metrics:
autostart_job_creation_latency_seconds
- HistogramVec. Labels = {username, workspace_name}autostart_job_acquired_latency_seconds
- HistogramVec. Labels = {username, workspace_name}autostart_total_latency_seconds
-HistogramVec
. Labels ={username, workspace_name}
.autostart_errors_total
-CounterVec
. Labels ={username, action}
.