|
23 | 23 | --> |
24 | 24 | <section id="changing-service-offering-for-vm"> |
25 | 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.<inlinemediaobject> |
| 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> |
33 | 34 | <imageobject> |
34 | 35 | <imagedata fileref="./images/stop-instance-icon.png"/> |
35 | 36 | </imageobject> |
36 | 37 | <textobject> |
37 | 38 | <phrase>StopButton.png: button to stop a VM</phrase> |
38 | 39 | </textobject> |
39 | 40 | </inlinemediaobject> |
40 | | - </para></listitem> |
41 | | - <listitem><para>Click the Change Service button.<inlinemediaobject> |
42 | | - <imageobject> |
43 | | - <imagedata fileref="./images/change-service-icon.png"/> |
44 | | - </imageobject> |
45 | | - <textobject> |
46 | | - <phrase>ChangeServiceButton.png: button to change the service of a |
47 | | - VM</phrase> |
48 | | - </textobject> |
49 | | - </inlinemediaobject></para> |
50 | | - <para>The Change service dialog box is displayed.</para></listitem> |
51 | | - <listitem><para>Select the offering you want to apply to the selected VM.</para></listitem> |
52 | | - <listitem><para>Click OK.</para></listitem> |
53 | | - </orderedlist> |
| 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> |
54 | 55 | <section id="change-cpu-ram-for-vm"> |
55 | | - <!-- CLOUDSTACK-658 --> |
| 56 | + <!-- CS-17394 --> |
56 | 57 | <title>CPU and Memory Scaling for Running VMs</title> |
57 | 58 | <para>(Supported on VMware and XenServer)</para> |
58 | 59 | <para>It is not always possible to accurately predict the CPU and RAM requirements |
59 | 60 | when you first deploy a VM. |
60 | | - You might need to increase or decrease these resources at any time during the life of a VM. |
| 61 | + You might need to increase these resources at any time during the life of a VM. |
61 | 62 | You can dynamically modify CPU and RAM levels to |
62 | | - change these resources for a running VM without incurring any downtime.</para> |
| 63 | + scale up these resources for a running VM without incurring any downtime.</para> |
63 | 64 | <para>Dynamic CPU and RAM scaling can be used in the following cases:</para> |
64 | 65 | <itemizedlist> |
65 | | - <listitem><para>New VMs that are created |
66 | | - after the installation of &PRODUCT; 4.2. |
67 | | - If you are upgrading from a previous version of &PRODUCT;, |
68 | | - your existing VMs created with previous versions |
69 | | - will not have the dynamic scaling capability.</para> |
70 | | - </listitem> |
71 | 66 | <listitem><para>User VMs on hosts running VMware and XenServer.</para></listitem> |
72 | 67 | <listitem><para>System VMs on VMware.</para></listitem> |
73 | | - <listitem><para>VM Tools or XenServer Tools must be installed on the virtual machine.</para></listitem> |
| 68 | + <listitem><para>VMware Tools or XenServer Tools must be installed on the virtual machine.</para></listitem> |
74 | 69 | <listitem><para>The new requested CPU and RAM values must be within the constraints allowed by the hypervisor |
75 | 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> |
76 | 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 "dynamic scalable" is set to true.</para></listitem> |
| 89 | + <listitem><para>Install Xen tools (for XenServer hosts) or VMware Tools (for VMware hosts) on each VM |
| 90 | + if they are not already installed.</para></listitem> |
| 91 | + <listitem><para>Stop the VM.</para></listitem> |
| 92 | + <listitem><para>Click the isDynamic Scaling checkbox.</para></listitem> |
| 93 | + <listitem><para>Restart the VM.</para></listitem> |
| 94 | + </orderedlist> |
| 95 | + </section> |
| 96 | + <section id="configure-dynamic-scaling"> |
| 97 | + <title>Configuring Dynamic CPU and RAM Scaling</title> |
77 | 98 | <para>To configure this feature, use the following new global configuration variables:</para> |
78 | 99 | <itemizedlist> |
79 | 100 | <listitem><para>enable.dynamic.scale.vm: Set to True to enable the feature. By default, the feature is turned off.</para></listitem> |
80 | 101 | <listitem><para>scale.retry: How many times to attempt the scaling operation. Default = 2.</para></listitem> |
81 | 102 | </itemizedlist> |
| 103 | + </section> |
| 104 | + <section id="dynamic-scaling-howto"> |
| 105 | + <title>How to Dynamically Scale CPU and RAM</title> |
82 | 106 | <para>To modify the CPU and/or RAM capacity of a virtual machine, |
83 | 107 | you need to change |
84 | 108 | the compute offering of the VM to a new compute offering that has the |
|
92 | 116 | If there is no host in the cluster that can fulfill the requested level of CPU and RAM, |
93 | 117 | the scaling operation will fail. |
94 | 118 | The VM will continue to run as it was before.</para> |
95 | | - <warning><para>&PRODUCT; will not check to be sure that the new CPU and RAM levels are compatible |
96 | | - with the OS running on the VM.</para></warning> |
| 119 | + </section> |
| 120 | + <section id="dynamic-scaling-limitations"> |
| 121 | + <title>Limitations</title> |
| 122 | + <itemizedlist> |
| 123 | + <listitem><para>You can not do dynamic scaling for system VMs on XenServer.</para></listitem> |
| 124 | + <listitem><para>&PRODUCT; will not check to be sure that the new CPU and RAM levels are compatible |
| 125 | + with the OS running on the VM.</para></listitem> |
| 126 | + <listitem><para>When scaling memory or CPU for a Linux VM on VMware, you might |
| 127 | + need to run scripts in addition to the other steps mentioned above. |
| 128 | + For more information, see |
| 129 | + <ulink url="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1012764">Hot adding memory in Linux (1012764)</ulink> |
| 130 | + in the VMware Knowledge Base.</para></listitem> |
| 131 | + <listitem><para>(VMware) If resources are not available on the current host, |
| 132 | + scaling up will fail on VMware because of a known issue where &PRODUCT; and vCenter calculate the available capacity differently. |
| 133 | + For more information, see |
| 134 | + <ulink url="https://issues.apache.org/jira/browse/CLOUDSTACK-1809">https://issues.apache.org/jira/browse/CLOUDSTACK-1809</ulink>.</para></listitem> |
| 135 | + <listitem><para>On VMs running Linux 64-bit and Windows 7 32-bit operating systems, |
| 136 | + if the VM is initially assigned a RAM of less than 3 GB, |
| 137 | + it can be dynamically scaled up to 3 GB, but not more. |
| 138 | + This is due to a known issue with these operating systems, which will freeze |
| 139 | + if an attempt is made to dynamically scale from less than 3 GB to more than 3 GB. |
| 140 | + </para></listitem> |
| 141 | + </itemizedlist> |
97 | 142 | </section> |
98 | 143 | </section> |
99 | 144 |
|
0 commit comments