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: Apply the xfs limit in stages #10395

Merged
merged 2 commits into from
Jun 1, 2022
Merged

ws-daemon: Apply the xfs limit in stages #10395

merged 2 commits into from
Jun 1, 2022

Conversation

utam0k
Copy link
Contributor

@utam0k utam0k commented Jun 1, 2022

Description

Apply the xfs limit in stages because ws-daemon uses some disk space at startup

Related Issue(s)

Fixes #10329

How to test

  1. Open the workspace
  2. Full /wokspace(Recommend use docker) e.g. dd if=/dev/zero of=zero.dat bs=1G count=1
  3. Stop the workspace
  4. Reopen the workspace

Release Notes

ws-daemon: Apply the xfs limit in stages.

Documentation

No

@utam0k utam0k requested a review from a team June 1, 2022 05:47
@github-actions github-actions bot added the team: workspace Issue belongs to the Workspace team label Jun 1, 2022
@roboquat roboquat merged commit 0ace3aa into main Jun 1, 2022
@roboquat roboquat deleted the to/xfs-limit branch June 1, 2022 08:30
_, err = xfs.exec(xfs.Dir, fmt.Sprintf("limit -p bsoft=%d bhard=%d %d", quota, quota, prjID))

if isHard {
_, err = xfs.exec(xfs.Dir, fmt.Sprintf("limit -p bhard=%d %d", quota, prjID))
Copy link
Contributor

Choose a reason for hiding this comment

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

@utam0k prior to making this change, were you able to add content to /workspace and exceed the quota?

Also, if the quota is exceeded in the regular workspace, what happens now to users if they try writing more content to /workspace, but at are the hard limit?

@roboquat roboquat added deployed: workspace Workspace team change is running in production deployed Change is completely running in production labels Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed: workspace Workspace team change is running in production deployed Change is completely running in production release-note size/M team: workspace Issue belongs to the Workspace team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[content-service] workspace backup cannot be restored because it's larger than the workspace
4 participants