Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ One PVC for all workspaces in one {platforms-namespace}

* Each workspace is in a separate {platforms-namespace}

* Only one workspace is running per {platforms-namespace} at the same time. See xref:installation-guide:running-more-than-one-workspace-at-a-time.adoc[].
* Only one workspace is running per {platforms-namespace} at the same time. See xref:installation-guide:configuring-the-number-of-workspaces-a-user-can-run.adoc[].
|*per-workspace* |

One PVC for one workspace
Expand Down
2 changes: 1 addition & 1 deletion modules/installation-guide/nav.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
** xref:configuring-namespace-strategies.adoc[]
** xref:configuring-storage-strategies.adoc[]
** xref:configuring-storage-types.adoc[]
** xref:running-more-than-one-workspace-at-a-time.adoc[]
** xref:configuring-the-number-of-workspaces-a-user-can-run.adoc[]
** xref:configuring-workspace-exposure-strategies.adoc[]
** xref:configuring-workspaces-nodeselector.adoc[]
** xref:configuring-che-hostname.adoc[]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[id="configuring-the-number-of-workspaces-a-user-can-run"]
// = Configuring the number of workspaces a user can run
:navtitle: Configuring the number of workspaces
:keywords: installation-guide, running-workspaces
:page-aliases: .:configuring-the-number-of-workspaces-a-user-can-run, .:running-more-than-one-workspace-at-a-time, running-more-than-one-workspace-at-a-time

include::partial$assembly_configuring-the-number-of-workspaces-a-user-can-run.adoc[]

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The next sections describe some specific user stories.

* xref:configuring-namespace-strategies.adoc[]

* xref:running-more-than-one-workspace-at-a-time.adoc[]
* xref:configuring-the-number-of-workspaces-a-user-can-run.adoc[]

* xref:configuring-workspaces-nodeselector.adoc[]

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
:parent-context-of-configuring-the-number-of-workspaces-a-user-can-run: {context}

[id="configuring-the-number-of-workspaces-a-user-can-run_{context}"]
= Configuring the number of workspaces a user can run

:context: configuring-the-number-of-workspaces-a-user-can-run

This article describes how to configure the number of workspaces a user can run simultaneously.

include::partial$proc_configuring-the-number-of-workspaces-a-user-can-run-using-the-operator.adoc[leveloffset=+1]

ifeval::["{project-context}" == "che"]

include::partial$proc_configuring-the-number-of-workspaces-a-user-can-run-using-configmap.adoc[leveloffset=+1]

endif::[]

:context: {parent-context-of-configuring-the-number-of-workspaces-a-user-can-run}
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ If there are several nodes, you can use the `common` strategy, but:

* The workspace PVC access mode must be reconfigured to `ReadWriteMany` (RWM), so multiple nodes can use this PVC simultaneously.

* Only one workspace in the same {orch-namespace} may be running. See xref:installation-guide:running-more-than-one-workspace-at-a-time.adoc[].
* Only one workspace in the same {orch-namespace} may be running. See xref:installation-guide:configuring-the-number-of-workspaces-a-user-can-run.adoc[].

The `common` PVC strategy is not suitable for large multi-node clusters. Therefore, it is best to use it in single-node clusters. However, in combination with the `per-workspace` {orch-namespace} strategy, the `common` PVC strategy is usable for clusters with not more than 75 nodes. The PVC used with this strategy must be large enough to accommodate all projects to prevent a situation in which one project depletes the resources of others.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ endif::[]

NOTE: The underlying environment variable that {prod-short} server uses is `CHE_INFRA_KUBERNETES_NAMESPACE_DEFAULT`.

WARNING: By default, only one workspace in the same {orch-namespace} can be running at one time. See xref:running-more-than-one-workspace-at-a-time.adoc[].
WARNING: By default, only one workspace in the same {orch-namespace} can be running at one time. See xref:configuring-the-number-of-workspaces-a-user-can-run.adoc[].

[WARNING]
====
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[id="configuring-the-number-of-workspaces-a-user-can-run-using-configmap_{context}"]
= Configuring the number of workspaces a user can run using ConfigMap

This procedure describes how to run more than one workspace simultaneously using ConfigMap.

.Prerequisites
* An instance of `{prod-short}` installed using ConfigMap.
Each new workspace creates at least one new mount point to the storage (PV), in write mode. The default `common` storage strategy in `ReadWriteOnce` access mode reuses the same PV to physically store all data from multiple volumes of all workspaces of the same user, and doesn't support multiple mount points. Therefore to increase the number of simultaneously running workspaces, the combination of PVC strategy and access mode must meet the following criteria:
+
--
** `ReadWriteMany` access mode and an arbitrary PVC strategy
** `ReadWriteOnce` access mode and `per-workspace` or `unique` PVC strategy
--
+
For more information, see xref:configuring-storage-strategies.adoc[].
* Determine the values of the following placeholders:
+
[cols="1,2"]
|===
| `_<product-namespace>_`
| The namespace of the product. The default option for `{platforms-namespace}` is `{prod-namespace}`.

| `_<number-of-workspaces>_`
| The number of workspaces a user can run simultaneously. The default value is `1`. If the value is `-1`, an unlimited number of workspaces can run per user. If it is a precise positive value, that many workspaces can run per user.
|===

.Procedure
. Configure the number of workspaces a user can run simultaneously:
+
[subs="+quotes,+attributes"]
----
$ helm upgrade che -n <product-namespace> --set \
che.limits.userWorkspacesRunCount=<number-of-workspaces>
----
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@

[id="configuring-the-number-of-workspaces-a-user-can-run-using-the-operator_{context}"]
= Configuring the number of workspaces a user can run using the Operator

This procedure describes how to run more than one workspace simultaneously using the Operator.

.Prerequisites
* An instance of `{prod-short}` installed using the Operator.
Each new workspace creates at least one new mount point to the storage (PV), in write mode. The default `common` storage strategy in `ReadWriteOnce` access mode reuses the same PV to physically store all data from multiple volumes of all workspaces of the same user, and doesn't support multiple mount points. Therefore to increase the number of simultaneously running workspaces, the combination of PVC strategy and access mode must meet the following criteria:
+
--
** `ReadWriteMany` access mode and an arbitrary PVC strategy
** `ReadWriteOnce` access mode and `per-workspace` or `unique` PVC strategy
--
+
For more information, see xref:configuring-storage-strategies.adoc[].
* Determine the value of the following placeholder:
+
[cols="1,2"]
|===
| `_<number-of-workspaces>_`
| The number of workspaces a user can run simultaneously. The default value is `1`. If the value is `-1`, an unlimited number of workspaces can run per user. If it is a precise positive value, that many workspaces can run per user.
|===

.Procedure
. In the `CheCluster` Custom Resource `server` settings, add the `+CHE_LIMITS_USER_WORKSPACES_RUN_COUNT+` property to `customCheProperties`:
+
====
[source,yaml]
----
apiVersion: org.eclipse.che/v1
kind: CheCluster
# [...]
spec:
server:
# [...]
customCheProperties:
CHE_LIMITS_USER_WORKSPACES_RUN_COUNT: "<number-of-workspaces>"
----
====

This file was deleted.