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.
- Log in directly or by using an SSH client to the OS of any of the cells in the cluster as root.
- 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 Configure a Cassandra Database for Storing Historic Metric Data.
- 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.
- Enable the publishing of metrics.
$VCLOUD_HOME/bin/cell-management-tool manage-config -n statsFeeder.metrics.publishing.enabled -v true
- 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" } }
- Import the file.
$VCLOUD_HOME/bin/cell-management-tool configure-metrics --metrics-config /tmp/metrics.groovy
- 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
- Enable auto scaling.
- Create an auto scale system user.
- 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.
- 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
- Restart the cell.
service vmware-vcd restart
- Publish or unpublish the plug-in to an organization.