-
Notifications
You must be signed in to change notification settings - Fork 60
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
Add a devworkspace pruner to the DevWorkspace Operator #1376
Comments
Hello @cgruver how would you like to see this configurable within the DevWorkspace operator?
WDYT? |
@dkwon17 LGTM |
@dkwon17 Updated the ConfigMap embedded script to better identify namespaces managed by devworkspace operator
|
Thank you @cgruver, To provide an update on this issue, instead of creating a configmap/cronjob resource (draft PR: #1397), we are also investigating using the resource pruner described in the operator-sdk best practices section: https://sdk.operatorframework.io/docs/best-practices/resource-pruning/ @akurinnoy provided a new draft PR: #1402 |
I propose that this feature to be only configurable via the global DevWorkspace Operator config (DWOC) for the time being:
Assuming that there can only be one pruner/cronjob running at a time, having the pruner be configurable from only one DWOC makes the most sense IMO. IMHO it should be the global DWOC that should determine the DevWorkspace operator pruner for the cluster. The reason I bring this up is that in the case of Eclipse Che, there is a Che-owned DWOC. Today, it's not straight forward from DWO's perspective to identify what DevWorkspaces are for Eclipse Che and what are not. As a result, it's not straight forward to define a pruner in the Che-owned DWOC that will target only Eclipse Che DevWorkspaces. Other DevWorkspaces in the cluster may exist in the cluster, from for example, devworkspaces created by the Web Terminal operator. |
Description
A large scale deployment of Eclipse Che / OpenShift Dev Spaces can result in a lot of stale DevWorkspace objects that are really no longer necessary but continue to occupy space in
etcd
.Over time the performance of
etcd
can be impacted resulting in the need to scale up the control plane nodes with more CPU/RAM.Additional context
Here is a prototype for implementing a devworkspace pruner based on the last time that a workspace was started:
The text was updated successfully, but these errors were encountered: