Search Engine: Elastic

Article ID: 119120, created on Dec 12, 2013, last review on Apr 18, 2018

  • Applies to:
  • Operations Automation 7.0
  • Operations Automation 7.1
  • Operations Automation 7.2
  • Operations Automation 6.0
  • Operations Automation 5.5

Symptoms

A customer tries to enable the CPU autoscaling feature for the PACI service, but the following error message appears:

For CPU autoscaling to work, restart must be allowed.

Cause

The ability to use autoscaling depends on the settings of the Instance Manager (IM) service.

These can be found at the PACI IM server in the /usr/local/share/PACI-im/IM-config.xml file. The parameters can-decrease-when-started for CPU and RAM that define the Autoscale behavior are listed below:

<ve-reconfig>
<VM>
<linux>
...
<ram can-decrease-when-started="false" can-increase-when-started="true"/>   <--- parameter can-increase-when-started has to be "true"
...
<cpu can-change-when-started="true" />   <--- This value has to be "true" <--- <--- parameter can-increase-when-started has to be "true"
</linux>
<windows>
...
<ram can-decrease-when-started="false" can-increase-when-started="true"/>
...
<cpu can-change-when-started="true" />   <--- This value has to be "true"
</windows>
</VM>
<CT>
<linux>
...
<ram can-change-when-started="true" />   <--- Changed from "false" to "true"
...
<cpu can-change-when-started="true" />   <--- Changed from "false" to "true"
</linux>
<windows>
...
<ram can-change-when-started="true" />   <--- Changed from "false" to "true"
...
<cpu can-change-when-started="true" />   <--- Changed from "false" to "true"
</windows>
</CT>
</ve-reconfig>

We see separate sections for Windows and Linux Virtual Machines and containers. The XML tags <cpu> and <ram> must have the true value for the parameters listed above. This will allow the Autoscale feature to be enabled from the Operations Automation Customer Control Panel.

The same settings allow CPU and RAM re-sizing for running virtual environments.

Currently, PACI does not allow you to decrease the RAM amount for Virtual Machines. This is why the XML-tag <ram> for VMs has the following form:

<ram can-decrease-when-started="false" can-increase-when-started="true"/>

Resolution

Perform the following on PACI IM server:

  1. Set the parameters in the /usr/local/share/PACI-im/IM-config.xml file described above to true.

  2. Restart the PACI IM service:

    # service PACI-im stop
    # service terracotta stop
    # service terracotta start
    # service PACI-im start
    

    Starting with POA 5.5.6, it is possible to issue a fast IM restart that does not interrupt background operations like backups creation:

    # service PACI-im fast-restart
    

    Note: During execution of fast-restart PACI Control Panel will be not accessible in PCP/CCP.

5b048d9bddf8048a00aba7e0bdadef37 caea8340e2d186a540518d08602aa065 5356b422f65bdad1c3e9edca5d74a1ae 2554725ed606193dd9bbce21365bed4e e12cea1d47a3125d335d68e6d4e15e07 0871c0b47b3b86ae3b1af4c2942cd0ce 1941880841f714e458ae4dc3d9f3062d 31987597efff5a3a9ce779cc203bbe5e 8c199f0ee4305da1a577740620df4a51 956c448bddc7e1f3585373687602379f 6f1456866eed87488c0f02b298a741c0

Email subscription for changes to this article
Save as PDF