Skip to main content

Configure custom t-shirt sizes for Lumi Enterprise

AI summary
Explains how to create custom t-shirt sizes for virtual compute pools in Imply Lumi using Terraform. Covers defining instance types, node counts, and query concurrency to match your workload requirements. Custom sizes replace predefined options and are available for Lumi Enterprise on AWS.

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: is4gen instances
  • Balanced: i8ge instances
  • Performance: i4i instances

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 i8ge isn't available, you can define Balanced sizes on i3en instances 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:

SizeNameInstance typeNode countMax concurrency
sSmallis4gen.large22
mMediumis4gen.large42
lLargeis4gen.large82
xlX-largeis4gen.xlarge84
2xl2X-largeis4gen.xlarge164
3xl3X-largeis4gen.2xlarge168
4xl4X-largeis4gen.4xlarge1614
5xl5X-largeis4gen.8xlarge1626

Balanced family sizes​

The following table shows the instance type, node count, and max concurrency for each predefined size in the Balanced family:

SizeNameInstance typeNode countMax concurrency
sSmalli8ge.large32
mMediumi8ge.xlarge34
lLargei8ge.2xlarge38
xlX-largei8ge.3xlarge411
2xl2X-largei8ge.6xlarge420
3xl3X-largei8ge.6xlarge820
4xl4X-largei8ge.6xlarge1620
5xl5X-largei8ge.6xlarge3220

Performance family sizes​

The following table shows the instance type, node count, and max concurrency for each predefined size in the Performance family:

SizeNameInstance typeNode countMax concurrency
sSmalli4i.xlarge44
mMediumi4i.xlarge84
lLargei4i.2xlarge88
xlX-largei4i.4xlarge814
2xl2X-largei4i.4xlarge1614
3xl3X-largei4i.8xlarge1626
4xl4X-largei4i.8xlarge3226
5xl5X-largei4i.8xlarge6426

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:

AttributeTypeRequiredDescription
sizeStringYesIdentifier for the size, such as l.
instance_typeStringYesAWS EC2 instance type for the size's nodes.
node_countNumberYesNumber of nodes in each cluster.
nameStringNoName for the size in the Lumi UI, such as Large.
familyStringNoInstance family that the size belongs to.
max_concurrencyNumberNoMaximum number of queries each cluster can run at the same time.

Each custom t-shirt size must meet the following constraints:

  • Each combination of size and family must be unique. For example, you can define an l size in both the is4gen and i4i families, but not two l sizes in the same family.
  • instance_type must be one of the instance types in the predefined size tables, or an i3en instance type listed in Use i3en for the Balanced family.
  • family must be one of is4gen, i8ge, or i4i.
  • node_count must be an integer greater than or equal to 1.
  • max_concurrency must be an integer greater than or equal to 1. If you don't specify a value, it defaults to 4.
  • max_concurrency must 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 typeMatching i8ge instance typeMax concurrency
i3en.largei8ge.large2
i3en.xlargei8ge.xlarge4
i3en.2xlargei8ge.2xlarge8
i3en.3xlargei8ge.3xlarge11
i3en.6xlargei8ge.6xlarge20

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: