You can assign configured plans to your registered users to better control the resources allowed under your license.
- To enable plan configuration, set the
truein one of the following files:
Kubernetes installation: user_config.yaml
AWS installation: datalore.env
- Configure plans in the plans_config.yaml file. When adding or configuring a plan, specify the following parameters:
Unique plan ID. Used when assigning plans to users.
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.
Monthly instance quota. To specify an instance, use the
instanceTypeIdvalue 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,
PT10Hindicates 10 hours, and
P2Dindicates 2 days.
Values can be combined:
P2DT3H4Mindicates 2 days, 3 hours, and 4 minutes.
If an instance is not specified, it cannot be used in the respective plan.
Disk usage limit in the persistent volume (for all notebooks).
Maximum number of instances running at the same time.
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.
Create two instances in agents_config.yaml, where one has access to a GPU machine and the other does not. Follow the template provided in the file.
- In the plans_config.yaml file, create two plans:
instanceDurationQuotaMapparameters specifying quotas for both instances
instanceDurationQuotaMapparameter 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.
In Datalore, click the avatar icon in the upper-right corner.
Select Admin panel.
Use the ID or Email filter field to find the user.
In the user's record, click the field under Plan to expand the list.
Select the plan you want to assign to the specified user.