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

[local-preview] Reduce storage requirements #12761

Merged
merged 1 commit into from
Sep 13, 2022
Merged

Conversation

Pothulapati
Copy link
Contributor

@Pothulapati Pothulapati commented Sep 8, 2022

Description

This PR reduces the storage requests across PVC's, control-plane components
and workspaces storage.

Signed-off-by: Tarun Pothulapati [email protected]

Related Issue(s)

Part of #11303

How to test

Run

docker run -p 443:443 --privileged --name gitpod --rm -it  --mount type=volume,source=gitpod,destination=/var/gitpod eu.gcr.io/gitpod-core-dev/build/local-preview:tar-lp-lower-storage.2

Release Notes

[local-preview] Reduce storage requirements

Documentation

Werft options:

  • /werft with-preview

This PR reduces the storage requests across PVC's and workspaces

Signed-off-by: Tarun Pothulapati <[email protected]>
@@ -181,6 +181,9 @@ yq e -i '.customCACert.kind = "secret"' config.yaml
yq e -i '.observability.logLevel = "debug"' config.yaml
yq e -i '.workspace.runtime.containerdSocket = "/run/k3s/containerd/containerd.sock"' config.yaml
yq e -i '.workspace.runtime.containerdRuntimeDir = "/var/lib/rancher/k3s/agent/containerd/io.containerd.runtime.v2.task/k8s.io/"' config.yaml
yq e -i '.workspace.pvc.size = "10Gi"' config.yaml
yq e -i '.workspace.resources.requests.memory = "500Mi"' config.yaml
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is this too less? I've opened a couple of workspaces and got a good moving around experience in the browser but I'm sure it could be a bottleneck if the user tries to do more i.e run things, etc.

cc: @corneliusludmann

Copy link
Contributor

Choose a reason for hiding this comment

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

Since we're dealing with memory requests and not limits this should be fine; it's unlikely that a user will be running that many workspaces and will be totally saturating memory. LGTM!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds right!

@adrienthebo
Copy link
Contributor

@Pothulapati is this still being held?

@roboquat roboquat merged commit c8eedd0 into main Sep 13, 2022
@roboquat roboquat deleted the tar/lp-lower-storage branch September 13, 2022 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note size/S team: delivery Issue belongs to the self-hosted team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants