28

Autoscaling Cloud Foundry with BOSH

  • Upload
    iyudai

  • View
    1.473

  • Download
    5

Embed Size (px)

DESCRIPTION

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.

Citation preview

Page 1: Autoscaling Cloud Foundry with BOSH
Page 2: Autoscaling Cloud Foundry with BOSH
Page 3: Autoscaling Cloud Foundry with BOSH
Page 4: Autoscaling Cloud Foundry with BOSH

© 2014 Nippon Telegraph and Telephone Corporation

Problem: System Load is

Not Fixed

Page 5: Autoscaling Cloud Foundry with BOSH
Page 6: Autoscaling Cloud Foundry with BOSH
Page 7: Autoscaling Cloud Foundry with BOSH

© 2014 Nippon Telegraph and Telephone Corporation

Manually Scaling?Always monitor load?

Page 8: Autoscaling Cloud Foundry with BOSH

© 2014 Nippon Telegraph and Telephone Corporation

ImpossibleNo one wants to do such a boring job

Page 9: Autoscaling Cloud Foundry with BOSH

© 2014 Nippon Telegraph and Telephone Corporation

Solution: BOSH AutoScaler

Page 10: Autoscaling Cloud Foundry with BOSH
Page 11: Autoscaling Cloud Foundry with BOSH

© 2014 Nippon Telegraph and Telephone Corporation

Architecture Overview

Page 12: Autoscaling Cloud Foundry with BOSH

© 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()

AgentAgent

AgentAgent

Agent

CF Varz Collector

process (Scaler::CfVarzMetric)

CF

CF Component CF Component

CF Component

Collector

TSDB

Varz

Load policies (GET /deployments)

Page 13: Autoscaling Cloud Foundry with BOSH

© 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()

AgentAgent

AgentAgent

Agent

CF Varz Collector

process (Scaler::CfVarzMetric)

CF

CF Component CF Component

CF Component

Collector

TSDB

Varz

Load policies (GET /deployments)

Page 14: Autoscaling Cloud Foundry with BOSH
Page 15: Autoscaling Cloud Foundry with BOSH
Page 16: Autoscaling Cloud Foundry with BOSH

© 2014 Nippon Telegraph and Telephone Corporation

Policy Definitions

Page 17: Autoscaling Cloud Foundry with BOSH

© 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"

Page 18: Autoscaling Cloud Foundry with BOSH
Page 19: Autoscaling Cloud Foundry with BOSH
Page 20: Autoscaling Cloud Foundry with BOSH

© 2014 Nippon Telegraph and Telephone Corporation

Web UI

Page 21: Autoscaling Cloud Foundry with BOSH
Page 22: Autoscaling Cloud Foundry with BOSH
Page 23: Autoscaling Cloud Foundry with BOSH
Page 24: Autoscaling Cloud Foundry with BOSH

© 2014 Nippon Telegraph and Telephone Corporation

Getting StartedIt’s easy to plug in

Page 25: Autoscaling Cloud Foundry with BOSH
Page 26: Autoscaling Cloud Foundry with BOSH
Page 27: Autoscaling Cloud Foundry with BOSH
Page 28: Autoscaling Cloud Foundry with BOSH

© 2014 Nippon Telegraph and Telephone Corporation

Optimize Running Costs with BOSH AutoScaler