-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure users can run more than one workspace (#1628)
* Ensure users can run more than one workspace Signed-off-by: Anatolii Bazko <abazko@redhat.com> * Update modules/installation-guide/partials/proc_configuring-namespace-strategies.adoc Co-authored-by: Mario Loriedo <mario.loriedo@gmail.com> * Add procedure to run several workspaces at a time Signed-off-by: Anatolii Bazko <abazko@redhat.com> * Review Signed-off-by: Michal Maléř <mmaler@redhat.com> * fix Signed-off-by: Michal Maléř <mmaler@redhat.com> * Fix message Signed-off-by: Anatolii Bazko <abazko@redhat.com> * fix2 Signed-off-by: Michal Maléř <mmaler@redhat.com> * fix3 Signed-off-by: Michal Maléř <mmaler@redhat.com> * Apply suggestions from code review Co-authored-by: Robert Krátký <rkratky@redhat.com> * renaming the file name Signed-off-by: Michal Maléř <mmaler@redhat.com> Co-authored-by: Mario Loriedo <mario.loriedo@gmail.com> Co-authored-by: Michal Maléř <mmaler@redhat.com> Co-authored-by: Michal Maléř <48474054+MichalMaler@users.noreply.github.com> Co-authored-by: Robert Krátký <rkratky@redhat.com>
- Loading branch information
1 parent
378ccc1
commit e74ac41
Showing
7 changed files
with
67 additions
and
27 deletions.
There are no files selected for viewing
This file contains 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 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 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
8 changes: 8 additions & 0 deletions
8
modules/installation-guide/pages/running-more-than-one-workspace-at-a-time.adoc
This file contains 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,8 @@ | ||
[id="running-more-than-one-workspace-at-a-time"] | ||
// = Running more than one workspace at a time | ||
:navtitle: Running more than one workspace at a time | ||
:keywords: installation-guide, running-workspaces | ||
:page-aliases: .:running-more-than-one-workspace-at-a-time | ||
|
||
include::partial$proc_running-more-than-one-workspace-at-a-time.adoc[] | ||
|
This file contains 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 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
45 changes: 45 additions & 0 deletions
45
...installation-guide/partials/proc_running-more-than-one-workspace-at-a-time.adoc
This file contains 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,45 @@ | ||
// Module included in the following assemblies: | ||
// | ||
// advanced-configuration | ||
|
||
[id="running-more-than-one-workspace-at-a-time_{context}"] | ||
= Running more than one workspace at a time | ||
|
||
This procedure describes how to run more than one workspace simultaneously. This makes it possible for multiple workspace contexts per user to run in parallel. | ||
|
||
.Prerequisites | ||
|
||
* The `{platforms-cli}` tool is available. | ||
* An instance of {prod-short} running in {platforms-name}. | ||
+ | ||
[NOTE] | ||
==== | ||
The following commands use the default {platforms-namespace}, `{prod-namespace}`, as a user's example for the `-n` option. | ||
==== | ||
|
||
.Procedure | ||
|
||
. Change the default limit of `1` to `-1` to allow an unlimited number of concurrent workspaces per user: | ||
|
||
ifeval::["{project-context}" == "che"] | ||
* For Helm Chart deployments: | ||
+ | ||
[subs="+quotes,+attributes"] | ||
---- | ||
$ helm upgrade che -n {prod-namespace} --set global.workspace.number=-1 | ||
---- | ||
* For Operator deployments: | ||
+ | ||
endif::[] | ||
[subs="+quotes,+attributes"] | ||
---- | ||
$ {orch-cli} patch checluster {prod-checluster} -n {prod-namespace} --type merge \ | ||
-p '{ "spec": { "server": {"customCheProperties": {"CHE_LIMITS_USER_WORKSPACE_RUN_COUNT": "-1"} } }}' | ||
---- | ||
|
||
. Set the `per-workspace` or `unique` PVC strategy. See xref:administration-guide:che-workspaces-architecture.adoc#configuring-a-{prod-id-short}-workspace-with-a-persistent-volume-strategy_{prod-id-short}-workspace-configuration[Configuring a {prod-short} workspace with a persistent volume strategy]. | ||
+ | ||
[NOTE] | ||
==== | ||
When using the _common PVC_ strategy, configure the persistent volumes to use the `ReadWriteMany` access mode. That way, any of the user's concurrent workspaces can read from and write to the common PVC. | ||
==== |