Datalore Help

Configure plans

You can assign configured plans to your registered users to better control the resources allowed under your license. The procedure below covers both Kustomize and Helm installations.

  1. To enable plan configuration, set the ENABLE_PLANS parameter to true in:

    • Kustomize installation: user_secret_env.sh file

    • Helm installation: dataloreEnv variable

  2. Configure plans in:

    • Kustomize installation: plans_config.yaml file

    • Helm installation: plansConfig variable

    When adding or configuring a plan, specify the following parameters:

    planId

    Unique plan ID. Used when assigning plans to users.

    default

    Specifies if this is the default plan. Make sure one of your plans has this parameter set to true. This plan is assigned automatically when no other plan or a plan with an incorrect ID is assigned.

    instanceDurationQuotaMap

    Monthly instance quota. To specify an instance, use the instanceTypeId value from the agents_config.yaml file. Follow the pattern PdDThHmMs.sS, where:

    • d - number of days

    • h - number of hours

    • m - number of seconds

    • s.s - number of seconds

    If a value is equal to 0, it can be skipped. For example, PT10H indicates 10 hours, and P2D indicates 2 days.

    Values can be combined: P2DT3H4M indicates 2 days, 3 hours, and 4 minutes.

    If an instance is not specified, it cannot be used in the respective plan.

    diskUsageLimit

    Disk usage limit in the persistent volume (for all notebooks).

    numRunningInstancesLimit

    Maximum number of instances running at the same time.

    parallelInstancesQuota

    Time limit for concurrently running instances.

Control GPU machine resources using different plans

You can control GPU machine resources by assigning different plans to different users.

  1. Create two instances in:

    • Kustomize installation: agents_config.yaml file

    • Helm installation: agentsConfig variable

    Of these two instances, one has access to a GPU machine and the other does not. Follow the template provided in the file.

  2. Create two plans in:

    • Kustomize installation: plans_config.yaml file

    • Helm installation: agentsConfig variable

    These two plans are:

    • With two instanceDurationQuotaMap parameters specifying quotas for both instances

    • With one instanceDurationQuotaMap parameter referencing only the instance without access to a GPU machine.

As a result, users with the second plan can only use CPU machine resources.

Assign a plan to a user

As an admin, you can assign plans to other users.

  1. In Datalore, click the avatar icon in the upper right corner.

  2. Select Admin panel.

  3. Use the ID or Email filter field to find the user.

  4. In the user's record, click the field under Plan to expand the list.

  5. Select the plan you want to assign to the specified user.

Assigning plans to a user
Last modified: 01 March 2022