Configure custom t-shirt sizes for Lumi Enterprise
AI summary
About AI summaries.
By default, Imply Lumi provides a set of predefined t-shirt sizes for virtual compute pools, grouped into instance families. If you need different sizing than the defaults, you can define custom t-shirt sizes in Terraform. When you create a custom t-shirt size, you have the option to specify the instance type, node count, and query concurrency that best match your workload requirements and performance needs.
Custom t-shirt sizes are only supported for Lumi Enterprise deployments on AWS.
Prerequisites
To configure custom t-shirt sizes, you need access to the Terraform configuration for your Lumi Enterprise deployment.
Predefined t-shirt sizes
Lumi Enterprise provides predefined t-shirt sizes in three instance families. Each instance family runs on one AWS EC2 instance family:
- Standard:
is4geninstances - Balanced:
i8geinstances - Performance:
i4iinstances
Standard is the default instance family.
Availability by region
Lumi provides predefined sizes only for instance families that your deployment's region supports.
When you run terraform plan or terraform apply, Lumi checks which instance types are available in your VPC's availability zones:
- An instance type is available only if at least two of your VPC's availability zones offer it.
- An instance family is available only if all of its instance types are available.
- If the Standard family isn't available, Lumi leaves it out of the predefined sizes, and Balanced becomes the default family.
- If the Balanced or Performance family isn't available, Terraform shows a warning. Define your sizes explicitly with custom t-shirt sizes. If
i8geisn't available, you can define Balanced sizes oni3eninstances instead. For more information, see Use i3en for the Balanced family.
Standard family sizes
The following table shows the instance type, node count, and max concurrency for each predefined size in the Standard family:
| Size | Name | Instance type | Node count | Max concurrency |
|---|---|---|---|---|
s | Small | is4gen.large | 2 | 2 |
m | Medium | is4gen.large | 4 | 2 |
l | Large | is4gen.large | 8 | 2 |
xl | X-large | is4gen.xlarge | 8 | 4 |
2xl | 2X-large | is4gen.xlarge | 16 | 4 |
3xl | 3X-large | is4gen.2xlarge | 16 | 8 |
4xl | 4X-large | is4gen.4xlarge | 16 | 14 |
5xl | 5X-large | is4gen.8xlarge | 16 | 26 |
Balanced family sizes
The following table shows the instance type, node count, and max concurrency for each predefined size in the Balanced family:
| Size | Name | Instance type | Node count | Max concurrency |
|---|---|---|---|---|
s | Small | i8ge.large | 3 | 2 |
m | Medium | i8ge.xlarge | 3 | 4 |
l | Large | i8ge.2xlarge | 3 | 8 |
xl | X-large | i8ge.3xlarge | 4 | 11 |
2xl | 2X-large | i8ge.6xlarge | 4 | 20 |
3xl | 3X-large | i8ge.6xlarge | 8 | 20 |
4xl | 4X-large | i8ge.6xlarge | 16 | 20 |
5xl | 5X-large | i8ge.6xlarge | 32 | 20 |
Performance family sizes
The following table shows the instance type, node count, and max concurrency for each predefined size in the Performance family:
| Size | Name | Instance type | Node count | Max concurrency |
|---|---|---|---|---|
s | Small | i4i.xlarge | 4 | 4 |
m | Medium | i4i.xlarge | 8 | 4 |
l | Large | i4i.2xlarge | 8 | 8 |
xl | X-large | i4i.4xlarge | 8 | 14 |
2xl | 2X-large | i4i.4xlarge | 16 | 14 |
3xl | 3X-large | i4i.8xlarge | 16 | 26 |
4xl | 4X-large | i4i.8xlarge | 32 | 26 |
5xl | 5X-large | i4i.8xlarge | 64 | 26 |
Custom t-shirt sizes
If the predefined sizes don't meet your requirements, or a predefined instance family isn't available in your region, you can create custom t-shirt sizes in Terraform.
Custom t-shirt sizes replace the predefined sizes entirely; Lumi doesn't append them to the existing list.
Include every size you want to use, including sizes from other families.
For example, if you define Balanced sizes on i3en, also include the Standard and Performance sizes you want to keep.
Create a custom size
The Lumi Terraform module declares the virtual_compute_tshirt_sizes variable.
To create custom t-shirt sizes, set its value in the Lumi module block in main.tf.
The variable takes a list of objects with the following attributes:
| Attribute | Type | Required | Description |
|---|---|---|---|
size | String | Yes | Identifier for the size, such as l. |
instance_type | String | Yes | AWS EC2 instance type for the size's nodes. |
node_count | Number | Yes | Number of nodes in each cluster. |
name | String | No | Name for the size in the Lumi UI, such as Large. |
family | String | No | Instance family that the size belongs to. |
max_concurrency | Number | No | Maximum number of queries each cluster can run at the same time. |
Each custom t-shirt size must meet the following constraints:
- Each combination of
sizeandfamilymust be unique. For example, you can define anlsize in both theis4genandi4ifamilies, but not twolsizes in the same family. instance_typemust be one of the instance types in the predefined size tables, or ani3eninstance type listed in Use i3en for the Balanced family.familymust be one ofis4gen,i8ge, ori4i.node_countmust be an integer greater than or equal to 1.max_concurrencymust be an integer greater than or equal to 1. If you don't specify a value, it defaults to 4.max_concurrencymust not exceed the max concurrency for the instance type, as shown in the predefined size tables or in Use i3en for the Balanced family. Exceeding this limit prevents the virtual compute pool from starting.
If you don't set family for a size, the Lumi UI groups it under the instance type instead of a family name.
The first family in your list becomes the default family in the Lumi UI.
Lumi uses the first entry with size set to l, or the first entry in your list if there's no such entry, to set the size of the default virtual compute pool.
The following example defines three custom sizes in the i4i family:
module "lumi" {
# ...your existing module arguments...
virtual_compute_tshirt_sizes = [
{
size = "sc"
name = "small_custom"
family = "i4i"
instance_type = "i4i.xlarge"
node_count = 2
max_concurrency = 4
},
{
size = "mc"
name = "medium_custom"
family = "i4i"
instance_type = "i4i.xlarge"
node_count = 4
max_concurrency = 4
},
{
size = "lc"
name = "large_custom"
family = "i4i"
instance_type = "i4i.xlarge"
node_count = 8
max_concurrency = 4
}
]
}
Because custom sizes replace the predefined sizes, applying this example leaves only these three sizes.
After you configure your custom t-shirt sizes, run terraform apply to apply the changes.
If your list includes instance types that your VPC's availability zones don't offer, Terraform shows a warning.
The changes propagate to the Lumi UI automatically.
New sizes appear grayed out in the Lumi UI while Lumi provisions the necessary resources.
Use i3en for the Balanced family
The Balanced family uses i8ge instances, which aren't available in all regions.
In regions where i8ge isn't available, you can define Balanced sizes on i3en instances instead.
Lumi doesn't switch to i3en automatically, so you need to define these sizes in virtual_compute_tshirt_sizes.
The following table lists the supported i3en instance types, the matching i8ge instance type for each, and their max concurrency:
i3en instance type | Matching i8ge instance type | Max concurrency |
|---|---|---|
i3en.large | i8ge.large | 2 |
i3en.xlarge | i8ge.xlarge | 4 |
i3en.2xlarge | i8ge.2xlarge | 8 |
i3en.3xlarge | i8ge.3xlarge | 11 |
i3en.6xlarge | i8ge.6xlarge | 20 |
To match the predefined Balanced sizes, use the sizes and node counts from the Balanced family sizes table, and replace each i8ge instance type with the matching i3en instance type.
To have these sizes appear as Balanced in the Lumi UI, set family to i8ge.
Modify or remove a custom size
To modify or remove a custom t-shirt size, update virtual_compute_tshirt_sizes in the Lumi module block, then run terraform apply.
Keep the following in mind when modifying or removing a custom t-shirt size that's currently assigned to a virtual compute pool:
- Removing a size that is in use causes the pool to stop serving queries and terminates all in-flight queries.
- Modifying a size may affect the pool's ability to serve queries. For example, changing the instance type may cause the pool to stop serving queries.
To restore service, select an available size for the pool on the Virtual compute page.
Learn more
For more information, see the following topics:
- Manage virtual compute pools for details on size families and sizes.
- Virtual tier overview for details on the virtual tier.
- Manage tiering rules to add and manage tiering rules.
- Manage deletion rules to set up automatic data deletion.