Configuring the number of workspaces that a user can run

This procedure describes how to configure Che to run more than one workspace simultaneously. By running multiple workspaces, users can use different work environments simultaneously.

Prerequisites
  • You have installed an instance of Che by using the Operator.

  • The combination of storage strategy and access mode matches one of the following cases:

    Table 1. Multiple workspaces compatibility list
    Storage strategy common (default) per-workspace unique

    ReadWriteMany access mode

    yes

    yes

    yes

    ReadWriteOnce access mode

    no

    yes

    yes

  • You have determined the value of the <number-of-workspaces> placeholder.

    If the value is -1, an unlimited number of workspaces can run per user. If the value is a positive integer, users can run as many workspaces as the value of the integer. The default value is 1.

Procedure
  • In the CheCluster Custom Resource server settings, configure the number of workspaces that a user can run by adding the CHE_LIMITS_USER_WORKSPACES_RUN_COUNT property to customCheProperties:

    apiVersion: org.eclipse.che/v1
    kind: CheCluster
    # ...
    spec:
      server:
        # ...
        customCheProperties:
          CHE_LIMITS_USER_WORKSPACES_RUN_COUNT: "<number-of-workspaces>"