Más contenido relacionado Similar a Autoscaling Cloud Foundry with BOSH (20) Autoscaling Cloud Foundry with BOSH4. © 2014 Nippon Telegraph and Telephone Corporation
Problem:
System Load is
Not Fixed
7. © 2014 Nippon Telegraph and Telephone Corporation
Manually Scaling?
Always monitor load?
8. © 2014 Nippon Telegraph and Telephone Corporation
Impossible
No one wants to do such a boring job
9. © 2014 Nippon Telegraph and Telephone Corporation
Solution:
BOSH AutoScaler
11. © 2014 Nippon Telegraph and Telephone Corporation
Architecture
Overview
12. © 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)
13. © 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)
16. © 2014 Nippon Telegraph and Telephone Corporation
Policy Definitions
17. © 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"
24. © 2014 Nippon Telegraph and Telephone Corporation
Getting Started
It’s easy to plug in
28. © 2014 Nippon Telegraph and Telephone Corporation
Optimize
Running Costs with
BOSH AutoScaler