资源描述:
《Debugging Docker in production》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、RunningAground:DebuggingDockerinproductionBryanCantrill(@bcantrill),CTO,JoyentTheDockerrevolution•WhileOScontainershavebeenaroundforoveradecade,Dockerhasbroughttheconcepttoamuchbroaderaudience•Dockerhasusedtherapidprovisioningandsharedfilesystemofcontainerstoallowdevelopersto
2、thinkoperationally-Deploymentprocedurescanbeencodedviaanimage-Imagescanbereliablyandreproduciblydeployedascontainers•DockerisdoingtoaptwhataptdidtotarDockeratJoyent•AtJoyent,wehaverunSmartOS-basedcontainersonthemetalandinmulti-tenantproductionsince~2006•Wewantedtocreateabest-
3、of-all-worldsplatform:thedevelopereaseofDockerontheproduction-gradesubstrateofSmartOS-WedevelopedaLinuxsystemcallinterfaceforSmartOS,allowingSmartOStorunLinuxbinariesatbare-metalspeed-InMarch2015,weintroducedTriton,our(opensource!)stackthatdeploysDockercontainersdirectlyonthe
4、metal-TritonvirtualizesthenotionofaDockerhost(i.e.,“dockerps”showsallofone’scontainersdatacenter-wide)Docker+microservices•Dockerisparticularaptatdeployingmicroservices:small,well-definedservicesthatdoonethinganddoitwell•Whilethetermprovokessomedegreeofnerdrage,itismerelyanew
5、embodimentofanoldidea:theUnixPhilosophy•Whatdoesthecontainer+microservicesrevolutionmeanforhowwedebugprogramsandsystems?Debugging:AnevenolderideaDebugging:AnevenolderideaSirMauriceWilkes,1913-2010Debugging:AnevenolderideaAssoonaswestartedprogramming,wefoundtooursurprisethatit
6、wasn’taseasytogetprogramsrightaswehadthought.Debugginghadtobediscovered.IcanremembertheexactinstantwhenIrealizedthatalargepartofmylifefromthenonwasgoingtobespentinfindingmistakesinmyownprograms.—SirMauriceWilkes,1913-2010DebuggingDocker•WhendeployingDocker+microservices,there
7、isanunstatedtruth:youaredevelopingadistributedsystem•Whilemoreresilienttocertainclassesofforcemajeurefailure,distributedsystemsremainvulnerabletosoftwaredefects•Worse,distributedsystemsarehardertodebug—andaremorelikelytoexhibitbehaviornon-reproducibleindevelopment•Dockerforce
8、sustochangethewaywedebugsystems:wemustdebugnotintermsofsickpetsbutra