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

[ws-daemon] Limit the number of concurrent workspace backups #10274

Merged
merged 1 commit into from
May 26, 2022

Conversation

aledbf
Copy link
Member

@aledbf aledbf commented May 26, 2022

Description

The creation of workspace backups and upload to the object storage can consume

How to test

  • Start multiple workspaces
  • Stop all the workspaces
  • Check ws-daemon logs for messages related to waiting time for concurrent backups to finish was XXXXX

Release Notes

[ws-daemon] Limit the number of concurrent workspace backups to three to avoid excessive memory utilization

@aledbf aledbf marked this pull request as ready for review May 26, 2022 09:18
@aledbf aledbf requested a review from a team May 26, 2022 09:18
@github-actions github-actions bot added the team: workspace Issue belongs to the Workspace team label May 26, 2022
Copy link
Contributor

@jenting jenting left a 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)
Copy link
Contributor

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?

@aledbf
Copy link
Member Author

aledbf commented May 26, 2022

Not really. That would bring the impresión that we can have any number.

Copy link
Contributor

@jenting jenting left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@roboquat roboquat merged commit 2dbef7a into main May 26, 2022
@roboquat roboquat deleted the aledbf/backup branch May 26, 2022 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note size/S team: workspace Issue belongs to the Workspace team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants