SlideShare uma empresa Scribd logo
1 de 52
dicas e truques
       para ser um bom
             inquilino   ... no Cloud


Fabio Kung
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
Librato
the pager
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
média
%til
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

Mais conteúdo relacionado

Semelhante a Dicas e truques para ser um bom inquilino no Cloud

WSO2 Year End Tech Update 2012
WSO2 Year End Tech Update 2012WSO2 Year End Tech Update 2012
WSO2 Year End Tech Update 2012
WSO2
 
Android. behind the scenes_programatica 2012
Android. behind the scenes_programatica 2012Android. behind the scenes_programatica 2012
Android. behind the scenes_programatica 2012
Agora Group
 
Dell open stack powered cloud solution introduce & crowbar demo cosug-2012
Dell open stack powered cloud solution introduce & crowbar demo cosug-2012Dell open stack powered cloud solution introduce & crowbar demo cosug-2012
Dell open stack powered cloud solution introduce & crowbar demo cosug-2012
OpenCity Community
 
Terminal server
Terminal serverTerminal server
Terminal server
t_man
 
Codestrong 2012 breakout session at&t api platform and trends
Codestrong 2012 breakout session  at&t api platform and trendsCodestrong 2012 breakout session  at&t api platform and trends
Codestrong 2012 breakout session at&t api platform and trends
Axway Appcelerator
 
OpenSpan - A Better Way to Work, A Better Way to Manage
OpenSpan - A Better Way to Work, A Better Way to ManageOpenSpan - A Better Way to Work, A Better Way to Manage
OpenSpan - A Better Way to Work, A Better Way to Manage
Frank Wagman
 
Cloud Biocep
Cloud BiocepCloud Biocep
Cloud Biocep
Inria
 

Semelhante a Dicas e truques para ser um bom inquilino no Cloud (20)

Sipoc
SipocSipoc
Sipoc
 
JCConf 2020 Observing in Microservices
JCConf 2020 Observing in MicroservicesJCConf 2020 Observing in Microservices
JCConf 2020 Observing in Microservices
 
Lean- automobile
Lean- automobileLean- automobile
Lean- automobile
 
WSO2 Year End Tech Update 2012
WSO2 Year End Tech Update 2012WSO2 Year End Tech Update 2012
WSO2 Year End Tech Update 2012
 
Android. behind the scenes_programatica 2012
Android. behind the scenes_programatica 2012Android. behind the scenes_programatica 2012
Android. behind the scenes_programatica 2012
 
Building Enterprise Apps for Big Data with Cascading
Building Enterprise Apps for Big Data with CascadingBuilding Enterprise Apps for Big Data with Cascading
Building Enterprise Apps for Big Data with Cascading
 
Dell open stack powered cloud solution introduce & crowbar demo cosug-2012
Dell open stack powered cloud solution introduce & crowbar demo cosug-2012Dell open stack powered cloud solution introduce & crowbar demo cosug-2012
Dell open stack powered cloud solution introduce & crowbar demo cosug-2012
 
Terminal server
Terminal serverTerminal server
Terminal server
 
Codestrong 2012 breakout session at&t api platform and trends
Codestrong 2012 breakout session  at&t api platform and trendsCodestrong 2012 breakout session  at&t api platform and trends
Codestrong 2012 breakout session at&t api platform and trends
 
Building Rich, Interactive E-commerce Applications Using ASP.NET and Silverlight
Building Rich, Interactive E-commerce Applications Using ASP.NET and SilverlightBuilding Rich, Interactive E-commerce Applications Using ASP.NET and Silverlight
Building Rich, Interactive E-commerce Applications Using ASP.NET and Silverlight
 
A Data Scientist And A Log File Walk Into A Bar...
A Data Scientist And A Log File Walk Into A Bar...A Data Scientist And A Log File Walk Into A Bar...
A Data Scientist And A Log File Walk Into A Bar...
 
02 Ms Online Identity Session 1
02 Ms Online Identity   Session 102 Ms Online Identity   Session 1
02 Ms Online Identity Session 1
 
OpenSpan - A Better Way to Work, A Better Way to Manage
OpenSpan - A Better Way to Work, A Better Way to ManageOpenSpan - A Better Way to Work, A Better Way to Manage
OpenSpan - A Better Way to Work, A Better Way to Manage
 
Datadogoverview.pptx
Datadogoverview.pptxDatadogoverview.pptx
Datadogoverview.pptx
 
SWIMing in a Standards Soup
SWIMing in a Standards SoupSWIMing in a Standards Soup
SWIMing in a Standards Soup
 
iPhone and the Enterprise
iPhone and the EnterpriseiPhone and the Enterprise
iPhone and the Enterprise
 
July iPhone Business Meetup
July iPhone Business MeetupJuly iPhone Business Meetup
July iPhone Business Meetup
 
The new FARO 3D App Store
The new FARO 3D App StoreThe new FARO 3D App Store
The new FARO 3D App Store
 
Cloud Biocep
Cloud BiocepCloud Biocep
Cloud Biocep
 
The Mashup Component Description Language
The Mashup Component Description LanguageThe Mashup Component Description Language
The Mashup Component Description Language
 

Mais de Fabio Kung

Mais de Fabio Kung (8)

Cloud IaaS - Detalhes da Infraestrutura como Serviço
Cloud IaaS - Detalhes da Infraestrutura como ServiçoCloud IaaS - Detalhes da Infraestrutura como Serviço
Cloud IaaS - Detalhes da Infraestrutura como Serviço
 
Usando o Cloud
Usando o CloudUsando o Cloud
Usando o Cloud
 
Storage para virtualização
Storage para virtualizaçãoStorage para virtualização
Storage para virtualização
 
Automacao devops
Automacao devopsAutomacao devops
Automacao devops
 
DSLs Internas e Ruby
DSLs Internas e RubyDSLs Internas e Ruby
DSLs Internas e Ruby
 
Onde mora a produtividade do Ruby on Rails?
Onde mora a produtividade do Ruby on Rails?Onde mora a produtividade do Ruby on Rails?
Onde mora a produtividade do Ruby on Rails?
 
SOA não precisa ser buzzword
SOA não precisa ser buzzwordSOA não precisa ser buzzword
SOA não precisa ser buzzword
 
JRuby on Rails
JRuby on RailsJRuby on Rails
JRuby on Rails
 

Último

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Último (20)

Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 

Dicas e truques para ser um bom inquilino no Cloud

Notas do Editor

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