欢迎来到天天文库
浏览记录
ID:40880799
大小:1.72 MB
页数:37页
时间:2019-08-09
《CD In The Enterprise - ThoughtWorks - TimBrown》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、AUTOMATINGOUTOFFAILUREAtaleofrescuingafailingenterpriseapplicationdeploymentprojectin6weeksusingAnsibleandGo.cdABITOFCONTEXT▫︎Globalfinancialservicescompany▫︎6monthsinvestedontoolselection▫︎Another3monthsinvestedtryingtomakeitwork2THEACCIDENTALMEETINGGiveme4ThoughtWorkersand4ofyourpeopleandwe’llautom
2、atethis#%@*thingin6weeks!3ANSIBLE▫︎Agent-lessITautomationsystem▫︎Canperformorchestration,configuration,anddeployment▫︎Minimaldependencies:Python,SSH▫︎Terselanguage,YAMLformat4ABITMORECONTEXT▫︎Anewproductlaunchisimminent▫︎Inanewdatacenter▫︎Thatdoesn’texistyet▫︎Hardwarearrivesin12weeks!▫︎Theproductlaun
3、chwillbeatriskifeverythingisn’tworkinginafewdays▫︎Thoughtwehad4services,butdiscoveredthereare405D’OH!6RE-CONFIRMSCOPE▫︎Replacingtwoexistingtools▫︎Orchestrator▫︎InstallationTool▫︎Retainingfourexistingtools▫︎CustomCMDB▫︎Artifactrepository▫︎Buildtool▫︎CI▫︎~40deployableartifacts;39Roles7APPLICATIONSTACK
4、-LAYERINGUser-landServiceComponentConfigNosystem/OSpackagingService-specificuserServiceComponentBinariesService-specificdirectorystructureAllcomponentsJAR/ZippackagedandstoredinartifactrepositoryHTTPdConfigalwaysisolated.ContainerConfigHTTPdBinariesContainerBinariesshareableduringinstall.isolatedatruntim
5、e.JVMInstallToollegacy.willberemoved.8APPLICATIONSTACK-MAPPINGTOANSIBLEEachcomponentisanAnsibleroleServiceComponentConfigServicerolepullstogetheralldependentrolesApproximately40componentscomprisethewholeServiceComponentBinariesapplication!HTTPdConfigAsinglenodemayhavemultipleservices‘stacked’onitDevel
6、opmentinEurope.(source,artifacts,CMDB)ContainerConfigProductiondatacenterinNorthAmerica.Connectedbybandwidth-constrainedWANHTTPdBinariesContainerBinariesThiscanbemultipleGBinsizeJVMInstallTool9STRATEGY▫︎DepthvsBreadth?!▫︎Divide&Conquer▫︎CMDB/Ansiblecompatibility▫︎ReplacementofInstallationTool▫︎Define&
7、stabilizedevelopmentworkflow10OBSTACLESFindingthe‘appropriate’artifactwasdifficultUnfriendlynetworkingWindows…withoutadminrightsInstallToolwasaconfusing40KlinesofBash11SEPARATIONOFCONCERNSArtifactRepoart
此文档下载收益归作者所有