-
Notifications
You must be signed in to change notification settings - Fork 172
docs: Configuring the number of workspaces #2004
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
Merged
themr0c
merged 11 commits into
eclipse-che:master
from
tstastna:i2854-defining-the-number-of-workspaces
Jun 1, 2021
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
7255451
Running multiple workspaces simultaneously first draft
tstastna 7cedd36
Updating the Operator procedure and doing small fixes
tstastna 643d65e
Fix context in assembly
tstastna d0757b2
Rename the files and improve the content
tstastna c7d2c68
Improve language, reorganize content
tstastna f705058
Improve language
tstastna cba023c
Merge branch 'master' into i2854-defining-the-number-of-workspaces
themr0c 13c59fe
Merge branch 'master' into i2854-defining-the-number-of-workspaces
themr0c a353123
Update modules/installation-guide/partials/proc_configuring-the-numbe…
skabashnyuk 9dde6f4
Update modules/installation-guide/partials/proc_configuring-the-numbe…
skabashnyuk 101f3c1
Merge branch 'master' into i2854-defining-the-number-of-workspaces
themr0c File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
...stallation-guide/pages/configuring-the-number-of-workspaces-a-user-can-run.adoc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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[] |
8 changes: 0 additions & 8 deletions
8
modules/installation-guide/pages/running-more-than-one-workspace-at-a-time.adoc
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...uide/partials/assembly_configuring-the-number-of-workspaces-a-user-can-run.adoc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
...s/proc_configuring-the-number-of-workspaces-a-user-can-run-using-configmap.adoc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
+ | ||
-- | ||
skabashnyuk marked this conversation as resolved.
Show resolved
Hide resolved
|
||
** `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> | ||
---- |
40 changes: 40 additions & 0 deletions
40
...roc_configuring-the-number-of-workspaces-a-user-can-run-using-the-operator.adoc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
+ | ||
skabashnyuk marked this conversation as resolved.
Show resolved
Hide resolved
|
||
-- | ||
** `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>" | ||
---- | ||
==== |
43 changes: 0 additions & 43 deletions
43
...installation-guide/partials/proc_running-more-than-one-workspace-at-a-time.adoc
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.