《豆瓣广告系统持续发布相关的实践(1).ppt》由会员分享,可在线阅读,更多相关《豆瓣广告系统持续发布相关的实践(1).ppt(33页珍藏版)》请在三一办公上搜索。
1、,+,豆瓣广告系统持续发布相关的实践,2,+,How fast we can?,3,+,agenda,产品背景基本介绍从测试出发,持续集成持续集成运用于开发周期各阶段持续发布相关实践,4,+,产品概要,豆瓣广告系统内容文本广告音频视频平台WebApp,5,+,技术背景,广告投放系统投放策略系统投放引擎监控系统,6,+,Development Environment init,Long doc for env init,fab dev.initfab dev.gen_config:,Ref http:/,7,+,Fab as tasks tool,8,+,Remote import packag
2、e,Ref:http:/golang.org/src/cmd/go/help.go,Remote import,目录中的package,9,+,OuT OF CoNTRoL,Ref http:/,10,+,Package by reversion,11,+,初涉CI,从测试出发,Go LangFab as tasks toolRemote import package by reversionCI for mastergo2xunit,12,+,CI for Master,GUITests,Unit Test,API Tests,13,+,Configuration management,14
3、,+,Subversion Feature Branch,Test for Branch,Ref http:/dou.bz/39qbOT,15,+,CI for SVN branch,Create continuous build job for branch updatePublish failed build result to developer,16,+,Github(Pull Request)flow,Master branch is deployableCreate a descriptively named branch off of masterCommit to that b
4、ranch locally and push to the serverWhen you need feedback or help,or branch is ready for merging,open a pull requestAfter reviewed and signed off on the feature,merge it into masterAfter merged,deploy immediately,ref:http:/,17,+,CI for github flow,18,19,20,Continuous Deployment,From Continuous Inte
5、gration to,21,+,环境的隔离,22,+,Monitor,Test&Build,DeployPreRelease,Push Data,Pre release,After merged,23,Pre-release:traffic,traffic,Nn%,NN:与主站的pre-release联动,nn%,Nn:tcpcopy 流量复制,N:手工检查页面,n%,https:/,24,+,Deploy Flow,25,+,Binary file,Only one fileVersion as filenameKeep old files,+,Deployment,Single NodeC
6、lusterAll server,27,+,5%,Single Node,28,+,Cluster,40%,29,+,100%,All Servers,30,+,Configuration service,Cluster Configuration Files in gitPull Request Push Configuration to clusterNotification,Via http:/,31,+,Monitoring,GraphQPSERRORAll in oneLOGREPORTDUTYNotification,32,+,Summary,补充测试持续集成Masterbranch自动部署预发布和线上环境模拟了访问量配置和数据推送监控作为反馈,+,Q&A,