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 and publishing by setting up the metrics collection in a Cassandra database or collect metrics without metrics data persistence.
    • Configure a Cassandra Database for Storing Historic Metric Data
    • To collect metrics data without data persistence, run the following commands:
      /opt/vmware/vcloud-director/bin/cell-management-tool manage-config -n statsFeeder.metrics.collect.only -v true
      /opt/vmware/vcloud-director/bin/cell-management-tool manage-config -n statsFeeder.metrics.publishing.enabled -v true
      
  3. 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"
        }
    }
  4. Import the file.
    $VCLOUD_HOME/bin/cell-management-tool configure-metrics --metrics-config /tmp/metrics.groovy
  5. 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 when running the command from the terminal, escape any special characters using the backslash (\) sign.

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