Skip to content

Commit 3077c99

Browse files
author
radhikap
committed
format changes to the file
1 parent 95e4b7a commit 3077c99

1 file changed

Lines changed: 166 additions & 122 deletions

File tree

‎docs/en-US/changing-service-offering-for-vm.xml‎

Lines changed: 166 additions & 122 deletions
Original file line numberDiff line numberDiff line change
@@ -22,125 +22,169 @@
2222
under the License.
2323
-->
2424
<section id="changing-service-offering-for-vm">
25-
<title>Changing the Service Offering for a VM</title>
26-
<para>To upgrade or downgrade the level of compute resources available to a virtual machine, you can change the VM's compute offering.</para>
27-
<orderedlist>
28-
<listitem><para>Log in to the &PRODUCT; UI as a user or admin.</para></listitem>
29-
<listitem><para>In the left navigation, click Instances.</para></listitem>
30-
<listitem><para>Choose the VM that you want to work with.</para></listitem>
31-
<listitem><para>(Skip this step if you have enabled dynamic VM scaling; see <xref linkend="change-cpu-ram-for-vm"/>.)</para>
32-
<para>Click the Stop button to stop the VM.
33-
<inlinemediaobject>
34-
<imageobject>
35-
<imagedata fileref="./images/stop-instance-icon.png"/>
36-
</imageobject>
37-
<textobject>
38-
<phrase>StopButton.png: button to stop a VM</phrase>
39-
</textobject>
40-
</inlinemediaobject>
41-
</para></listitem>
42-
<listitem><para>Click the Change Service button.<inlinemediaobject>
43-
<imageobject>
44-
<imagedata fileref="./images/change-service-icon.png"/>
45-
</imageobject>
46-
<textobject>
47-
<phrase>ChangeServiceButton.png: button to change the service of a
48-
VM</phrase>
49-
</textobject>
50-
</inlinemediaobject></para>
51-
<para>The Change service dialog box is displayed.</para></listitem>
52-
<listitem><para>Select the offering you want to apply to the selected VM.</para></listitem>
53-
<listitem><para>Click OK.</para></listitem>
54-
</orderedlist>
55-
<section id="change-cpu-ram-for-vm">
56-
<!-- CS-17394 -->
57-
<title>CPU and Memory Scaling for Running VMs</title>
58-
<para>(Supported on VMware and XenServer)</para>
59-
<para>It is not always possible to accurately predict the CPU and RAM requirements
60-
when you first deploy a VM.
61-
You might need to increase these resources at any time during the life of a VM.
62-
You can dynamically modify CPU and RAM levels to
63-
scale up these resources for a running VM without incurring any downtime.</para>
64-
<para>Dynamic CPU and RAM scaling can be used in the following cases:</para>
65-
<itemizedlist>
66-
<listitem><para>User VMs on hosts running VMware and XenServer.</para></listitem>
67-
<listitem><para>System VMs on VMware.</para></listitem>
68-
<listitem><para>VMware Tools or XenServer Tools must be installed on the virtual machine.</para></listitem>
69-
<listitem><para>The new requested CPU and RAM values must be within the constraints allowed by the hypervisor
70-
and the VM operating system.</para></listitem>
71-
<listitem><para>New VMs that are created
72-
after the installation of &PRODUCT; 4.2
73-
can use the dynamic scaling feature.
74-
If you are upgrading from a previous version of &PRODUCT;,
75-
your existing VMs created with previous versions
76-
will not have the dynamic scaling capability
77-
unless you update them using the following procedure.</para>
78-
</listitem>
79-
</itemizedlist>
80-
</section>
81-
<section id="update-vms">
82-
<title>Updating Existing VMs</title>
83-
<para>If you are upgrading from a previous version of &PRODUCT;,
84-
and you want your existing VMs created with previous versions
85-
to have the dynamic scaling capability,
86-
update the VMs using the following steps:</para>
87-
<orderedlist>
88-
<listitem><para>Make sure the zone-level setting enable.dynamic.scale.vm is set to true.
89-
In the left navigation bar of the &PRODUCT; UI, click Infrastructure, then click Zones, click the zone you want, and click the Settings tab.</para></listitem>
90-
<listitem><para>Install Xen tools (for XenServer hosts) or VMware Tools (for VMware hosts) on each VM
91-
if they are not already installed.</para></listitem>
92-
<listitem><para>Stop the VM.</para></listitem>
93-
<listitem><para>Click the Edit button.</para></listitem>
94-
<listitem><para>Click the Dynamically Scalable checkbox.</para></listitem>
95-
<listitem><para>Click Apply.</para></listitem>
96-
<listitem><para>Restart the VM.</para></listitem>
97-
</orderedlist>
98-
</section>
99-
<section id="configure-dynamic-scaling">
100-
<title>Configuring Dynamic CPU and RAM Scaling</title>
101-
<para>To configure this feature, use the following new global configuration variables:</para>
102-
<itemizedlist>
103-
<listitem><para>enable.dynamic.scale.vm: Set to True to enable the feature. By default, the feature is turned off.</para></listitem>
104-
<listitem><para>scale.retry: How many times to attempt the scaling operation. Default = 2.</para></listitem>
105-
</itemizedlist>
106-
</section>
107-
<section id="dynamic-scaling-howto">
108-
<title>How to Dynamically Scale CPU and RAM</title>
109-
<para>To modify the CPU and/or RAM capacity of a virtual machine,
110-
you need to change
111-
the compute offering of the VM to a new compute offering that has the
112-
desired CPU and RAM values. You can use the same steps
113-
described above in <xref linkend="changing-service-offering-for-vm"/>, but skip the step where you
114-
stop the virtual machine. Of course, you might have to create a new compute offering first.</para>
115-
<para>When you submit a dynamic scaling request,
116-
the resources will be scaled up on the current host if possible.
117-
If the host does not have enough resources, the VM will be live migrated
118-
to another host in the same cluster.
119-
If there is no host in the cluster that can fulfill the requested level of CPU and RAM,
120-
the scaling operation will fail.
121-
The VM will continue to run as it was before.</para>
122-
</section>
123-
<section id="dynamic-scaling-limitations">
124-
<title>Limitations</title>
125-
<itemizedlist>
126-
<listitem><para>You can not do dynamic scaling for system VMs on XenServer.</para></listitem>
127-
<listitem><para>&PRODUCT; will not check to be sure that the new CPU and RAM levels are compatible
128-
with the OS running on the VM.</para></listitem>
129-
<listitem><para>When scaling memory or CPU for a Linux VM on VMware, you might
130-
need to run scripts in addition to the other steps mentioned above.
131-
For more information, see
132-
<ulink url="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;cmd=displayKC&amp;externalId=1012764">Hot adding memory in Linux (1012764)</ulink>
133-
in the VMware Knowledge Base.</para></listitem>
134-
<listitem><para>(VMware) If resources are not available on the current host,
135-
scaling up will fail on VMware because of a known issue where &PRODUCT; and vCenter calculate the available capacity differently.
136-
For more information, see
137-
<ulink url="https://issues.apache.org/jira/browse/CLOUDSTACK-1809">https://issues.apache.org/jira/browse/CLOUDSTACK-1809</ulink>.</para></listitem>
138-
<listitem><para>On VMs running Linux 64-bit and Windows 7 32-bit operating systems,
139-
if the VM is initially assigned a RAM of less than 3 GB,
140-
it can be dynamically scaled up to 3 GB, but not more.
141-
This is due to a known issue with these operating systems, which will freeze
142-
if an attempt is made to dynamically scale from less than 3 GB to more than 3 GB.
143-
</para></listitem>
144-
</itemizedlist>
145-
</section>
146-
</section>
25+
<title>Changing the Service Offering for a VM</title>
26+
<para>To upgrade or downgrade the level of compute resources available to a virtual machine, you
27+
can change the VM's compute offering.</para>
28+
<orderedlist>
29+
<listitem>
30+
<para>Log in to the &PRODUCT; UI as a user or admin.</para>
31+
</listitem>
32+
<listitem>
33+
<para>In the left navigation, click Instances.</para>
34+
</listitem>
35+
<listitem>
36+
<para>Choose the VM that you want to work with.</para>
37+
</listitem>
38+
<listitem>
39+
<para>(Skip this step if you have enabled dynamic VM scaling; see <xref
40+
linkend="change-cpu-ram-for-vm"/>.)</para>
41+
<para>Click the Stop button to stop the VM. <inlinemediaobject>
42+
<imageobject>
43+
<imagedata fileref="./images/stop-instance-icon.png"/>
44+
</imageobject>
45+
<textobject>
46+
<phrase>StopButton.png: button to stop a VM</phrase>
47+
</textobject>
48+
</inlinemediaobject>
49+
</para>
50+
</listitem>
51+
<listitem>
52+
<para>Click the Change Service button.<inlinemediaobject>
53+
<imageobject>
54+
<imagedata fileref="./images/change-service-icon.png"/>
55+
</imageobject>
56+
<textobject>
57+
<phrase>ChangeServiceButton.png: button to change the service of a VM</phrase>
58+
</textobject>
59+
</inlinemediaobject></para>
60+
<para>The Change service dialog box is displayed.</para>
61+
</listitem>
62+
<listitem>
63+
<para>Select the offering you want to apply to the selected VM.</para>
64+
</listitem>
65+
<listitem>
66+
<para>Click OK.</para>
67+
</listitem>
68+
</orderedlist>
69+
<section id="change-cpu-ram-for-vm">
70+
<!-- CS-17394 -->
71+
<title>CPU and Memory Scaling for Running VMs</title>
72+
<para>(Supported on VMware and XenServer)</para>
73+
<para>It is not always possible to accurately predict the CPU and RAM requirements when you
74+
first deploy a VM. You might need to increase these resources at any time during the life of a
75+
VM. You can dynamically modify CPU and RAM levels to scale up these resources for a running VM
76+
without incurring any downtime.</para>
77+
<para>Dynamic CPU and RAM scaling can be used in the following cases:</para>
78+
<itemizedlist>
79+
<listitem>
80+
<para>User VMs on hosts running VMware and XenServer.</para>
81+
</listitem>
82+
<listitem>
83+
<para>System VMs on VMware.</para>
84+
</listitem>
85+
<listitem>
86+
<para>VMware Tools or XenServer Tools must be installed on the virtual machine.</para>
87+
</listitem>
88+
<listitem>
89+
<para>The new requested CPU and RAM values must be within the constraints allowed by the
90+
hypervisor and the VM operating system.</para>
91+
</listitem>
92+
<listitem>
93+
<para>New VMs that are created after the installation of &PRODUCT; 4.2 can use the dynamic
94+
scaling feature. If you are upgrading from a previous version of &PRODUCT;, your existing
95+
VMs created with previous versions will not have the dynamic scaling capability unless you
96+
update them using the following procedure.</para>
97+
</listitem>
98+
</itemizedlist>
99+
</section>
100+
<section id="update-vms">
101+
<title>Updating Existing VMs</title>
102+
<para>If you are upgrading from a previous version of &PRODUCT;, and you want your existing VMs
103+
created with previous versions to have the dynamic scaling capability, update the VMs using
104+
the following steps:</para>
105+
<orderedlist>
106+
<listitem>
107+
<para>Make sure the zone-level setting enable.dynamic.scale.vm is set to true. In the left
108+
navigation bar of the &PRODUCT; UI, click Infrastructure, then click Zones, click the zone
109+
you want, and click the Settings tab.</para>
110+
</listitem>
111+
<listitem>
112+
<para>Install Xen tools (for XenServer hosts) or VMware Tools (for VMware hosts) on each VM
113+
if they are not already installed.</para>
114+
</listitem>
115+
<listitem>
116+
<para>Stop the VM.</para>
117+
</listitem>
118+
<listitem>
119+
<para>Click the Edit button.</para>
120+
</listitem>
121+
<listitem>
122+
<para>Click the Dynamically Scalable checkbox.</para>
123+
</listitem>
124+
<listitem>
125+
<para>Click Apply.</para>
126+
</listitem>
127+
<listitem>
128+
<para>Restart the VM.</para>
129+
</listitem>
130+
</orderedlist>
131+
</section>
132+
<section id="configure-dynamic-scaling">
133+
<title>Configuring Dynamic CPU and RAM Scaling</title>
134+
<para>To configure this feature, use the following new global configuration variables:</para>
135+
<itemizedlist>
136+
<listitem>
137+
<para>enable.dynamic.scale.vm: Set to True to enable the feature. By default, the feature is
138+
turned off.</para>
139+
</listitem>
140+
<listitem>
141+
<para>scale.retry: How many times to attempt the scaling operation. Default = 2.</para>
142+
</listitem>
143+
</itemizedlist>
144+
</section>
145+
<section id="dynamic-scaling-howto">
146+
<title>How to Dynamically Scale CPU and RAM</title>
147+
<para>To modify the CPU and/or RAM capacity of a virtual machine, you need to change the compute
148+
offering of the VM to a new compute offering that has the desired CPU and RAM values. You can
149+
use the same steps described above in <xref linkend="changing-service-offering-for-vm"/>, but
150+
skip the step where you stop the virtual machine. Of course, you might have to create a new
151+
compute offering first.</para>
152+
<para>When you submit a dynamic scaling request, the resources will be scaled up on the current
153+
host if possible. If the host does not have enough resources, the VM will be live migrated to
154+
another host in the same cluster. If there is no host in the cluster that can fulfill the
155+
requested level of CPU and RAM, the scaling operation will fail. The VM will continue to run
156+
as it was before.</para>
157+
</section>
158+
<section id="dynamic-scaling-limitations">
159+
<title>Limitations</title>
160+
<itemizedlist>
161+
<listitem>
162+
<para>You can not do dynamic scaling for system VMs on XenServer.</para>
163+
</listitem>
164+
<listitem>
165+
<para>&PRODUCT; will not check to be sure that the new CPU and RAM levels are compatible
166+
with the OS running on the VM.</para>
167+
</listitem>
168+
<listitem>
169+
<para>When scaling memory or CPU for a Linux VM on VMware, you might need to run scripts in
170+
addition to the other steps mentioned above. For more information, see <ulink
171+
url="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;cmd=displayKC&amp;externalId=1012764"
172+
>Hot adding memory in Linux (1012764)</ulink> in the VMware Knowledge Base.</para>
173+
</listitem>
174+
<listitem>
175+
<para>(VMware) If resources are not available on the current host, scaling up will fail on
176+
VMware because of a known issue where &PRODUCT; and vCenter calculate the available
177+
capacity differently. For more information, see <ulink
178+
url="https://issues.apache.org/jira/browse/CLOUDSTACK-1809"
179+
>https://issues.apache.org/jira/browse/CLOUDSTACK-1809</ulink>.</para>
180+
</listitem>
181+
<listitem>
182+
<para>On VMs running Linux 64-bit and Windows 7 32-bit operating systems, if the VM is
183+
initially assigned a RAM of less than 3 GB, it can be dynamically scaled up to 3 GB, but
184+
not more. This is due to a known issue with these operating systems, which will freeze if
185+
an attempt is made to dynamically scale from less than 3 GB to more than 3 GB. </para>
186+
</listitem>
187+
</itemizedlist>
188+
</section>
189+
</section>
190+

0 commit comments

Comments
 (0)