Merge "flavors: Correct some formatting issues"
This commit is contained in:
commit
9a6b3c0126
@ -36,7 +36,7 @@ Flavors define these elements:
|
|||||||
| Name | A descriptive name. XX.SIZE_NAME is typically not required, |
|
| Name | A descriptive name. XX.SIZE_NAME is typically not required, |
|
||||||
| | though some third party tools may rely on it. |
|
| | though some third party tools may rely on it. |
|
||||||
+-------------+---------------------------------------------------------------+
|
+-------------+---------------------------------------------------------------+
|
||||||
| Memory_MB | Virtual machine memory in megabytes. |
|
| Memory MB | Instance memory in megabytes. |
|
||||||
+-------------+---------------------------------------------------------------+
|
+-------------+---------------------------------------------------------------+
|
||||||
| Disk | Virtual root disk size in gigabytes. This is an ephemeral di\ |
|
| Disk | Virtual root disk size in gigabytes. This is an ephemeral di\ |
|
||||||
| | sk that the base image is copied into. When booting from a p\ |
|
| | sk that the base image is copied into. When booting from a p\ |
|
||||||
@ -52,28 +52,43 @@ Flavors define these elements:
|
|||||||
+-------------+---------------------------------------------------------------+
|
+-------------+---------------------------------------------------------------+
|
||||||
| VCPUs | Number of virtual CPUs presented to the instance. |
|
| VCPUs | Number of virtual CPUs presented to the instance. |
|
||||||
+-------------+---------------------------------------------------------------+
|
+-------------+---------------------------------------------------------------+
|
||||||
| RXTX_Factor | Optional property allows created servers to have a different |
|
| RXTX Factor | Optional property allows created servers to have a different |
|
||||||
| | bandwidth cap than that defined in the network they are att\ |
|
| | bandwidth cap than that defined in the network they are att\ |
|
||||||
| | ached to. This factor is multiplied by the rxtx_base propert\ |
|
| | ached to. This factor is multiplied by the rxtx_base propert\ |
|
||||||
| | y of the network. Default value is 1.0. That is, the same as |
|
| | y of the network. Default value is 1.0. That is, the same as |
|
||||||
| | attached network. This parameter is only available for Xen |
|
| | attached network. This parameter is only available for Xen |
|
||||||
| | or NSX based systems. |
|
| | or NSX based systems. |
|
||||||
+-------------+---------------------------------------------------------------+
|
+-------------+---------------------------------------------------------------+
|
||||||
| Is_Public | Boolean value, whether flavor is available to all users or p\ |
|
| Is Public | Boolean value, whether flavor is available to all users or p\ |
|
||||||
| | rivate to the tenant it was created in. Defaults to ``True``. |
|
| | rivate to the tenant it was created in. Defaults to ``True``. |
|
||||||
+-------------+---------------------------------------------------------------+
|
+-------------+---------------------------------------------------------------+
|
||||||
| extra_specs | Key and value pairs that define on which compute nodes a fla\ |
|
| Extra Specs | Key and value pairs that define on which compute nodes a fla\ |
|
||||||
| | vor can run. These pairs must match corresponding pairs on t\ |
|
| | vor can run. These pairs must match corresponding pairs on t\ |
|
||||||
| | he compute nodes. Use to implement special resources, such a\ |
|
| | he compute nodes. Use to implement special resources, such a\ |
|
||||||
| | s flavors that run on only compute nodes with GPU hardware. |
|
| | s flavors that run on only compute nodes with GPU hardware. |
|
||||||
+-------------+---------------------------------------------------------------+
|
+-------------+---------------------------------------------------------------+
|
||||||
|
|
||||||
|
|
.. note::
|
||||||
|
|
||||||
Flavor customization can be limited by the hypervisor in use. For
|
Flavor customization can be limited by the hypervisor in use. For
|
||||||
example the libvirt driver enables quotas on CPUs available to a VM,
|
example the libvirt driver enables quotas on CPUs available to a VM,
|
||||||
disk tuning, bandwidth I/O, watchdog behavior, random number generator
|
disk tuning, bandwidth I/O, watchdog behavior, random number generator
|
||||||
device control, and instance VIF traffic control.
|
device control, and instance VIF traffic control.
|
||||||
|
|
||||||
|
Is Public
|
||||||
|
~~~~~~~~~
|
||||||
|
|
||||||
|
Flavors can be assigned to particular projects. By default, a flavor is public
|
||||||
|
and available to all projects. Private flavors are only accessible to those on
|
||||||
|
the access list and are invisible to other projects. To create and assign a
|
||||||
|
private flavor to a project, run this command:
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
$ openstack flavor create --private p1.medium auto 512 40 4
|
||||||
|
|
||||||
|
Extra Specs
|
||||||
|
~~~~~~~~~~~
|
||||||
|
|
||||||
CPU limits
|
CPU limits
|
||||||
You can configure the CPU limits with control parameters with the
|
You can configure the CPU limits with control parameters with the
|
||||||
@ -211,32 +226,22 @@ Disk tuning
|
|||||||
|
|
||||||
The disk I/O options are:
|
The disk I/O options are:
|
||||||
|
|
||||||
- disk\_read\_bytes\_sec
|
- ``disk_read_bytes_sec``
|
||||||
|
- ``disk_read_iops_sec``
|
||||||
- disk\_read\_iops\_sec
|
- ``disk_write_bytes_sec``
|
||||||
|
- ``disk_write_iops_sec``
|
||||||
- disk\_write\_bytes\_sec
|
- ``disk_total_bytes_sec``
|
||||||
|
- ``disk_total_iops_sec``
|
||||||
- disk\_write\_iops\_sec
|
|
||||||
|
|
||||||
- disk\_total\_bytes\_sec
|
|
||||||
|
|
||||||
- disk\_total\_iops\_sec
|
|
||||||
|
|
||||||
Bandwidth I/O
|
Bandwidth I/O
|
||||||
The vif I/O options are:
|
The vif I/O options are:
|
||||||
|
|
||||||
- vif\_inbound\_ average
|
- ``vif_inbound_average``
|
||||||
|
- ``vif_inbound_burst``
|
||||||
- vif\_inbound\_burst
|
- ``vif_inbound_peak``
|
||||||
|
- ``vif_outbound_average``
|
||||||
- vif\_inbound\_peak
|
- ``vif_outbound_burst``
|
||||||
|
- ``vif_outbound_peak``
|
||||||
- vif\_outbound\_ average
|
|
||||||
|
|
||||||
- vif\_outbound\_burst
|
|
||||||
|
|
||||||
- vif\_outbound\_peak
|
|
||||||
|
|
||||||
Incoming and outgoing traffic can be shaped independently. The
|
Incoming and outgoing traffic can be shaped independently. The
|
||||||
bandwidth element can have at most, one inbound and at most, one
|
bandwidth element can have at most, one inbound and at most, one
|
||||||
@ -303,16 +308,11 @@ Watchdog behavior
|
|||||||
|
|
||||||
Valid ACTION values are:
|
Valid ACTION values are:
|
||||||
|
|
||||||
- ``disabled``—(default) The device is not attached.
|
- ``disabled``: (default) The device is not attached.
|
||||||
|
- ``reset``: Forcefully reset the guest.
|
||||||
- ``reset``—Forcefully reset the guest.
|
- ``poweroff``: Forcefully power off the guest.
|
||||||
|
- ``pause``: Pause the guest.
|
||||||
- ``poweroff``—Forcefully power off the guest.
|
- ``none``: Only enable the watchdog; do nothing if the server hangs.
|
||||||
|
|
||||||
- ``pause``—Pause the guest.
|
|
||||||
|
|
||||||
- ``none``—Only enable the watchdog; do nothing if the server
|
|
||||||
hangs.
|
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
@ -333,10 +333,9 @@ Random-number generator
|
|||||||
|
|
||||||
Where:
|
Where:
|
||||||
|
|
||||||
- RATE-BYTES—(Integer) Allowed amount of bytes that the guest can
|
- RATE-BYTES: (Integer) Allowed amount of bytes that the guest can
|
||||||
read from the host's entropy per period.
|
read from the host's entropy per period.
|
||||||
|
- RATE-PERIOD: (Integer) Duration of the read period in seconds.
|
||||||
- RATE-PERIOD—(Integer) Duration of the read period in seconds.
|
|
||||||
|
|
||||||
CPU topology
|
CPU topology
|
||||||
For the libvirt driver, you can define the topology of the processors
|
For the libvirt driver, you can define the topology of the processors
|
||||||
@ -355,14 +354,12 @@ CPU topology
|
|||||||
|
|
||||||
Where:
|
Where:
|
||||||
|
|
||||||
- FLAVOR-SOCKETS—(Integer) The number of sockets for the guest VM. By
|
- FLAVOR-SOCKETS: (integer) The number of sockets for the guest VM. By
|
||||||
this is set to the number of vCPUs requested.
|
this is set to the number of vCPUs requested.
|
||||||
|
- FLAVOR-CORES: (integer) The number of cores per socket for the guest
|
||||||
- FLAVOR-CORES—(Integer) The number of cores per socket for the guest VM. By
|
VM. By this is set to 1.
|
||||||
this is set to 1.
|
- FLAVOR-THREADS: (integer) The number of threads per core for the guest
|
||||||
|
VM. By this is set to 1.
|
||||||
- FLAVOR-THREADS—(Integer) The number of threads per core for the guest VM. By
|
|
||||||
this is set to 1.
|
|
||||||
|
|
||||||
Core pinning
|
Core pinning
|
||||||
VMs can be pinned to specific physical cores in the hypervisor to improve
|
VMs can be pinned to specific physical cores in the hypervisor to improve
|
||||||
@ -371,29 +368,18 @@ Core pinning
|
|||||||
|
|
||||||
.. code:: console
|
.. code:: console
|
||||||
|
|
||||||
$ openstack flavor set FLAVOR-NAME --property hw:dedicated=PIN-POLICY
|
$ openstack flavor set FLAVOR-NAME --property hw:dedicated=PIN-POLICY
|
||||||
|
|
||||||
Valid PIN-POLICY values are:
|
Valid PIN-POLICY values are:
|
||||||
|
|
||||||
- ``shared``—(default) The guest vCPUs will be allowed to freely float
|
- ``shared``: (default) The guest vCPUs will be allowed to freely float
|
||||||
across host pCPUs, albeit potentially constrained by NUMA policy.
|
across host pCPUs, albeit potentially constrained by NUMA policy.
|
||||||
|
|
||||||
- ``dedicated``—the guest vCPUs will be strictly pinned to a set of host
|
- ``dedicated``: The guest vCPUs will be strictly pinned to a set of host
|
||||||
pCPUs. In the absence of an explicit vCPU topology request, the drivers
|
pCPUs. In the absence of an explicit vCPU topology request, the drivers
|
||||||
typically expose all vCPUs as sockets with 1 core and 1 thread. When strict
|
typically expose all vCPUs as sockets with one core and one thread.
|
||||||
CPU pinning is in effect the guest CPU topology will be setup to match the
|
When strict CPU pinning is in effect the guest CPU topology will be
|
||||||
topology of the CPUs to which it is pinned. This option assumes the overcommit
|
setup to match the topology of the CPUs to which it is pinned. This
|
||||||
ratio is 1.0. For example, if a 2 vCPU guest is pinned to a single host core
|
option assumes the overcommit ratio is 1.0. For example, if a two vCPU
|
||||||
with 2 threads, then the guest will get a topology of 1 socket, 1 core, 2
|
guest is pinned to a single host core with two threads, then the guest
|
||||||
threads.
|
will get a topology of one socket, one core, threads threads.
|
||||||
|
|
||||||
Project private flavors
|
|
||||||
Flavors can also be assigned to particular projects. By default, a
|
|
||||||
flavor is public and available to all projects. Private flavors are
|
|
||||||
only accessible to those on the access list and are invisible to
|
|
||||||
other projects. To create and assign a private flavor to a project,
|
|
||||||
run these commands:
|
|
||||||
|
|
||||||
.. code-block:: console
|
|
||||||
|
|
||||||
$ openstack flavor create --private p1.medium auto 512 40 4
|
|
||||||
|
Loading…
Reference in New Issue
Block a user