Before granting access to tenants, you must configure the auto scale groups solution. You can use auto scaling starting from VMware Cloud Director 10.2.2.

  1. Log in directly or by using an SSH client to the OS of any of the cells in the cluster as root.
  2. Enable metric data collection by setting up the metrics collection in a Cassandra database or collect metrics without metrics data persistence.
  3. Enable the publishing of metrics.
    /opt/vmware/vcloud-director/bin/cell-management-tool manage-config -n statsFeeder.metrics.publishing.enabled -v true
  4. Create a metrics.groovy file in the /tmp folder with the following contents.
    configuration {
        metric("cpu.ready.summation") {
            currentInterval=20
            historicInterval=20
            entity="VM"
            instance=""
            minReportingInterval=300
            aggregator="AVERAGE"
        }
    }
  5. Import the file.
    $VCLOUD_HOME/bin/cell-management-tool configure-metrics --metrics-config /tmp/metrics.groovy
  6. If you previously configured Cassandra, update the Cassandra schema by providing the correct nodes addresses, database authentication details, port and metrics time to live in days.
    $VCLOUD_HOME/bin/cell-management-tool cassandra –configure –cluster-nodes nodes_IP_addresses –username cassandra –password cassandra_password –port port_number –ttl TTL_days –update-schema
  7. If you run the cell with a CA-signed certificate, to enable auto scaling, run the following command.
    $VCLOUD_HOME/bin/cell-management-tool configure-autoscale --set enabled=true
    $VCLOUD_HOME/bin/cell-management-tool configure-autoscale --set username=<username> 
    $VCLOUD_HOME/bin/cell-management-tool configure-autoscale --encrypt --set password=<password>

    When running the command from the terminal, escape any special characters using the backslash (\) sign.

  8. Restart the cell.
    service vmware-vcd restart
  9. Publish or unpublish the plug-in to an organization.