Fix flavor extra_spec usages
"nova-manage" command is deprecated and "nova flavor-key" can set flavor extra_spec instead. This patch changes the usage to show "nova flavor-key". In addition, "nova flavor-set" command does not exist. This patch fixes it with "nova flavor-key" command. Change-Id: If41899cf0af463ccc2db5127d53398f73e3a26a7
This commit is contained in:
parent
2971d4f0bc
commit
ee3139ef4f
@ -104,10 +104,10 @@ volume-type-delete Delete a specific flavor</computeroutput></screen>
|
|||||||
available to a VM, disk tuning, bandwidth I/O, and instance
|
available to a VM, disk tuning, bandwidth I/O, and instance
|
||||||
VIF traffic control.</para>
|
VIF traffic control.</para>
|
||||||
<para>You can configure the CPU limits with control parameters
|
<para>You can configure the CPU limits with control parameters
|
||||||
with the nova-manage tool. For example, to configure the I/O
|
with the nova tool. For example, to configure the I/O
|
||||||
limit:</para>
|
limit:</para>
|
||||||
<screen><prompt>#</prompt> <userinput>nova-manage flavor set_key --name m1.small --key quota:read_bytes_sec --value 10240000</userinput>
|
<screen><prompt>#</prompt> <userinput>nova flavor-key m1.small set quota:read_bytes_sec=10240000</userinput>
|
||||||
<prompt>#</prompt> <userinput>nova-manage flavor set_key --name m1.small --key quota:write_bytes_sec --value 10240000</userinput></screen>
|
<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,
|
<para>There are CPU control parameters for weight shares,
|
||||||
enforcement intervals for runtime quotas, and a quota for
|
enforcement intervals for runtime quotas, and a quota for
|
||||||
maximum allowed bandwidth.</para>
|
maximum allowed bandwidth.</para>
|
||||||
@ -139,7 +139,7 @@ volume-type-delete Delete a specific flavor</computeroutput></screen>
|
|||||||
of 50% CPU of a physical CPU computing capability.</para>
|
of 50% CPU of a physical CPU computing capability.</para>
|
||||||
<para>Through disk I/O quotas, you can set maximum disk write to
|
<para>Through disk I/O quotas, you can set maximum disk write to
|
||||||
10 MB per second for a VM user. For example:</para>
|
10 MB per second for a VM user. For example:</para>
|
||||||
<screen><prompt>#</prompt> <userinput>nova flavor-set m1.medium set disk_write_bytes_sec=10485760</userinput></screen>
|
<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>
|
<para>The disk I/O options are:</para>
|
||||||
<itemizedlist>
|
<itemizedlist>
|
||||||
<listitem>
|
<listitem>
|
||||||
@ -200,8 +200,8 @@ volume-type-delete Delete a specific flavor</computeroutput></screen>
|
|||||||
to the network.</para>
|
to the network.</para>
|
||||||
<para>This example configures a bandwidth limit for instance
|
<para>This example configures a bandwidth limit for instance
|
||||||
network traffic:</para>
|
network traffic:</para>
|
||||||
<screen><prompt>#</prompt> <userinput>nova-manage flavor set_key --name m1.small --key quota:inbound_average --value 10240</userinput>
|
<screen><prompt>#</prompt> <userinput>nova flavor-key m1.small set quota:inbound_average=10240</userinput>
|
||||||
<prompt>#</prompt> <userinput>nova-manage flavor set_key --name m1.small --key quota:outbound_average --value 10240</userinput></screen>
|
<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
|
<para>Flavors can also be assigned to particular projects. By
|
||||||
default, a flavor is public and available to all projects.
|
default, a flavor is public and available to all projects.
|
||||||
Private flavors are only accessible to those on the access
|
Private flavors are only accessible to those on the access
|
||||||
|
Loading…
Reference in New Issue
Block a user