-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[ws-daemon] Limit the number of concurrent workspace backups #10274
Conversation
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.
Can we improve the release note to specify the number of concurrent limits?
The rest /lgtm
@@ -396,6 +396,9 @@ func (s *WorkspaceService) DisposeWorkspace(ctx context.Context, req *api.Dispos | |||
return resp, nil | |||
} | |||
|
|||
// channel to limit the number of concurrent backups and uploads. | |||
var backupWorkspaceLimiter = make(chan bool, 3) |
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.
I think it would be better to make the number be able to control with config. WDYT?
Not really. That would bring the impresión that we can have any number. |
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.
LGTM
Description
The creation of workspace backups and upload to the object storage can consume
How to test
waiting time for concurrent backups to finish was XXXXX
Release Notes