Before granting access to tenants, you must configure the auto scale groups solution.

For multi-cell environments, you can run the commands on a single cell. VMware Cloud Director stores the configuration in the database which all other cells can use.

  1. Log in directly or by using an SSH client to the OS of any of the cells in the cluster as root.
  2. To enable metric data collection, choose between collecting data with or without metrics data persistence.
    • To collect metrics with metrics data persistence, set up the metrics collection in a Cassandra database. See Install and Configure a Cassandra Database for Storing Historic Metroc Data in the VMware Cloud Director Installation, Configuration, and Upgrade Guide.
    • To collect metrics data without data persistence, run the following commands:
      $VCLOUD_HOME/bin/cell-management-tool manage-config -n statsFeeder.metrics.collect.only -v true
      Note: Configuring a Cassandra database is not necessary for this option.
  3. Enable the publishing of metrics.
    $VCLOUD_HOME/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 configured Cassandra in step 2, 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. Enable auto scaling.
    1. Create an auto scale system user.
    2. To configure the auto scale function, use the user name from step 7a.
      $VCLOUD_HOME/bin/cell-management-tool configure-autoscale --set enabled=true
      $VCLOUD_HOME/bin/cell-management-tool configure-autoscale --set username=<user_name> 
      $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. If your environment is for development or testing purposes and you run the cell with self-signed certificates, run the following command.
    $VCLOUD_HOME/bin/cell-management-tool configure-autoscale --set enableHostnameVerification=false 
  9. Restart the cell.
    service vmware-vcd restart
  10. Publish or unpublish the plug-in to an organization.