Top Banner

Click here to load reader

OpenSlava Infrastructure Automation Patterns

May 06, 2015

ReportDownload

Technology

Antons talking about patterns of Infrastructure Automation in the OpenSlava conference. Bratislava, October 2013

  • 1.Antons Kranga DevOps:Cloud Automation October 11, 2013OrganizersTop Media PartnerMedia PartnerSupporter

2. Presenter - Technology Architect at Accenture- 10+ years experience in Enterprise Development - Projects: - Accenture Foundation Platform for Java - Accenture Cloud Platform - ALPJ- Monsoon 3. Ask questions onlinewww.sli.do/openslava 4. CloudCopyright 2013 Accenture All rights reserved. 5. This is cloud 6. Definition of Cloud ComputingCopyright 2013 Accenture All rights reserved. 7. Cloud ComputingCopyright 2013 Accenture All rights reserved. 8. Accenture Cloud Platform Testing as Service Monsoon ALPJ etcCloud Broker APICopyright 2013 Accenture All rights reserved. 9. Challenges of Cloud (What IaaS Offers) Web TierApplication TierDatabaseCopyright 2012 Accenture All rights reserved. 10. Challenges of Cloud (What Users Want) Web TierApplication TierDatabaseCopyright 2012 Accenture All rights reserved. 11. Infrastructure services and patterns 12. example 13. OS Type: RedHat OS Version: 6.2 Tomcat Home: /etc/tomcat Tomcat Port: 8080 MySQL IP: 10.10.0.1 MySQL Root Password: passwordinclude_recipe javapackage "tomcat6artifact_deploy "tomcat6 do version "latest artifact_location "foo.war" deploy_to node[:tomcat][:work_dir] endservice "tomcat6" do action [:enable, :start] endAttributes RecipeOS Specific Instructions 14. Chef WorkstationCopyright 2012 Accenture All rights reserved.Virtualized Infrastructure 15. Virtualized InfrastructureChef WorkstationChef Server RESTCMDBCookbooks Roles ...Copyright 2012 Accenture All rights reserved. 16. Virtualized InfrastructureChef WorkstationChef Server RESTCMDBCookbooks Roles ...Copyright 2012 Accenture All rights reserved. 17. Virtualized InfrastructureChef Workstation knifeUses SSH to bootstraps Chef clientChef Server RESTCMDBCookbooks Roles ...Copyright 2012 Accenture All rights reserved. 18. Virtualized InfrastructureChef Workstation knifeChef Servere cht en li fc at6 ctomRESTCMDBCookbooks Roles ...Copyright 2012 Accenture All rights reserved. 19. Virtualized InfrastructureChef Workstation knifeChef Servere cht en li fc at6 ctomREST HTTP call signed with certificateCMDBCookbooks Roles ... 20. Virtualized InfrastructureChef Workstation knifeChef Servere cht en li fc at6 ctomRESTCMDBCookbooks Roles ... 21. Virtualized InfrastructureChef Workstation knifeChef Servere cht en li fc at6 ctomRESTCMDBCookbooks t6 ca m a to jav les ab pt iCookbooks Roles ...Copyright 2012 Accenture All rights reserved. 22. Virtualized InfrastructureChef Workstation knifeohaiacts oad f uplChef Servere cht en li fc at6 ctomRESTCMDBCookbooks t6 ca m a to jav les ab pt iCookbooks Roles ...Copyright 2012 Accenture All rights reserved. 23. Service discovery 24. Node 1Node 2Node 3Node N 25. Node 1Node 2RegisterNode 3RegisterRegisterDatabaseNode NRegister 26. Node 1Node 2RegisterNode 3RegisterRegisterDiscover nodesDatabaseNode NRegister 27. Node 1Node 2RegisterNode 3RegisterRegisterDiscover nodesDatabaseNode NRegister 28. Load balancing 29. LBNode 1Node 2Node 3Node N 30. Single point of failureLBNode 1Node 2Node 3Node N 31. LBNode 1Node 2HeartbeatNode 3LB2Node N 32. Shared virtual IPLBNode 1Node 2HeartbeatNode 3LB2Node N 33. Dealing with sticky sessions 34. Shared virtual IPLBTomcat 1Tomcat 2HeartbeatTomcat 3LB2Tomcat N 35. Shared virtual IPLBTomcat 1Tomcat 2HeartbeatTomcat 3LB2Tomcat NSave sessionSave sessionSave sessionSave sessionMemcached 1Memcached 2Memcached 3Memcached NSame ServerSame ServerSame ServerSame Server 36. Shared virtual IPLBTomcat 1Save sessionTomcat 2Save sessionHeartbeatTomcat 3Save sessionLB2Tomcat NSave sessionMemcached 1 Repl Memcached 2 Repl Memcached 3 Repl Memcached N Same ServerSame ServerSame ServerSame Server 37. Shared virtual IPIf session repl not hitting netw capacityTomcat 1Save sessionLBTomcat 2Save sessionHeartbeatTomcat 3Save sessionLB2Tomcat NSave sessionMemcached 1 Repl Memcached 2 Repl Memcached 3 Repl Memcached N Same ServerSame ServerSame ServerSame Server 38. Shared virtual IPLBTomcat 1Tomcat 2HeartbeatTomcat 3save sessionMemcached Large RAM VMLB2Tomcat N 39. Elasticity 40. Shared virtual IPLBTomcat 1Save sessionTomcat 2Save sessionHeartbeatTomcat 3Save sessionLB2Tomcat NSave sessionMemcached 1 Repl Memcached 2 Repl Memcached 3 Repl Memcached N Same ServerSame ServerSame ServerSame Server 41. Shared virtual IPLBTomcat 1Save sessionTomcat 2Save sessionHeartbeatTomcat 3Save sessionLB2Tomcat NSave sessionMemcached 1 Repl Memcached 2 Repl Memcached 3 Repl Memcached N Same ServerSame ServerSame ServerAuto scaling groupSame Server 42. Dealing with sticky sessions 43. Node 1Node 2RegisterNode 3RegisterRegisterDiscover nodesDatabaseNode NRegister 44. Node 1Node 2Node 3Node Npublish factspublish factspublish factspublish factsMessage Broker 45. Node 1 publish facts subscribe eventsNode 2 publish facts subscribe eventsNode 3 publish facts subscribe eventsMessage BrokerNode N publish facts subscribe events 46. Node 1 publish facts subscribe eventsNode 2 publish facts subscribe events heartbeat heartbeatNode 3 publish facts subscribe events heartbeat heartbeatMessage BrokerNode N publish facts subscribe events 47. Virtualized InfrastructureChef Server Infra Management: 1. Provisioning 2. Service DiscoveryCMDBMessage Broker 48. Operating Scenarios: Operations Virtualized InfrastructureChef Server Infra Management: 1. Provisioning 2. PatchingCMDBServer Orchestration: 1. Cluster Orchestration 2. Scalability 3. Deployment OrchestrationmCollectiveMulti zone example 49. Distributed logging 50. Node 1Node 2Node 3Auto scaling groupNode N 51. Node 1Node 2Node 3Auto scaling groupCloud storageNode N 52. Node 1Node 2Node 3Log agentLog agentLog agentAuto scaling groupLog collectorCloud storageNode N Log agent 53. Phoenix Server 54. Node 1Node 2Node 3Node N 55. Want to apply change/patchNode 1Node 2Node 3Node N 56. Node 1Node 2Node 3Node NNode M 57. All changes included Node 1Node 2Node 3Migrate dataNode NNode M 58. Node 1Node 2Node 3Shared data Cloud storageNode NNode M 59. Test and learn 60. Virtualized InfrastructureChef ServerCMDB 61. Virtualized InfrastructureChef Server Chaos MonkeyCMDB 62. Cookbook development 63. Stop forking, really!!! 64. community cookbook wrapper cookbookwrapper cookbook adds new functionality to community version of the cookbook instead of changing it directly 65. include_recipe tomcat community cookbook wrapper cookbookchef_gem "chef-rewindrewind "template[catalina.xml] do # add your custom staffend 66. Cookbook Quality Food Critic: Cookbook style analysis toolURL: http://acrmp.github.com/foodcritic/Integration: Travis CICookbook Style Guide: https://github.com/ampledata/cookbook-style-guideCopyright 2012 Accenture All rights reserved. 67. Takeaways - Accenture Cloud Platform- Monsoon - Accenture Lightweight Platform for Java- Accenture Foundation Platform for Java- Opscode Chef 68. Discussionwww.sli.do/openslava

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.