浙江大学计算机学院博士生张磊-顶级云计算开源项目

2020-02-27 555浏览

  • 1.Global Collaboration and Maintenance of Top Cloud Computing Open Source Projects Lei Zhang @HyperHQ & Kubernetes
  • 2.Goals & Non-Goals Part 1
  • 3.Goals & Non-Goals We will talk : Cloud Computing Projects Managed on github.com (this is important) > 10000 stars (e.g. Docker, Kubernetes) We will nottalk:Linux Apache Foundation projects OpenStack Why?
  • 4.Github + Community = Modern Software Traditional open source Open the source code of something Don’t believe the contributor Sell tools, distros, & service The “Open Source Revolution” Create the community of something Encourage contributor Fans Economy & Selling yourself
  • 5.Why cloud? Cloud computing projects • No UI • System level programming – Network, storage, OS, hardware ... • Complex project • Multiple components Other top projects • Web, APP • Programming – data structure, algorithm • Simple project • Few components
  • 6.At First Glance Part 2
  • 7.Docker CoreIdea:Replace VMs with Linux containers cgroup + ns + rootfs image The most successful open source project in cloud/system area on Githubstars:33000+contributors:1444+commits:25787+LOC:58000+ Docker, Inc. D round 95M
  • 8.Kubernetes Container Scheduling and Management Framework by Google Statsstars:15500+contributors:824+commits:32099+LOC:390893+ Google, Inc. Now Linux Foundation
  • 9.ParCt3 ollaboration
  • 10.The Key Concept Of These Software?
  • 11.Issue Issue canbe:feature bug question proposal ... anything! Issue is labeled
  • 12.Github Issue VS Old Ways Old ways Mailing List Linux, Apache Foundation Bug tracker OpenStack It’s like wechat VS e-mail Quick response Real interaction Brain storm Better community
  • 13.To FixIssue:Pull Request git workflow send pull request
  • 14.To FixIssue:Pull Request PR a patch of commits also labeled
  • 15.Encourage A friendly workflow
  • 16.Maintenance Part 4
  • 17.Kubernetes VS Docker? More complex • OpenStack VS VM More components More code Google style automation
  • 18.Robots in Workflow robots
  • 19.Automatic CI $ git push origin my-fix Open a new Pull Request CI will be triggered
  • 20.Generated Code *_generated.go • Deep copy • Conversion • Protobuf protocols • Docs •… • Anything Googlers don’t want to write
  • 21.Automatic Merge Apply lgtm will trigger merge robot
  • 22.Automated Cherry Pick Pick commits from master branch into release branch
  • 23.Summary Comment driven Event driven Robot CI k8s-cherrypick-bot issue PR review merge release k8s-bot k8s-merge-bot
  • 24.END Lei Zhang @resouer