Auto Scale Groups Rules not applying as expected in VMware Cloud Director
search cancel

Auto Scale Groups Rules not applying as expected in VMware Cloud Director

book

Article ID: 402582

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • Auto Scale Group Rule to grow or shrink is not getting applied.
  • Initial VM is deployed successfully.
  • The Monitor section of the Scale Group in the Tenant portal does not show any tasks
  • The Max VM setting of the Scale Group has sufficient capacity for more VMs to be deployed.
  • The /opt/vmware/vcloud-director/autoscale.log on the Cells state that the cpu.ready.summation metric is missing (Missing = true):

    | INFO | ShortScaleGroupId #### | MetricFactory | Scalegroup urn:vcloud:entity:vmware:scalegroup:########-####-####-####-############, Missing one or both metrics cpu.usage.average: false, cpu.ready.summation: true |

Environment

VMware Cloud Director 10.6.x

Cause

This issue occurs if the cpu.ready.summation metric has not been added to Cloud Director's metric configuration.

Resolution

To resolve the issue ensure the cpu.ready.summation metric has been added to Cloud Director's metric configuration by creating a metrics.groovy file and applying it using the cell-management-tool configure-metrics command.
This process is detailed in the documentation on how to Configure and Publish the Auto Scale Plug-in to Your VMware Cloud Director.

After following the steps to add the metric, ensure the Cloud Director service vmware-vcd is restarted on all Cells.
NOTE: restarting the Cloud Director service will make the Cloud Director UI unavailable from that Cell until the service restarts.

service vmware-vcd restart

Additional Information

Auto Scale Groups in the VMware Cloud Director Tenant Portal

To view the configured metrics in Cloud Director, SSH to the Primary Cell as root and run the following command:

sudo -i -u postgres psql vcloud -c "select * from metric_configuration;"