Added watchdog property key and flavor-key info
Added hw_watchdog_action property key and watchdog info for flavor_key section (plus minor edits). Added note about authorized users, and reference to the page in the Admin User Guide. Closes-bug: #1287406 Closes-bug: #1287450 Change-Id: Ib404d98ce504883ae22733f681e205c641720f5a
This commit is contained in:
parent
000235762d
commit
105b4f7ae5
@ -16,6 +16,8 @@
|
||||
image-update</command> and <command>glance image-create</command> commands. For
|
||||
example:</para>
|
||||
<screen><prompt>$</prompt> <userinput>glance image-update <replaceable>img-uuid</replaceable> --property architecture=x86_64</userinput></screen>
|
||||
<note><para>Behavior set using image properties overrides
|
||||
behavior set using flavors.</para></note>
|
||||
<table rules="all">
|
||||
<caption>Property keys</caption>
|
||||
<col width="12%"/>
|
||||
@ -43,65 +45,65 @@
|
||||
for this purpose.</td>
|
||||
<td>
|
||||
<itemizedlist>
|
||||
<listitem><para><literal>alpha</literal> — <link xlink:href="http://en.wikipedia.org/wiki/DEC_Alpha"
|
||||
<listitem><para><literal>alpha</literal>—<link xlink:href="http://en.wikipedia.org/wiki/DEC_Alpha"
|
||||
>DEC 64-bit RISC</link></para></listitem>
|
||||
<listitem><para><literal>armv7l</literal> — <link xlink:href="http://en.wikipedia.org/wiki/ARM_architecture"
|
||||
<listitem><para><literal>armv7l</literal>—<link xlink:href="http://en.wikipedia.org/wiki/ARM_architecture"
|
||||
>ARM Cortex-A7 MPCore</link></para></listitem>
|
||||
<listitem><para><literal>cris</literal> — <link xlink:href="http://en.wikipedia.org/wiki/ETRAX_CRIS"
|
||||
>Ethernet, Token Ring, AXis — Code Reduced Instruction Set</link></para></listitem>
|
||||
<listitem><para><literal>i686</literal> — <link xlink:href="http://en.wikipedia.org/wiki/X86"
|
||||
<listitem><para><literal>cris</literal>—<link xlink:href="http://en.wikipedia.org/wiki/ETRAX_CRIS"
|
||||
>Ethernet, Token Ring, AXis—Code Reduced Instruction Set</link></para></listitem>
|
||||
<listitem><para><literal>i686</literal>—<link xlink:href="http://en.wikipedia.org/wiki/X86"
|
||||
>Intel sixth-generation x86</link>
|
||||
(P6 micro architecture)</para></listitem>
|
||||
<listitem><para><literal>ia64</literal> — <link xlink:href="http://en.wikipedia.org/wiki/Itanium"
|
||||
<listitem><para><literal>ia64</literal>—<link xlink:href="http://en.wikipedia.org/wiki/Itanium"
|
||||
>Itanium</link></para></listitem>
|
||||
<listitem><para><literal>lm32</literal> — <link xlink:href="http://en.wikipedia.org/wiki/Milkymist"
|
||||
<listitem><para><literal>lm32</literal>—<link xlink:href="http://en.wikipedia.org/wiki/Milkymist"
|
||||
>Lattice Micro32</link></para></listitem>
|
||||
<listitem><para><literal>m68k</literal> — <link xlink:href="http://en.wikipedia.org/wiki/Motorola_68000_family"
|
||||
<listitem><para><literal>m68k</literal>—<link xlink:href="http://en.wikipedia.org/wiki/Motorola_68000_family"
|
||||
>Motorola 68000</link></para></listitem>
|
||||
<listitem><para><literal>microblaze</literal> — <link xlink:href="http://en.wikipedia.org/wiki/MicroBlaze"
|
||||
<listitem><para><literal>microblaze</literal>—<link xlink:href="http://en.wikipedia.org/wiki/MicroBlaze"
|
||||
>Xilinx 32-bit FPGA (Big Endian)</link></para></listitem>
|
||||
<listitem><para><literal>microblazeel</literal> — <link xlink:href="http://en.wikipedia.org/wiki/MicroBlaze"
|
||||
<listitem><para><literal>microblazeel</literal>—<link xlink:href="http://en.wikipedia.org/wiki/MicroBlaze"
|
||||
>Xilinx 32-bit FPGA (Little Endian)</link></para></listitem>
|
||||
<listitem><para><literal>mips</literal> — <link xlink:href="http://en.wikipedia.org/wiki/MIPS_architecture"
|
||||
<listitem><para><literal>mips</literal>—<link xlink:href="http://en.wikipedia.org/wiki/MIPS_architecture"
|
||||
>MIPS 32-bit RISC (Big Endian)</link></para></listitem>
|
||||
<listitem><para><literal>mipsel</literal> — <link xlink:href="http://en.wikipedia.org/wiki/MIPS_architecture"
|
||||
<listitem><para><literal>mipsel</literal>—<link xlink:href="http://en.wikipedia.org/wiki/MIPS_architecture"
|
||||
>MIPS 32-bit RISC (Little Endian)</link></para></listitem>
|
||||
<listitem><para><literal>mips64</literal> — <link xlink:href="http://en.wikipedia.org/wiki/MIPS_architecture"
|
||||
<listitem><para><literal>mips64</literal>—<link xlink:href="http://en.wikipedia.org/wiki/MIPS_architecture"
|
||||
>MIPS 64-bit RISC (Big Endian)</link></para></listitem>
|
||||
<listitem><para><literal>mips64el</literal> — <link xlink:href="http://en.wikipedia.org/wiki/MIPS_architecture"
|
||||
<listitem><para><literal>mips64el</literal>—<link xlink:href="http://en.wikipedia.org/wiki/MIPS_architecture"
|
||||
>MIPS 64-bit RISC (Little Endian)</link></para></listitem>
|
||||
<listitem><para><literal>openrisc</literal> — <link xlink:href="http://en.wikipedia.org/wiki/OpenRISC#QEMU_support"
|
||||
<listitem><para><literal>openrisc</literal>—<link xlink:href="http://en.wikipedia.org/wiki/OpenRISC#QEMU_support"
|
||||
>OpenCores RISC</link></para></listitem>
|
||||
<listitem><para><literal>parisc</literal> — <link xlink:href="http://en.wikipedia.org/wiki/PA-RISC"
|
||||
<listitem><para><literal>parisc</literal>—<link xlink:href="http://en.wikipedia.org/wiki/PA-RISC"
|
||||
>HP Precision Architecture RISC</link></para></listitem>
|
||||
<listitem><para><literal>parisc64</literal> — <link xlink:href="http://en.wikipedia.org/wiki/PA-RISC"
|
||||
<listitem><para><literal>parisc64</literal>—<link xlink:href="http://en.wikipedia.org/wiki/PA-RISC"
|
||||
>HP Precision Architecture 64-bit RISC</link></para></listitem>
|
||||
<listitem><para><literal>ppc</literal> — <link xlink:href="http://en.wikipedia.org/wiki/PowerPC"
|
||||
<listitem><para><literal>ppc</literal>—<link xlink:href="http://en.wikipedia.org/wiki/PowerPC"
|
||||
>PowerPC 32-bit</link></para></listitem>
|
||||
<listitem><para><literal>ppc64</literal> — <link xlink:href="http://en.wikipedia.org/wiki/PowerPC"
|
||||
<listitem><para><literal>ppc64</literal>—<link xlink:href="http://en.wikipedia.org/wiki/PowerPC"
|
||||
>PowerPC 64-bit</link></para></listitem>
|
||||
<listitem><para><literal>ppcemb</literal> — <link xlink:href="http://en.wikipedia.org/wiki/PowerPC"
|
||||
<listitem><para><literal>ppcemb</literal>—<link xlink:href="http://en.wikipedia.org/wiki/PowerPC"
|
||||
>PowerPC (Embedded 32-bit)</link></para></listitem>
|
||||
<listitem><para><literal>s390</literal> — <link xlink:href="http://en.wikipedia.org/wiki/S390"
|
||||
<listitem><para><literal>s390</literal>—<link xlink:href="http://en.wikipedia.org/wiki/S390"
|
||||
>IBM Enterprise Systems Architecture/390</link></para></listitem>
|
||||
<listitem><para><literal>s390x</literal> — <link xlink:href="http://en.wikipedia.org/wiki/S390x"
|
||||
<listitem><para><literal>s390x</literal>—<link xlink:href="http://en.wikipedia.org/wiki/S390x"
|
||||
>S/390 64-bit</link></para></listitem>
|
||||
<listitem><para><literal>sh4</literal> — <link xlink:href="http://en.wikipedia.org/wiki/SuperH"
|
||||
<listitem><para><literal>sh4</literal>—<link xlink:href="http://en.wikipedia.org/wiki/SuperH"
|
||||
>SuperH SH-4 (Little Endian)</link></para></listitem>
|
||||
<listitem><para><literal>sh4eb</literal> — <link xlink:href="http://en.wikipedia.org/wiki/SuperH"
|
||||
<listitem><para><literal>sh4eb</literal>—<link xlink:href="http://en.wikipedia.org/wiki/SuperH"
|
||||
>SuperH SH-4 (Big Endian)</link></para></listitem>
|
||||
<listitem><para><literal>sparc</literal> — <link xlink:href="http://en.wikipedia.org/wiki/Sparc"
|
||||
<listitem><para><literal>sparc</literal>—<link xlink:href="http://en.wikipedia.org/wiki/Sparc"
|
||||
>Scalable Processor Architecture, 32-bit</link></para></listitem>
|
||||
<listitem><para><literal>sparc64</literal> — <link xlink:href="http://en.wikipedia.org/wiki/Sparc"
|
||||
<listitem><para><literal>sparc64</literal>—<link xlink:href="http://en.wikipedia.org/wiki/Sparc"
|
||||
>Scalable Processor Architecture, 64-bit</link></para></listitem>
|
||||
<listitem><para><literal>unicore32</literal> — <link xlink:href="http://en.wikipedia.org/wiki/Unicore"
|
||||
<listitem><para><literal>unicore32</literal>—<link xlink:href="http://en.wikipedia.org/wiki/Unicore"
|
||||
>Microprocessor Research and Development Center
|
||||
RISC Unicore32</link></para></listitem>
|
||||
<listitem><para><literal>x86_64</literal> — <link xlink:href="http://en.wikipedia.org/wiki/X86"
|
||||
<listitem><para><literal>x86_64</literal>—<link xlink:href="http://en.wikipedia.org/wiki/X86"
|
||||
>64-bit extension of IA-32</link></para></listitem>
|
||||
<listitem><para><literal>xtensa</literal> — <link xlink:href="http://en.wikipedia.org/wiki/Xtensa#Processor_Cores"
|
||||
<listitem><para><literal>xtensa</literal>—<link xlink:href="http://en.wikipedia.org/wiki/Xtensa#Processor_Cores"
|
||||
>Tensilica Xtensa configurable microprocessor core</link></para></listitem>
|
||||
<listitem><para><literal>xtensaeb</literal> — <link xlink:href="http://en.wikipedia.org/wiki/Xtensa#Processor_Cores"
|
||||
<listitem><para><literal>xtensaeb</literal>—<link xlink:href="http://en.wikipedia.org/wiki/Xtensa#Processor_Cores"
|
||||
>Tensilica Xtensa configurable microprocessor core
|
||||
(Big Endian)</link></para></listitem>
|
||||
</itemizedlist>
|
||||
@ -137,50 +139,50 @@
|
||||
values are listed to assist you in searching for the recognized value.</td>
|
||||
<td>
|
||||
<itemizedlist>
|
||||
<listitem><para><literal>arch</literal> — Arch Linux. Do not use <literal>archlinux</literal> or
|
||||
<listitem><para><literal>arch</literal>—Arch Linux. Do not use <literal>archlinux</literal> or
|
||||
<literal>org.archlinux</literal></para></listitem>
|
||||
<listitem><para><literal>centos</literal> — Community Enterprise Operating System. Do not use
|
||||
<listitem><para><literal>centos</literal>—Community Enterprise Operating System. Do not use
|
||||
<literal>org.centos</literal> or
|
||||
<literal>CentOS</literal></para></listitem>
|
||||
<listitem><para><literal>debian</literal> — Debian. Do not use <literal>Debian</literal> or
|
||||
<listitem><para><literal>debian</literal>—Debian. Do not use <literal>Debian</literal> or
|
||||
<literal>org.debian</literal></para></listitem>
|
||||
<listitem><para><literal>fedora</literal> — Fedora. Do not use <literal>Fedora</literal>,
|
||||
<listitem><para><literal>fedora</literal>—Fedora. Do not use <literal>Fedora</literal>,
|
||||
<literal>org.fedora</literal>, or
|
||||
<literal>org.fedoraproject</literal></para></listitem>
|
||||
<listitem><para><literal>freebsd</literal> — FreeBSD. Do not use <literal>org.freebsd</literal>,
|
||||
<listitem><para><literal>freebsd</literal>—FreeBSD. Do not use <literal>org.freebsd</literal>,
|
||||
<literal>freeBSD</literal>, or <literal>FreeBSD</literal></para></listitem>
|
||||
<listitem><para><literal>gentoo</literal> — Gentoo Linux. Do not use <literal>Gentoo</literal> or
|
||||
<listitem><para><literal>gentoo</literal>—Gentoo Linux. Do not use <literal>Gentoo</literal> or
|
||||
<literal>org.gentoo</literal></para></listitem>
|
||||
<listitem><para><literal>mandrake</literal> — Mandrakelinux (MandrakeSoft) distribution. Do not use
|
||||
<listitem><para><literal>mandrake</literal>—Mandrakelinux (MandrakeSoft) distribution. Do not use
|
||||
<literal>mandrakelinux</literal> or
|
||||
<literal>MandrakeLinux</literal></para></listitem>
|
||||
<listitem><para><literal>mandriva</literal> — Mandriva Linux. Do not use
|
||||
<listitem><para><literal>mandriva</literal>—Mandriva Linux. Do not use
|
||||
<literal>mandrivalinux</literal></para></listitem>
|
||||
<listitem><para><literal>mes</literal> — Mandriva Enterprise Server. Do not use
|
||||
<listitem><para><literal>mes</literal>—Mandriva Enterprise Server. Do not use
|
||||
<literal>mandrivaent</literal> or
|
||||
<literal>mandrivaES</literal></para></listitem>
|
||||
<listitem><para><literal>msdos</literal> — Microsoft Disc Operating System. Do not use
|
||||
<listitem><para><literal>msdos</literal>—Microsoft Disc Operating System. Do not use
|
||||
<literal>ms-dos</literal></para></listitem>
|
||||
<listitem><para><literal>netbsd</literal> — NetBSD. Do not use <literal>NetBSD</literal> or
|
||||
<listitem><para><literal>netbsd</literal>—NetBSD. Do not use <literal>NetBSD</literal> or
|
||||
<literal>org.netbsd</literal></para></listitem>
|
||||
<listitem><para><literal>netware</literal> — Novell NetWare. Do not use <literal>novell</literal> or
|
||||
<listitem><para><literal>netware</literal>—Novell NetWare. Do not use <literal>novell</literal> or
|
||||
<literal>NetWare</literal></para></listitem>
|
||||
<listitem><para><literal>openbsd</literal> — OpenBSD. Do not use <literal>OpenBSD</literal> or
|
||||
<listitem><para><literal>openbsd</literal>—OpenBSD. Do not use <literal>OpenBSD</literal> or
|
||||
<literal>org.openbsd</literal></para></listitem>
|
||||
<listitem><para><literal>opensolaris</literal> — OpenSolaris. Do not use <literal>OpenSolaris</literal>
|
||||
<listitem><para><literal>opensolaris</literal>—OpenSolaris. Do not use <literal>OpenSolaris</literal>
|
||||
or <literal>org.opensolaris</literal></para></listitem>
|
||||
<listitem><para><literal>opensuse</literal> — openSUSE. Do not use <literal>suse</literal>,
|
||||
<listitem><para><literal>opensuse</literal>—openSUSE. Do not use <literal>suse</literal>,
|
||||
<literal>SuSE</literal>, or
|
||||
<literal>org.opensuse</literal></para></listitem>
|
||||
<listitem><para><literal>rhel</literal> — Red Hat Enterprise Linux. Do not use
|
||||
<listitem><para><literal>rhel</literal>—Red Hat Enterprise Linux. Do not use
|
||||
<literal>redhat</literal>, <literal>RedHat</literal>, or
|
||||
<literal>com.redhat</literal></para></listitem>
|
||||
<listitem><para><literal>sled</literal> — SUSE Linux Enterprise Desktop. Do not use
|
||||
<listitem><para><literal>sled</literal>—SUSE Linux Enterprise Desktop. Do not use
|
||||
<literal>com.suse</literal></para></listitem>
|
||||
<listitem><para><literal>ubuntu</literal> — Ubuntu. Do not use <literal>Ubuntu</literal>,
|
||||
<listitem><para><literal>ubuntu</literal>—Ubuntu. Do not use <literal>Ubuntu</literal>,
|
||||
<literal>com.ubuntu</literal>, <literal>org.ubuntu</literal>, or
|
||||
<literal>canonical</literal></para></listitem>
|
||||
<listitem><para><literal>windows</literal> — Microsoft Windows. Do not use
|
||||
<listitem><para><literal>windows</literal>—Microsoft Windows. Do not use
|
||||
<literal>com.microsoft.server</literal> or
|
||||
<literal>windoze</literal></para></listitem>
|
||||
</itemizedlist>
|
||||
@ -206,11 +208,11 @@
|
||||
interface) used for the virtual machine.</td>
|
||||
<td>
|
||||
<itemizedlist>
|
||||
<listitem><para><literal>hvm</literal> — Fully virtualized. This is the mode used by QEMU and
|
||||
<listitem><para><literal>hvm</literal>—Fully virtualized. This is the mode used by QEMU and
|
||||
KVM.</para></listitem>
|
||||
<listitem><para><literal>xen</literal> — Xen 3.0 paravirtualized.</para></listitem>
|
||||
<listitem><para><literal>uml</literal> — User Mode Linux paravirtualized.</para></listitem>
|
||||
<listitem><para><literal>exe</literal> — Executables in containers. This is the mode used by
|
||||
<listitem><para><literal>xen</literal>—Xen 3.0 paravirtualized.</para></listitem>
|
||||
<listitem><para><literal>uml</literal>—User Mode Linux paravirtualized.</para></listitem>
|
||||
<listitem><para><literal>exe</literal>—Executables in containers. This is the mode used by
|
||||
LXC.</para></listitem>
|
||||
</itemizedlist>
|
||||
</td>
|
||||
@ -231,6 +233,26 @@
|
||||
<literal>hw_video_ram</literal>.</td>
|
||||
<td>Integer in MB (for example, '64')</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td>libvirt API driver</td>
|
||||
<td>hw_watchdog_action</td>
|
||||
<td>Enables a virtual hardware watchdog device that carries out the specified action
|
||||
if the server hangs. The watchdog uses the i6300esb device (emulating a PCI
|
||||
Intel 6300ESB). If <literal>hw_watchdog_action</literal> is not specified, the
|
||||
watchdog is disabled.</td>
|
||||
<td><itemizedlist>
|
||||
<listitem><para><literal>disabled</literal>—(default) The device is not
|
||||
attached. Allows the user to disable the watchdog
|
||||
for the image, even if it has been enabled using the image's flavor.
|
||||
</para></listitem>
|
||||
<listitem><para><literal>reset</literal>—Forcefully reset the guest.</para></listitem>
|
||||
<listitem><para><literal>poweroff</literal>—Forcefully power off the guest.</para></listitem>
|
||||
<listitem><para><literal>pause</literal>—Pause the guest.</para></listitem>
|
||||
<listitem><para><literal>none</literal>—Only enable the watchdog; do nothing if the server
|
||||
hangs.</para></listitem>
|
||||
</itemizedlist>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td>libvirt API driver</td>
|
||||
<td>os_command_line</td>
|
||||
|
@ -1,12 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<section xml:id="customize-flavors"
|
||||
xmlns="http://docbook.org/ns/docbook"
|
||||
xmlns:xi="http://www.w3.org/2001/XInclude"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0">
|
||||
<!DOCTYPE section[
|
||||
<!-- Some useful entities borrowed from HTML -->
|
||||
<!ENTITY ndash "–">
|
||||
<!ENTITY mdash "—">
|
||||
<!ENTITY hellip "…">
|
||||
]>
|
||||
<section xml:id="customize-flavors" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0">
|
||||
<title>Flavors</title>
|
||||
<para>Authorized users can use the <command>nova
|
||||
flavor-create</command> command to create flavors. To see
|
||||
the available flavor-related commands, run:</para>
|
||||
<para>Admin users can use the <command>nova flavor-</command> commands to customize and manage
|
||||
flavors. To see the available flavor-related commands, run:</para>
|
||||
<screen><prompt>$</prompt> <userinput>nova help | grep flavor-</userinput>
|
||||
<computeroutput> flavor-access-add Add flavor access for the given tenant.
|
||||
flavor-access-list Print access information about the given flavor.
|
||||
@ -18,9 +20,15 @@
|
||||
flavor-list Print a list of available 'flavors' (sizes of
|
||||
flavor-show Show details about the given flavor.</computeroutput></screen>
|
||||
<note>
|
||||
<para>To modify an existing flavor in the dashboard, you must
|
||||
<itemizedlist>
|
||||
<listitem><para>Configuration rights can be delegated to additional users
|
||||
by redefining the access controls for <option>compute_extension:flavormanage</option>
|
||||
in <filename>/etc/nova/policy.json</filename> on the
|
||||
<systemitem class="server">nova-api</systemitem> server.</para></listitem>
|
||||
<listitem><para>To modify an existing flavor in the dashboard, you must
|
||||
delete the flavor and create a modified one with the same
|
||||
name.</para>
|
||||
name.</para></listitem>
|
||||
</itemizedlist>
|
||||
</note>
|
||||
<para>Flavors define these elements:</para>
|
||||
<table rules="all" width="75%">
|
||||
@ -88,54 +96,66 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td><literal>extra_specs</literal></td>
|
||||
<td>Key and value pairs that define on which compute
|
||||
<td><para>Key and value pairs that define on which compute
|
||||
nodes a flavor can run. These pairs must match
|
||||
corresponding pairs on the compute nodes. Use to
|
||||
implement special resources, such as flavors that
|
||||
run on only compute nodes with GPU hardware.</td>
|
||||
run on only compute nodes with GPU hardware.</para></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<para>Flavor customization can be limited by the hypervisor in
|
||||
use, for example the libvirt driver enables quotas on CPUs
|
||||
available to a VM, disk tuning, bandwidth I/O, and instance
|
||||
VIF traffic control.</para>
|
||||
<para>You can configure the CPU limits with control parameters
|
||||
with the nova tool. For example, to configure the I/O
|
||||
limit:</para>
|
||||
<para>Flavor customization can be limited by the hypervisor in use. For example the
|
||||
<systemitem>libvirt</systemitem> driver enables quotas on CPUs available to a VM, disk
|
||||
tuning, bandwidth I/O, watchdog behavior, and instance VIF traffic control.</para>
|
||||
<variablelist>
|
||||
<varlistentry><term>CPU limits</term>
|
||||
<listitem><para>You can configure the CPU limits with control parameters with the <command>nova</command>
|
||||
client. For example, to configure the I/O limit, use:</para>
|
||||
<screen><prompt>$</prompt> <userinput>nova flavor-key m1.small set quota:read_bytes_sec=10240000</userinput>
|
||||
<prompt>$</prompt> <userinput>nova flavor-key m1.small set quota:write_bytes_sec=10240000</userinput></screen>
|
||||
<para>There are CPU control parameters for weight shares,
|
||||
enforcement intervals for runtime quotas, and a quota for
|
||||
maximum allowed bandwidth.</para>
|
||||
<para>The optional <literal>cpu_shares</literal> element specifies
|
||||
the proportional weighted share for the domain. If this
|
||||
element is omitted, the service defaults to the OS provided
|
||||
defaults. There is no unit for the value. It is a relative
|
||||
measure based on the setting of other VMs. For example, a VM
|
||||
configured with value 2048 gets twice as much CPU time as a VM
|
||||
configured with value 1024.</para>
|
||||
<para>The optional <literal>cpu_period</literal> element specifies
|
||||
the enforcement interval (unit: microseconds) for QEMU and LXC
|
||||
hypervisors. Within a period, each VCPU of the domain is not
|
||||
allowed to consume more than the quota worth of runtime. The
|
||||
value should be in range <literal>[1000, 1000000]</literal>. A
|
||||
period with value 0 means no value.</para>
|
||||
<para>The optional <literal>cpu_quota</literal> element specifies
|
||||
the maximum allowed bandwidth (unit: microseconds). A domain
|
||||
with a quota with a negative value indicates that the domain
|
||||
has infinite bandwidth, which means that it is not bandwidth
|
||||
controlled. The value should be in range <literal>[1000,
|
||||
18446744073709551]</literal> or less than 0. A quota with
|
||||
value 0 means no value. You can use this feature to ensure
|
||||
that all vcpus run at the same speed. For example:</para>
|
||||
<para>There are optional CPU control parameters for weight shares, enforcement
|
||||
intervals for runtime quotas, and a quota for maximum allowed
|
||||
bandwidth:</para>
|
||||
<para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para><literal>cpu_shares</literal> specifies the proportional
|
||||
weighted share for the domain. If this element is omitted, the
|
||||
service defaults to the OS provided defaults. There is no unit
|
||||
for the value; it is a relative measure based on the setting of
|
||||
other VMs. For example, a VM configured with value 2048 gets
|
||||
twice as much CPU time as a VM configured with value
|
||||
1024.</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para><literal>cpu_period</literal> specifies the enforcement
|
||||
interval (unit: microseconds) for QEMU and LXC hypervisors.
|
||||
Within a period, each VCPU of the domain is not allowed to
|
||||
consume more than the quota worth of runtime. The value should
|
||||
be in range <literal>[1000, 1000000]</literal>. A period with
|
||||
value 0 means no value.</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para><literal>cpu_quota</literal> specifies the maximum allowed
|
||||
bandwidth (unit: microseconds). A domain with a negative-value quota
|
||||
indicates that the domain has infinite bandwidth, which means that
|
||||
it is not bandwidth controlled. The value should be in range
|
||||
<literal>[1000, 18446744073709551]</literal> or less than 0. A
|
||||
quota with value 0 means no value. You can use this feature to
|
||||
ensure that all vCPUs run at the same speed. For example:</para>
|
||||
<screen><prompt>$</prompt> <userinput>nova flavor-key m1.low_cpu set quota:cpu_quota=10000</userinput>
|
||||
<prompt>$</prompt> <userinput>nova flavor-key m1.low_cpu set quota:cpu_period=20000</userinput></screen>
|
||||
<para>In this example, the instance of
|
||||
<literal>m1.low_cpu</literal> can only consume a maximum
|
||||
of 50% CPU of a physical CPU computing capability.</para>
|
||||
<para>Through disk I/O quotas, you can set maximum disk write to
|
||||
10 MB per second for a VM user. For example:</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry><term>Disk tuning</term>
|
||||
<listitem><para>Using disk I/O quotas, you can set maximum disk write to 10 MB per second for a VM user. For
|
||||
example:</para>
|
||||
<screen><prompt>$</prompt> <userinput>nova flavor-key m1.medium set disk_write_bytes_sec=10485760</userinput></screen>
|
||||
<para>The disk I/O options are:</para>
|
||||
<itemizedlist>
|
||||
@ -178,32 +198,67 @@
|
||||
<listitem>
|
||||
<para>vif_outbound_peak</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
<para>Incoming and outgoing traffic can be shaped independently.
|
||||
The bandwidth element can have at most one inbound and at most
|
||||
one outbound child element. Leaving any of these children
|
||||
element out result in no quality of service (QoS) applied on
|
||||
that traffic direction. So, when you want to shape only the
|
||||
network's incoming traffic, use inbound only, and vice versa.
|
||||
Each of these elements have one mandatory attribute
|
||||
average.</para>
|
||||
<para>It specifies average bit rate on the interface being shaped.
|
||||
Then there are two optional attributes: peak, which specifies
|
||||
maximum rate at which bridge can send data, and burst, amount
|
||||
of bytes that can be burst at peak speed. Accepted values for
|
||||
attributes are integer numbers, The units for average and peak
|
||||
attributes are kilobytes per second, and for the burst just
|
||||
kilobytes. The rate is shared equally within domains connected
|
||||
to the network.</para>
|
||||
<para>This example configures a bandwidth limit for instance
|
||||
network traffic:</para>
|
||||
</itemizedlist></listitem>
|
||||
</varlistentry>
|
||||
<varlistentry><term>Bandwidth I/O</term>
|
||||
<listitem><para>Incoming and outgoing traffic can be shaped independently. The bandwidth element can have at
|
||||
most one inbound and at most one outbound child element. If you leave any of
|
||||
these children element out, no quality of service (QoS) is applied on that
|
||||
traffic direction. So, if you want to shape only the network's incoming traffic,
|
||||
use inbound only (and vice versa). Each element has one mandatory attribute
|
||||
average, which specifies the average bit rate on the interface being shaped.</para>
|
||||
<para>There are also two optional attributes (integer): <option>peak</option>, which
|
||||
specifies maximum rate at which bridge can send data (kilobytes/second), and
|
||||
<option>burst</option>, the amount of bytes that can be burst at peak speed
|
||||
(kilobytes). The rate is shared equally within domains connected to the
|
||||
network.</para>
|
||||
<para>The following example configures a bandwidth limit for instance network
|
||||
traffic:</para>
|
||||
<screen><prompt>$</prompt> <userinput>nova flavor-key m1.small set quota:inbound_average=10240</userinput>
|
||||
<prompt>$</prompt> <userinput>nova flavor-key m1.small set quota:outbound_average=10240</userinput></screen>
|
||||
<para>Flavors can also be assigned to particular projects. By
|
||||
<prompt>$</prompt> <userinput>nova flavor-key m1.small set quota:outbound_average=10240</userinput></screen></listitem>
|
||||
</varlistentry>
|
||||
<varlistentry><term>Watchdog behavior</term>
|
||||
<listitem><para>For the <systemitem>libvirt</systemitem> driver, you can enable and set the behavior of a
|
||||
virtual hardware watchdog device for each flavor. Watchdog devices keep an eye
|
||||
on the guest server, and carry out the configured action if the server hangs.
|
||||
The watchdog uses the i6300esb device (emulating a PCI Intel 6300ESB). If
|
||||
<literal>hw_watchdog_action</literal> is not specified, the watchdog is
|
||||
disabled.</para>
|
||||
<para>To set the behavior, use:</para>
|
||||
<screen><prompt>$</prompt> <userinput>nova flavor-key <replaceable>flavorName</replaceable> set hw_watchdog_action=<replaceable>action</replaceable></userinput></screen>
|
||||
<para>Valid <replaceable>action</replaceable> values are:</para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para><literal>disabled</literal>—(default) The device is not
|
||||
attached.</para></listitem>
|
||||
<listitem>
|
||||
<para><literal>reset</literal>—Forcefully reset the guest.
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para><literal>poweroff</literal>—Forcefully power off the
|
||||
guest.</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para><literal>pause</literal>—Pause the guest.</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para><literal>none</literal>—Only enable the watchdog; do
|
||||
nothing if the server hangs.</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
<note><para>Watchdog behavior set using a specific image's properties will override behavior set using
|
||||
flavors.</para></note>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry><term>Instance VIF traffic control</term>
|
||||
<listitem><para>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:</para>
|
||||
<screen><prompt>$</prompt> <userinput>nova flavor-create --is-public false p1.medium auto 512 40 4</userinput>
|
||||
<prompt>$</prompt> <userinput>nova flavor-access-add 259d06a0-ba6d-4e60-b42d-ab3144411d58 86f94150ed744e08be565c2ff608eef9</userinput></screen>
|
||||
<prompt>$</prompt> <userinput>nova flavor-access-add 259d06a0-ba6d-4e60-b42d-ab3144411d58 86f94150ed744e08be565c2ff608eef9</userinput></screen></listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</section>
|
||||
|
@ -10,6 +10,12 @@
|
||||
simply, a flavor is an available hardware configuration for a
|
||||
server. It defines the <quote>size</quote> of a virtual server
|
||||
that can be launched.</para>
|
||||
<note>
|
||||
<para>Flavors can also determine on which compute host a flavor
|
||||
can be used to launch an instance. For information
|
||||
about customizing flavors, refer to the <link
|
||||
xlink:href="http://docs.openstack.org/admin-guide-cloud/content/"
|
||||
><citetitle>OpenStack Cloud Administrator Guide</citetitle></link>.</para></note>
|
||||
<para>A flavor consists of the following parameters:</para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
|
Loading…
Reference in New Issue
Block a user