openstack-manuals/doc/admin-guide/source/dashboard_manage_flavors.rst
Joseph Robinson 2ce5b11b1a [User Guides] Rename Admin-Guide-Cloud to Admin-Guide
This patch changes the name of the Admin-Guide from the Cloud
Admin Guide to the Administrator guide. This affects the
filename in the repository, and references to cloud administrators
within the document texts.

1.) Changing instances of 'cloud administrator'
    to 'administrator'.

2.) Change links from '/admin-guide-cloud/' to
    '/admin-guide/' within the Admin Guide.

3.) Adjust .htaccess file.

Change-Id: I7f21a710e922981aa295afc0616de36fd819b523
Implements: blueprint user-guides-reorganised
2016-04-01 19:50:13 +09:00

7.7 KiB

Manage flavors

In OpenStack, a flavor defines the compute, memory, and storage capacity of a virtual server, also known as an instance. As an administrative user, you can create, edit, and delete flavors.

The following table lists the default flavors.

Flavor VCPUs Disk (in GB) RAM (in MB)

m1.tiny

1

1

512

m1.small

1

20

2048

m1.medium

2

40

4096

m1.large

4

80

8192

m1.xlarge

8

160

16384

Create flavors

  1. Log in to the Dashboard and select the admin project from the drop-down list.

  2. In the Admin tab, open the System tab and click the Flavors category.

  3. Click Create Flavor.

  4. In the Create Flavor window, enter or select the parameters for the flavor in the Flavor Information tab.

    Dashboard — Create Flavor

    Name

    Enter the flavor name.

    ID

    Unique ID (integer or UUID) for the new flavor. If specifying 'auto', a UUID will be automatically generated.

    VCPUs

    Enter the number of virtual CPUs to use.

    RAM (MB)

    Enter the amount of RAM to use, in megabytes.

    Root Disk (GB)

    Enter the amount of disk space in gigabytes to use for the root (/) partition.

    Ephemeral Disk (GB)

    Enter the amount of disk space in gigabytes to use for the ephemeral partition. If unspecified, the value is 0 by default.

    Ephemeral disks offer machine local disk storage linked to the lifecycle of a VM instance. When a VM is terminated, all data on the ephemeral disk is lost. Ephemeral disks are not included in any snapshots.

    Swap Disk (MB)

    Enter the amount of swap space (in megabytes) to use. If unspecified, the default is 0.

  5. In the Flavor Access tab, you can control access to the flavor by moving projects from the All Projects column to the Selected Projects column.

    Only projects in the Selected Projects column can use the flavor. If there are no projects in the right column, all projects can use the flavor.

  6. Click Create Flavor.

Update flavors

  1. Log in to the Dashboard and select the admin project from the drop-down list.
  2. In the Admin tab, open the System tab and click the Flavors category.
  3. Select the flavor that you want to edit. Click Edit Flavor.
  4. In the Edit Flavor window, you can change the flavor name, VCPUs, RAM, root disk, ephemeral disk, and swap disk values.
  5. Click Save.

Update Metadata

  1. Log in to the Dashboard and select the admin project from the drop-down list.

  2. In the Admin tab, open the System tab and click the Flavors category.

  3. Select the flavor that you want to update. In the drop-down list, click Update Metadata or click No or Yes in the Metadata column.

  4. In the Update Flavor Metadata window, you can customize some metadata keys, then add it to this flavor and set them values.

  5. Click Save.

    Optional metadata keys

    + CPU limits +

    quota:cpu_shares

    -------------------------------+

    quota:cpu_period

    -------------------------------+

    quota:cpu_limit

    -------------------------------+

    quota:cpu_reservation

    -------------------------------+

    quota:cpu_quota

    + Disk tuning +

    quota:disk_read_bytes_sec

    -------------------------------+

    quota:disk_read_iops_sec

    -------------------------------+

    quota:disk_write_bytes_sec

    -------------------------------+

    quota:disk_write_iops_sec

    -------------------------------+

    quota:disk_total_bytes_sec

    -------------------------------+

    quota:disk_total_iops_sec

    + Bandwidth I/O +

    quota:vif_inbound_average

    -------------------------------+

    quota:vif_inbound_burst

    -------------------------------+

    quota:vif_inbound_peak

    -------------------------------+

    quota:vif_outbound_average

    -------------------------------+

    quota:vif_outbound_burst

    -------------------------------+

    quota:vif_outbound_peak

    Watchdog behavior hw:watchdog_action
    + Random-number generator +

    hw_rng:allowed

    -------------------------------+

    hw_rng:rate_bytes

    -------------------------------+

    hw_rng:rate_period

    For information about supporting metadata keys, see the compute-flavors.

Delete flavors

  1. Log in to the Dashboard and select the admin project from the drop-down list.
  2. In the Admin tab, open the System tab and click the Flavors category.
  3. Select the flavors that you want to delete.
  4. Click Delete Flavors.
  5. In the Confirm Delete Flavors window, click Delete Flavors to confirm the deletion. You cannot undo this action.