SlideShare une entreprise Scribd logo
1  sur  14
Télécharger pour lire hors ligne
Heroku add-on
Bounscale
Auto-scaling to your application
13年9月5日木曜日
About this LT
• Bounscaleというオートスケールする
Herokuのadd-onを作っています。紹介
させてください。
• 現在Public Betaでどなたでも使えます!
13年9月5日木曜日
About me
• 大西 正太 @shouta_dev
• (株)DTS
• 2005年位からお仕事でRailsやってます
• 自社サービスも受託開発も
• インプレスさんとの案件はRuby AssociatiomのHPで紹介されました
• http://www.ruby.or.jp/ja/showcase/case19.html
• お酒が大好き!クズ居酒屋が大好き!吉田類の酒場放浪記が大好き!
13年9月5日木曜日
家宝
13年9月5日木曜日
Bounscale?
Heroku上の
サービス運営者が
四六時中
heroku ps:scale
をせずに
突如の高負荷時に一定
のレスポンスタイムを
維持できる
13年9月5日木曜日
Install
$ heroku addons:add bounscale
OR
https://addons.heroku.com/bounscale/
13年9月5日木曜日
Adding agent to your app
# Rails (Rack) :Gem
gem ’bounscale’ #Gemfile
# node.js/express:npm [EXPERIMENTAL]
”dependencies” : {”bounscale”, ”*”} // package.json
app.use(require(’bounscale’)); // app.js
# Play Framework2:sbt [EXPERIMENTAL]
/* Build.scala */
"bounscale" % "bounscale_2.10" % "0.0.1";
resolvers += "r" at "http://bounscale.github.io/maven/";
more detail: https://devcenter.heroku.com/articles/bounscale
13年9月5日木曜日
Open dashboard
13年9月5日木曜日
Settings
13年9月5日木曜日
Auto-scaling config
• レスポンスタイム+別指標値
で負荷を測定
• ビジー率 / スループット / cpu / memory
• グラフ上でスケールアウトの
閾値を指定
13年9月5日木曜日
Dyno History
13年9月5日木曜日
Architecture
AWS
CentOS
ApacheTwitter
Bootstrap
Rack Server
Ruby on Rails
MySQL ZabbixAPI(Apache/PHP)
AWS
CentOS
Provision
Controller
Bizca Multitenant
Zabbix Server
Zabbix Custom Items Zabbix Custom Action
Heroku
Developer
User Addon Provisioning
API
Heroku API
Service Appliction
www.heroku.com
(heroku console)
bounscale
gem
(middleware)
RackServer
Rails/
Application
Heroku LogsResource
Data
UserA
Tenant
Console
Controller
UserA
Tenant
Zabbix Access
Model
Tenant
database
Tenant
database
Tenant
database
zabbix cache
data
UserA
Tenant
UserA
Tenant
Multitenant
Access Model
UserA
Tenant
UserA
Tenant
Heroku Access
Model
UserA
Tenant
UserA
Tenant
Cache Model
MySQL
memory
Item
Throughput
Item
Web Item
Busyness
Item
Trigger
(scale condition)
CPU Item
shell scipt / Ruby
Zabbix database
Tenant1
zabbix history
data
Tenant1
zabbix config
data
Tenant2
zabbix history
data
Tenant2
zabbix config
data
Tenant3
zabbix history
data
Tenant3
zabbix config
data
shell scipt / Ruby
Scaleout
Action
Scalein Action
Resource
Data
Resource
Data
Provisioning Request
Update
Scale Config
Create tenant
Provisioning
Response
Get Cache
Data
Create
tenant
Tenant
Control
Provisioning
Heroku SSO
Show Resource
Graph
Update Zabbix
Cache Collector
Resource
Data
Update&Create
Items, Triggers,
Actions
Collect
History Data
Save Cache
Data
Get cache
Resource
Data
Periodically
Kick
Return
Resource
Resource
Data
Save
Resource
Data
GetItem,
Trigger,Action
Conditionally
Kick Actions
Scale out Scale in
Use this service
Collect and Write
Resource Datas
Request Addon / Request SSO
redirect
Get Logs
(heroku logs)
Extract
resource
datas
Update/Get
Save
Scalein/out
hitories
Bounscale Architecture
13年9月5日木曜日
Try it out !!
$ heroku addons:add bounscale
現在Public Betaで利用は無料です!
13年9月5日木曜日
Resources
• https://devcenter.heroku.com/articles/
bounscale
• https://github.com/bounscale
• http://qiita.com/bounscale/
• https://twitter.com/bounscale/
13年9月5日木曜日

Contenu connexe

En vedette (8)

Heroku
HerokuHeroku
Heroku
 
Solution architecture Amazon web services
Solution architecture Amazon web servicesSolution architecture Amazon web services
Solution architecture Amazon web services
 
Cloudyn - Multi vendor Cloud management
Cloudyn - Multi vendor Cloud management Cloudyn - Multi vendor Cloud management
Cloudyn - Multi vendor Cloud management
 
Cloud Strategy Architecture for multi country deployment
Cloud Strategy Architecture for multi country deploymentCloud Strategy Architecture for multi country deployment
Cloud Strategy Architecture for multi country deployment
 
Getting Started with Heroku
Getting Started with HerokuGetting Started with Heroku
Getting Started with Heroku
 
Introduction to PaaS and Heroku
Introduction to PaaS and HerokuIntroduction to PaaS and Heroku
Introduction to PaaS and Heroku
 
Introduction to Heroku - CCT London 2013
Introduction to Heroku - CCT London 2013Introduction to Heroku - CCT London 2013
Introduction to Heroku - CCT London 2013
 
TOSCA and OpenTOSCA: TOSCA Introduction and OpenTOSCA Ecosystem Overview
TOSCA and OpenTOSCA: TOSCA Introduction and OpenTOSCA Ecosystem OverviewTOSCA and OpenTOSCA: TOSCA Introduction and OpenTOSCA Ecosystem Overview
TOSCA and OpenTOSCA: TOSCA Introduction and OpenTOSCA Ecosystem Overview
 

Dernier

論文紹介:Automated Classification of Model Errors on ImageNet
論文紹介:Automated Classification of Model Errors on ImageNet論文紹介:Automated Classification of Model Errors on ImageNet
論文紹介:Automated Classification of Model Errors on ImageNetToru Tamaki
 
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...Toru Tamaki
 
スマートフォンを用いた新生児あやし動作の教示システム
スマートフォンを用いた新生児あやし動作の教示システムスマートフォンを用いた新生児あやし動作の教示システム
スマートフォンを用いた新生児あやし動作の教示システムsugiuralab
 
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介Yuma Ohgami
 
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)Hiroki Ichikura
 
SOPを理解する 2024/04/19 の勉強会で発表されたものです
SOPを理解する       2024/04/19 の勉強会で発表されたものですSOPを理解する       2024/04/19 の勉強会で発表されたものです
SOPを理解する 2024/04/19 の勉強会で発表されたものですiPride Co., Ltd.
 
TSAL operation mechanism and circuit diagram.pdf
TSAL operation mechanism and circuit diagram.pdfTSAL operation mechanism and circuit diagram.pdf
TSAL operation mechanism and circuit diagram.pdftaisei2219
 
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略Ryo Sasaki
 
論文紹介:Semantic segmentation using Vision Transformers: A survey
論文紹介:Semantic segmentation using Vision Transformers: A survey論文紹介:Semantic segmentation using Vision Transformers: A survey
論文紹介:Semantic segmentation using Vision Transformers: A surveyToru Tamaki
 

Dernier (9)

論文紹介:Automated Classification of Model Errors on ImageNet
論文紹介:Automated Classification of Model Errors on ImageNet論文紹介:Automated Classification of Model Errors on ImageNet
論文紹介:Automated Classification of Model Errors on ImageNet
 
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
 
スマートフォンを用いた新生児あやし動作の教示システム
スマートフォンを用いた新生児あやし動作の教示システムスマートフォンを用いた新生児あやし動作の教示システム
スマートフォンを用いた新生児あやし動作の教示システム
 
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
 
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
 
SOPを理解する 2024/04/19 の勉強会で発表されたものです
SOPを理解する       2024/04/19 の勉強会で発表されたものですSOPを理解する       2024/04/19 の勉強会で発表されたものです
SOPを理解する 2024/04/19 の勉強会で発表されたものです
 
TSAL operation mechanism and circuit diagram.pdf
TSAL operation mechanism and circuit diagram.pdfTSAL operation mechanism and circuit diagram.pdf
TSAL operation mechanism and circuit diagram.pdf
 
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略
 
論文紹介:Semantic segmentation using Vision Transformers: A survey
論文紹介:Semantic segmentation using Vision Transformers: A survey論文紹介:Semantic segmentation using Vision Transformers: A survey
論文紹介:Semantic segmentation using Vision Transformers: A survey
 

Auto scaling Heroku addon Bounscale

  • 1. Heroku add-on Bounscale Auto-scaling to your application 13年9月5日木曜日
  • 2. About this LT • Bounscaleというオートスケールする Herokuのadd-onを作っています。紹介 させてください。 • 現在Public Betaでどなたでも使えます! 13年9月5日木曜日
  • 3. About me • 大西 正太 @shouta_dev • (株)DTS • 2005年位からお仕事でRailsやってます • 自社サービスも受託開発も • インプレスさんとの案件はRuby AssociatiomのHPで紹介されました • http://www.ruby.or.jp/ja/showcase/case19.html • お酒が大好き!クズ居酒屋が大好き!吉田類の酒場放浪記が大好き! 13年9月5日木曜日
  • 6. Install $ heroku addons:add bounscale OR https://addons.heroku.com/bounscale/ 13年9月5日木曜日
  • 7. Adding agent to your app # Rails (Rack) :Gem gem ’bounscale’ #Gemfile # node.js/express:npm [EXPERIMENTAL] ”dependencies” : {”bounscale”, ”*”} // package.json app.use(require(’bounscale’)); // app.js # Play Framework2:sbt [EXPERIMENTAL] /* Build.scala */ "bounscale" % "bounscale_2.10" % "0.0.1"; resolvers += "r" at "http://bounscale.github.io/maven/"; more detail: https://devcenter.heroku.com/articles/bounscale 13年9月5日木曜日
  • 10. Auto-scaling config • レスポンスタイム+別指標値 で負荷を測定 • ビジー率 / スループット / cpu / memory • グラフ上でスケールアウトの 閾値を指定 13年9月5日木曜日
  • 12. Architecture AWS CentOS ApacheTwitter Bootstrap Rack Server Ruby on Rails MySQL ZabbixAPI(Apache/PHP) AWS CentOS Provision Controller Bizca Multitenant Zabbix Server Zabbix Custom Items Zabbix Custom Action Heroku Developer User Addon Provisioning API Heroku API Service Appliction www.heroku.com (heroku console) bounscale gem (middleware) RackServer Rails/ Application Heroku LogsResource Data UserA Tenant Console Controller UserA Tenant Zabbix Access Model Tenant database Tenant database Tenant database zabbix cache data UserA Tenant UserA Tenant Multitenant Access Model UserA Tenant UserA Tenant Heroku Access Model UserA Tenant UserA Tenant Cache Model MySQL memory Item Throughput Item Web Item Busyness Item Trigger (scale condition) CPU Item shell scipt / Ruby Zabbix database Tenant1 zabbix history data Tenant1 zabbix config data Tenant2 zabbix history data Tenant2 zabbix config data Tenant3 zabbix history data Tenant3 zabbix config data shell scipt / Ruby Scaleout Action Scalein Action Resource Data Resource Data Provisioning Request Update Scale Config Create tenant Provisioning Response Get Cache Data Create tenant Tenant Control Provisioning Heroku SSO Show Resource Graph Update Zabbix Cache Collector Resource Data Update&Create Items, Triggers, Actions Collect History Data Save Cache Data Get cache Resource Data Periodically Kick Return Resource Resource Data Save Resource Data GetItem, Trigger,Action Conditionally Kick Actions Scale out Scale in Use this service Collect and Write Resource Datas Request Addon / Request SSO redirect Get Logs (heroku logs) Extract resource datas Update/Get Save Scalein/out hitories Bounscale Architecture 13年9月5日木曜日
  • 13. Try it out !! $ heroku addons:add bounscale 現在Public Betaで利用は無料です! 13年9月5日木曜日
  • 14. Resources • https://devcenter.heroku.com/articles/ bounscale • https://github.com/bounscale • http://qiita.com/bounscale/ • https://twitter.com/bounscale/ 13年9月5日木曜日