tree: 20dfc10be9fc71b5eb710ba7ac30840f364febcf [path history] [tgz]
  1. README.md
  2. xos_auto_scaling_app.py
xos-apps/auto-scale/README.md

#How to

Ensure that the CORD config is installed and then run:

python xos_auto_scaling_app.py

This command will start the autoscaling application and start REST server on 9991 port.

To verify the autoscaling application:

  1. Login to cloudlab compute nodes
  2. On each compute node, open /etc/ceilometer/pipeline.yaml file
  3. Change the polling interval for "cpu_source" meters from 600 to 60 as shown below From:
    • name: cpu_source interval: 600 meters: - "cpu" sinks: - cpu_sink

To: - name: cpu_source interval: 60 meters: - "cpu" sinks: - cpu_sink 4) sudo service ceilometer-agent-compute restart 5) With this change, the autoscaling application should start receiving the CPU utilization samples every 60 seconds 6) The REST API to retrieve the cpu utilization samples from autoscaling application: http://<app_ip>:9991/autoscaledata