Create/Plan Instance Type
This quckstart shows how to crete an instance type and an advice of planning them according to a real circumstance (CPUs/MEM/GPUs).
Advice of Plan
In a real circumstance, we have to manage/arrange resources of CPUs, Memory or even GPUs. For the sake of resources utilization, via instance types, we can plan our resources for different groups/projects according to different demands for computing resources. A good arrangement of instance types can not only utilize resources efficient, but also can prevent an instance from occupying massive resources.
Since PrimeHub cluster uses certain of resources for operating the cluster properly, we are not able to allocate all of resources for running instances. It is recommended to leave 10%-15% resources of CPU/MEM for the cluster itself.
Projects require various computing resources. We can start arranging/planning our instance types for different scales of resources allocations (such as small/medium/large), users can choose the appropriate scale of instance type for projects for the allocation of requested resources. We, of course, can create a specific instance type for a specific project as well.
If you are new to plan instance types, here is an advice.
Let's assume a circumstance of CPU 40 / MEM 512GB / GPU 4:
CPU-Only instance type
| Scale | CPU | Mem | % of Total | 
|---|---|---|---|
| Small | 4 | 128G | 10-25 | 
| Medium | 16 | 256G | 40-60 | 
| Large | 32 | 420G | 80+ | 
GPU-Equipped instance type
| Scale | CPU | Mem | GPU | % of Total | 
|---|---|---|---|---|
| Small | 4 | 128G | 1 | 10-25 | 
| Medium | 16 | 256G | 2 | 40-60 | 
| Large | 32 | 420G | 4 | 80+ | 
Add Instance Type
According to our plan, let's create instance types for users, here we will create a GPU-equipped instance type of medium-scale.
- Login in - PrimeHubas an administrator.
- Goes to - Admin Dashboardfrom the portal and- Instance Typesmanagement.
- Fill in - Namewith medium-with-gpu.
- Fill in - CPU Limitwith 16 and fill in- Memory Limitwith 256GB.
- Fill in - GPU Limitwith 2.
- (Optional) - Overcommitting, if required, enabled it and fill in- CPU Requestwith 14 and- Memory Requestwith 200GB. More detail [Overcommitting].
- Click - edit groupsand select groups which can have this instance type.
- Click - Confirmto save it.
We have created the instance type, medium-with-gpu, which requests medium-scale resources allocation for specified groups. Users who belong to these groups are able to select it for launching a jupyterhub.
