Skip to main content

Managing Flavors

Managing server plans (sizing plans) in Arvancloud Cloud Server.

Overview​

The flavor commands provide tools for viewing the available server plans (resource plans or instance types). Flavors define the compute resources of servers, including CPU, memory (RAM), disk, IOPS, and bandwidth.

Alias: fl

Commands​

1. Listing Flavors​

Shows the list of all available server flavors.

arvan iaas flavor list

Alias: ls

Flags:

  • --region, -r: filter by region code (such as ir-central1)
  • --az, -a: filter by data center (such as ir-central1-a)
  • --category, -c: filter by category (basic, standard, premium, gpu, spot, dedicated)

Example:

$ arvan iaas flavor list --az=ir-central1-a --category=standard

Output:

FLAVOR-ID NAME CATEGORY AZ RAM(GB) CPU DISK(GB) MAX-IOPS BANDWIDTH(Gbps)
std-2-2-0 std-small1 standard ir-central1-a 2 2 75 16000 10
std-4-2-0 std-small2 standard ir-central1-a 4 2 75 16000 10
std-4-4-0 std-small3 standard ir-central1-a 4 4 75 16000 10
std-8-4-0 std-medium1 standard ir-central1-a 8 4 75 16000 10
std-16-6-0 std-medium4 standard ir-central1-a 16 6 75 16000 10

2. Showing Flavor Details​

Shows detailed information about a specific flavor.

arvan iaas flavor show <flavor-id> --az=<availability-zone>

Alias: sh

Arguments:

  • flavor-id (required): the flavor ID (such as std-8-4-0)

Flags:

  • --az, -a (required): the data center (such as ir-central1-a)

Note: the --az flag is required, because flavor IDs aren't globally unique and may differ between data centers.

Example:

$ arvan iaas flavor show std-8-4-0 --az=ir-central1-a

Output:

FLAVOR DETAILS
--------------
ID: std-8-4-0
Name: std-medium1
Type: general
SubType: medium
Category: standard
Generation: G2
AZ: ir-central1-a


COMPUTE
-------
CPU Cores: 4
CPU Share: 1/3
Memory: 8 GB (8589934592 bytes)


STORAGE
-------
Disk: 75 GB (80530636800 bytes)
IOPS Max HDD: 1500
IOPS Max SSD: 16000
Throughput: 300 MB/s (314572800 bytes)


NETWORK
-------
Port Speed: 10.0 Gbps

Flavor Concepts​

Flavors are organized into the following categories based on use and performance level:

  • basic: economical, entry-level flavors for light workloads
    • ECO series: economical flavors with shared resources
    • C1 series: basic CPU-optimized flavors
  • standard: general-purpose flavors for most uses
    • G2 series: a balance of CPU, memory, and disk
    • Includes Small, Medium, Large, and XLarge types
  • premium: very high-performance flavors
  • gpu: flavors with a GPU for AI/ML workloads
  • spot: spot servers with special discounts
  • dedicated: dedicated server flavors

Flavor Naming Structure​

Flavor IDs follow a specific pattern that shows their technical specifications:

<type>-<memory>-<cpu>-<gpu>

Examples:

  • eco-1-1-0: economical flavor, 1 GB RAM, one CPU core, no GPU.
  • std-8-4-0: standard flavor, 8 GB RAM, four CPU cores, no GPU.

CPU Share​

The CPU share shows how much compute resource is allocated:

  • 1/4: shared CPU, suitable for light workloads.
  • 1/3: medium CPU allocation, suitable for standard workloads.
  • 1/2: high CPU allocation, suitable for heavy compute workloads.
  • 1: fully dedicated CPU resources.

Common Scenarios​

Choosing a Flavor for a New Server​

  1. Get the list of available flavors in the data center you want:
arvan iaas flavor list --az=ir-central1-a
  1. Filter by the category that fits your needs:
# For basic workloads
arvan iaas flavor list --az=ir-central1-a --category=basic

# For production workloads
arvan iaas flavor list --az=ir-central1-a --category=standard
  1. See the details of a specific flavor:
arvan iaas flavor show std-8-4-0 --az=ir-central1-a
  1. Create a server with the selected flavor:
arvan iaas server create --name=my-server \
--flavor=std-8-4-0 \
--image=img-ubuntu2204 \
--az=ir-central1-a

Best Practices​

  • Start small: start with a basic or small standard flavor, monitor your resources, and upgrade when needed.
  • Match your needs:
    • For CPU-intensive workloads (such as encoding), choose flavors with more cores and a higher CPU share.
    • For memory-intensive workloads (such as databases), choose flavors with more RAM.
    • For I/O-intensive workloads, pay attention to the IOPS Max SSD value.
  • Regional availability: not all flavors are available in all regions; always check the availability in the target data center (AZ) before planning.

Troubleshooting​

Missing --az Flag Error​

If you get the error "Error: The --az flag is mandatory":

  • Always specify the data center when using the show command, because a flavor ID's specifications may differ between AZs.

Flavor Not Found​

If you get a Flavor Not Found error:

  1. Use the flavor list command to make sure the flavor ID is correct in that AZ.
  2. Make sure the data center name you entered is correct.

No Flavors Shown​

If the output of flavor list is empty:

  1. Remove the applied filters (such as category) to show all flavors.
  2. Use the arvan iaas region list command to check that the region or data center is valid.