《豆瓣广告系统持续发布相关的实践》由会员分享,可在线阅读,更多相关《豆瓣广告系统持续发布相关的实践(33页珍藏版)》请在金锄头文库上搜索。
1、+豆瓣广告系统持续发布相关的实践+040 SHow fast we can?2+agendan产品背景基本介绍n从测试出发,持续集成n持续集成运用于开发周期各阶段n持续发布相关实践3+产品概要n豆瓣广告系统n内容n文本广告n音频n视频n平台nWebnApp4+技术背景n广告投放系统n投放策略系统n投放引擎n监控系统5+Development Environment initnLong doc for env initfab dev.initfab dev.gen_config:Ref http:/ as tasks tool7+Remote import Ref: http:/golang.o
2、rg/src/cmd/go/help.goRemote import目目录录中的中的package8+OuT OF CoNTRoLRef http:/ by reversion10+初涉CI,从测试出发nGo LangnFab as tasks toolnRemote import package by reversionnCI for masterngo2xunit11+CI for MasterGUITestsUnitTestAPITests12+Configuration management13+Subversion Feature BranchTest for BranchRef h
3、ttp:/dou.bz/39qbOT14+CI for SVN branchnCreate continuous build job for branch updatenPublish failed build result to developer15+Github (Pull Request) flownMaster branch is deployablenCreate a descriptively named branch off of masternCommit to that branch locally and push to the servernWhen you need
4、feedback or help, or branch is ready for merging, open a pull requestnAfter reviewed and signed off on the feature, merge it into masternAfter merged, deploy immediatelyref: http:/ for github flow171819Continuous DeploymentFrom Continuous Integration to20+dev pre online环境的隔离21+MonitorTest & BuildDep
5、loyPreReleasePush DataPre releaseAfter merged22Pre-release: traffic, trafficNn%NN:与主站的pre-release联动nn%Nn:tcpcopy 流量复制N:手工检查页面n%https:/ Flow24+Binary filenOnly one filenVersion as filenamenKeep old files25+DeploymentnSingle NodenClusternAll server+5 %Single Node27+Cluster40 %28+100 %All Servers29+Configuration servicenCluster Configuration Files in gitnPull Request nPush Configuration to clusternNotificationVia http:/ in onenLOGnREPORTnDUTYnNotification31+Summaryn补充测试n持续集成nMasternbranchn自动部署预发布和线上环境n模拟了访问量n配置和数据推送n监控作为反馈32+Q&A