Autoscaling Cloud Foundry with BOSH

3,208 views
2,865 views

Published on

The BOSH AutoScaler enables you to optimize the running costs of your Cloud Foundry deployments.

The BOSH AutoScaler is available at:
https://github.com/nttlabs/nise_bosh

Cloud Foundry Summit 2014.

Published in: Technology, News & Politics

Autoscaling Cloud Foundry with BOSH

  1. 1. © 2014 Nippon Telegraph and Telephone Corporation Problem: System Load is Not Fixed
  2. 2. © 2014 Nippon Telegraph and Telephone Corporation Manually Scaling? Always monitor load?
  3. 3. © 2014 Nippon Telegraph and Telephone Corporation Impossible No one wants to do such a boring job
  4. 4. © 2014 Nippon Telegraph and Telephone Corporation Solution: BOSH AutoScaler
  5. 5. © 2014 Nippon Telegraph and Telephone Corporation Architecture Overview
  6. 6. © 2014 Nippon Telegraph and Telephone Corporation Director BOSH BOSH Client BOSH Scaler (Listener) NATS BOSH NATS Collector AutoScaler (with CF Plugin) Heartbeat Heartbeat (subscribe) process (BOSH::Monitor::Event::Heartbeat) Event Processor process (BOSH::Monitor::Event::Base) Deploy (PUT /deployments) matching rules against log periodically Logging metrics✂@buffers run() Agent Agent Agent Agent Agent CF Varz Collector process (Scaler::CfVarzMetric) CF CF Component CF Component CF Component Collector TSDB Varz Load policies (GET /deployments)
  7. 7. © 2014 Nippon Telegraph and Telephone Corporation Director BOSH BOSH Client BOSH Scaler (Listener) NATS BOSH NATS Collector AutoScaler (with CF Plugin) Heartbeat Heartbeat (subscribe) process (BOSH::Monitor::Event::Heartbeat) Event Processor process (BOSH::Monitor::Event::Base) Deploy (PUT /deployments) matching rules against log periodically Logging metrics✂@buffers run() Agent Agent Agent Agent Agent CF Varz Collector process (Scaler::CfVarzMetric) CF CF Component CF Component CF Component Collector TSDB Varz Load policies (GET /deployments)
  8. 8. © 2014 Nippon Telegraph and Telephone Corporation Policy Definitions
  9. 9. © 2014 Nippon Telegraph and Telephone Corporation Defining policies •! Adding “scale” section •! Defining conditions for each job •! Various condition classes to define flexible policies !!!" #$%&'"()" " ****" " +($,&'" ""-./+'" """"!"#$%&'"0.12&0" """"""(..,3.4#'"566" """""".12'" """""""",7%72'"86" """"""""1#72'"9" """"""""(.#3727.#+'" """"""""""!"(,$++'":;1<=&0$>&" """""""""""",$0>&0?2@$#'"A6" """"""""""""310$27.#'"566" """"""""""!"(,$++'"B&%.0C<=&0$>&" """""""""""",$0>&0?2@$#'"D6" """"""""""""310$27.#'"566" """"""7#'" """""""",7%72'"5" """"""""(.#3727.#+'" """"""""""!"(,$++'":;1<=&0$>&" """"""""""""+%$,,&0?2@$#'"86" """"""""""""310$27.#'"566" """"""""""!"(,$++'"B&%.0C<=&0$>&" """"""""""""+%$,,&0?2@$#'"96" """"""""""""310$27.#'"566"
  10. 10. © 2014 Nippon Telegraph and Telephone Corporation Web UI
  11. 11. © 2014 Nippon Telegraph and Telephone Corporation Getting Started It’s easy to plug in
  12. 12. © 2014 Nippon Telegraph and Telephone Corporation Optimize Running Costs with BOSH AutoScaler

×