SlideShare a Scribd company logo
dicas e truques
       para ser um bom
             inquilino   ... no Cloud


Fabio Kung
Dicas e truques para ser um bom inquilino no Cloud
inquilino?
A



B            C
                   D




    multitenancy
IaaS        PaaS




       Containers/Zones
considere ...

espalhar seus
  processos
weighted
fair scheduling
      [1]
App A
P1 P2 P3
              20

     App B

P4 P5 P6 P7
              40

     App C
P8
              40
App A           App B          App C
1 2 3 0       4 5 6 7  0        8    0
      20              40            40



           fator de “justiça”
App B      App C

4 5 6 7  0   8    0
        40       40
App B      App C     App A

4 5 6 7  0   8    0   1 2 3 30
        40       40         20
App C     App A
8    0   1 2 3 30
    40         20
App C      App B       App A
8    0   4 5 6 7 40   1 2 3 30
    40           40         20
App B       App A

4 5 6 7 40   1 2 3 30
        40         20
App B       App A     App C

4 5 6 7 40   1 2 3 30   8   80
        40         20       40
App A    App C
1 2 3 30   8   80
      20       40


minimum + bursting
co-scheduling
SMP
VM A      VM B     VM C


vCPU vCPU   vCPU   vCPU vCPU
synchronization
    costs
VM A      VM B     VM C


vCPU vCPU   vCPU   vCPU vCPU
CPU stacking [2]
evite I/O
      ... se puder
I/O intensive
applications need their
   own domain [3]
espalhe seus
 processos
 http://www.12factor.net/concurrency
efemeridade
eu acho...
PROVE!
blá blá blá ...

  monitoração
                  ... blá blá blá
logs => event stream
pipeline
                                     Archive,
                                    dashboards




                                                      inc
App




                                                         id
      logs




                                                           en
                                                              ts
                            t   s
                       even
               Log
App




                                       metrics
      logs
              router                                            Pager
                       eve
                           nt   s
       logs
App                                   Event             nts
                                                    ide
                                    processor    inc
Log routers
 • https://github.com/heroku/logplex
 • https://github.com/fluent/fluentd

      events-to-metrics
• https://github.com/heroku/pulse
archives + queries




https://twitter.com/danicuki/statuses/228170302515982336
Dicas e truques para ser um bom inquilino no Cloud
Dicas e truques para ser um bom inquilino no Cloud
Dicas e truques para ser um bom inquilino no Cloud
Librato
the pager
Dicas e truques para ser um bom inquilino no Cloud
Dicas e truques para ser um bom inquilino no Cloud
pipeline
                                     Archive,
                                    dashboards




                                                      inc
App




                                                         id
      logs




                                                           en
                                                              ts
                            t   s
                       even
               Log
App




                                       metrics
      logs
              router                                            Pager
                       eve
                           nt   s
       logs
App                                   Event             nts
                                                    ide
                                    processor    inc
pipeline
                               Archive,
                              dashboards




                                                     inc
App




                                                        id
                                                          en
                                                               ts
                      t   s
                 even

      External
App




                                 metrics
                                           events
      Monitor                                                   Pager
                 eve
                     nt   s
App                             Event                    nts
                                                     ide
                              processor         in  c
Dicas e truques para ser um bom inquilino no Cloud
média
Dicas e truques para ser um bom inquilino no Cloud
%til
Dicas e truques para ser um bom inquilino no Cloud
Dicas e truques para ser um bom inquilino no Cloud
naked
                 domains
https://devcenter.heroku.com/articles/avoiding-naked-domains-dns-arecords
more...




http://www.12factor.net
References
1. Groves, Taylor, Jeff Knockel and Eric Schulte. “BFS vs. CFS -
Scheduler Comparison”. 11 Dec 2009. 2 Aug 2012 <http://
slimjim.cs.unm.edu/~eschulte/data/bfs-v-cfs_groves-knockel-
schulte.pdf>

2. Sukwong, Orathai and Hyong S. Kim. “Is Co-scheduling Too
Expensive for SMP VMs?”. EuroSys 2011 12 Apr 2011, Carnegie Mellon
University. 29 Jul 2012 <http://eurosys2011.cs.uni-salzburg.at/pdf/
eurosys2011-sukwong-slides.pdf>

3. Ongaro, Diego, Alan L. Cox and Scott Rixner. “Scheduling I/O in
Virtual Machine Monitors”. Rice University. 2 Aug 2012 <http://
www.cs.rice.edu/CS/Architecture/docs/ongaro-vee08.pdf>

4. Pijewski, Bill. “Our ZFS I/O Throttle”. Bill Pijewski's Blog.
March 1, 2011. August 3, 2012 <http://dtrace.org/blogs/wdp/2011/03/
our-zfs-io-throttle/>
Obrigado!
@fabiokung

More Related Content

ZIP
Ruby, muito mais que reflexivo
KEY
Ruby 2.0: to infinity... and beyond!
PDF
DockerCon 2014: Thoughts on interoperable containers
PDF
Linux Containers at scale: challenges in a very dense environment
KEY
Ruby and Rails Packaging to Production
PPTX
Greqia e lashte
PDF
LXC, Docker, security: is it safe to run applications in Linux Containers?
PDF
Docker, Linux Containers, and Security: Does It Add Up?
Ruby, muito mais que reflexivo
Ruby 2.0: to infinity... and beyond!
DockerCon 2014: Thoughts on interoperable containers
Linux Containers at scale: challenges in a very dense environment
Ruby and Rails Packaging to Production
Greqia e lashte
LXC, Docker, security: is it safe to run applications in Linux Containers?
Docker, Linux Containers, and Security: Does It Add Up?

Similar to Dicas e truques para ser um bom inquilino no Cloud (20)

PPTX
Introduction to OpenStack Architecture (Grizzly Edition)
PPTX
Introduction to OpenStack Architecture
PDF
Decomposing applications for deployability and scalability (CF India July/Aug...
PDF
eBay Architecture
PDF
Thinking Outside the Container: Deploying Standalone Apps to Cloud Foundry
PDF
Dancing about architecture
PDF
Jinspired june2012
PDF
Itsme Lezione Usi Lugano
PDF
AppFunnel: A Framework for Usage-centric Evaluation of Recommender Systems th...
PDF
API Design & Moving from Junior to Senior Developer
PDF
MongoSF 2012
PDF
QCon San Francisco 2011: Agility in eBay
KEY
Building Enterprise Apps for Big Data with Cascading
PDF
SOFIA - Smart M3. NOKIA
PPT
Building FOSS clouds
PPTX
Cloud Foundry Open Tour - London
PDF
Decomposing Applications for Scalability and Deployability (April 2012)
PDF
What's New in Cloud Foundry
PDF
Cloudcamp Ghent - Cloud foundry-20111121
PDF
Pattern: an open source project for migrating predictive models onto Apache H...
Introduction to OpenStack Architecture (Grizzly Edition)
Introduction to OpenStack Architecture
Decomposing applications for deployability and scalability (CF India July/Aug...
eBay Architecture
Thinking Outside the Container: Deploying Standalone Apps to Cloud Foundry
Dancing about architecture
Jinspired june2012
Itsme Lezione Usi Lugano
AppFunnel: A Framework for Usage-centric Evaluation of Recommender Systems th...
API Design & Moving from Junior to Senior Developer
MongoSF 2012
QCon San Francisco 2011: Agility in eBay
Building Enterprise Apps for Big Data with Cascading
SOFIA - Smart M3. NOKIA
Building FOSS clouds
Cloud Foundry Open Tour - London
Decomposing Applications for Scalability and Deployability (April 2012)
What's New in Cloud Foundry
Cloudcamp Ghent - Cloud foundry-20111121
Pattern: an open source project for migrating predictive models onto Apache H...
Ad

More from Fabio Kung (8)

KEY
Cloud IaaS - Detalhes da Infraestrutura como Serviço
KEY
Usando o Cloud
PDF
Storage para virtualização
KEY
Automacao devops
KEY
DSLs Internas e Ruby
KEY
Onde mora a produtividade do Ruby on Rails?
ZIP
SOA não precisa ser buzzword
ZIP
JRuby on Rails
Cloud IaaS - Detalhes da Infraestrutura como Serviço
Usando o Cloud
Storage para virtualização
Automacao devops
DSLs Internas e Ruby
Onde mora a produtividade do Ruby on Rails?
SOA não precisa ser buzzword
JRuby on Rails
Ad

Recently uploaded (20)

PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Transforming Manufacturing operations through Intelligent Integrations
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
KodekX | Application Modernization Development
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Sensors and Actuators in IoT Systems using pdf
PDF
HCSP-Presales-Campus Network Planning and Design V1.0 Training Material-Witho...
PDF
Electronic commerce courselecture one. Pdf
PDF
AI And Its Effect On The Evolving IT Sector In Australia - Elevate
PDF
Modernizing your data center with Dell and AMD
PDF
Empathic Computing: Creating Shared Understanding
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Advanced IT Governance
PDF
Advanced Soft Computing BINUS July 2025.pdf
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Diabetes mellitus diagnosis method based random forest with bat algorithm
Dropbox Q2 2025 Financial Results & Investor Presentation
Transforming Manufacturing operations through Intelligent Integrations
Advanced methodologies resolving dimensionality complications for autism neur...
KodekX | Application Modernization Development
20250228 LYD VKU AI Blended-Learning.pptx
“AI and Expert System Decision Support & Business Intelligence Systems”
Sensors and Actuators in IoT Systems using pdf
HCSP-Presales-Campus Network Planning and Design V1.0 Training Material-Witho...
Electronic commerce courselecture one. Pdf
AI And Its Effect On The Evolving IT Sector In Australia - Elevate
Modernizing your data center with Dell and AMD
Empathic Computing: Creating Shared Understanding
NewMind AI Weekly Chronicles - August'25 Week I
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Advanced IT Governance
Advanced Soft Computing BINUS July 2025.pdf
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Understanding_Digital_Forensics_Presentation.pptx
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...

Dicas e truques para ser um bom inquilino no Cloud

Editor's Notes

  • #2: \n
  • #3: \n
  • #4: \n
  • #5: unidades computacionais\n
  • #6: \n
  • #7: \n
  • #8: \n
  • #9: shares, IaaS vs. PaaS\n
  • #10: \n
  • #11: \n
  • #12: \n
  • #13: \n
  • #14: \n
  • #15: \n
  • #16: \n
  • #17: fair share only what&amp;#x2019;s IN THE QUEUE\nMinimum perf. + Burstability\n
  • #18: \n
  • #19: SMP applications assume they are running on physical CPUs\n
  • #20: +vCPUs = harder to schedule\n
  • #21: \n
  • #22: any order, locks are held\ncpu stacking\nSMP kernel has concurrency, spinlocks, etc\n
  • #23: make a good use of your CPU time (do not spend it with context switches)\n
  • #24: hard to share I/O resources\nhard to fair share -&gt; async\n
  • #25: I/O is also heavily impacted by this\nisolate I/O components, attached resources\n\n
  • #26: attachable resources\nbe prepared to scale-out\nvariability\n
  • #27: \n
  • #28: \n
  • #29: data oriented discussions\n
  • #30: \n
  • #31: \n
  • #32: \n
  • #33: \n
  • #34: \n
  • #35: \n
  • #36: \n
  • #37: \n
  • #38: \n
  • #39: \n
  • #40: \n
  • #41: \n
  • #42: \n
  • #43: \n
  • #44: internal, nagios\n
  • #45: \n
  • #46: \n
  • #47: \n
  • #48: help drive product decisions\n
  • #49: absolute values are ok, be careful with bucket aggregators\n
  • #50: URL or ALIAS DNS entries\n
  • #51: \n
  • #52: \n
  • #53: \n