mozilla's hybrid continuos integration - releng 2014 conference - april 11th, 2014

34

Post on 21-Oct-2014

133 views

Category:

Software


0 download

DESCRIPTION

This slide deck was used during the RELENG 2014 conference at MV, California. It describes the issues faced by Mozilla's continuous integration & how they saved large amounts of money.

TRANSCRIPT

Page 1: Mozilla's hybrid continuos integration - RELENG 2014 Conference - April 11th, 2014
Page 2: Mozilla's hybrid continuos integration - RELENG 2014 Conference - April 11th, 2014

Mozilla’s HybridContinuous Integration

@armenzghttp://armenzg.blogspot.ca

Page 3: Mozilla's hybrid continuos integration - RELENG 2014 Conference - April 11th, 2014

@MozRelenghttp://planet.mozilla.org/releng

Page 4: Mozilla's hybrid continuos integration - RELENG 2014 Conference - April 11th, 2014

Once upon a time…

Page 5: Mozilla's hybrid continuos integration - RELENG 2014 Conference - April 11th, 2014
Page 6: Mozilla's hybrid continuos integration - RELENG 2014 Conference - April 11th, 2014
Page 7: Mozilla's hybrid continuos integration - RELENG 2014 Conference - April 11th, 2014
Page 8: Mozilla's hybrid continuos integration - RELENG 2014 Conference - April 11th, 2014

THE END

Page 9: Mozilla's hybrid continuos integration - RELENG 2014 Conference - April 11th, 2014

Fast growth will cause your

infrastructure painand lots of costs.

Page 10: Mozilla's hybrid continuos integration - RELENG 2014 Conference - April 11th, 2014

How much have we saved?

Roughly 60-70%

Page 11: Mozilla's hybrid continuos integration - RELENG 2014 Conference - April 11th, 2014

• No in-house cost• Higher EC2 usage

Page 12: Mozilla's hybrid continuos integration - RELENG 2014 Conference - April 11th, 2014

Term definitionsQuick intro to Mozilla’s CI

Inter data-center issuesAWS costs

Page 13: Mozilla's hybrid continuos integration - RELENG 2014 Conference - April 11th, 2014

TERMS

• Push – Commit – Code changes• VPN – Virtual Private Network• AWS – Amazon Web Services

•EC2 – Elastic Compute Cloud•EBS – Elastic Block Store•S3 – Simple Storage Service

• Buildbot

Page 14: Mozilla's hybrid continuos integration - RELENG 2014 Conference - April 11th, 2014

Mozilla’s products:•Non-for-profit & users first•Desktop, Android, Thunderbird & Firefox OS•~1/2 billion Firefox desktop users•50M-100M Android installs•90+ locales•Firefox OS phones in 13+ countries

Mozilla’s CI

Page 15: Mozilla's hybrid continuos integration - RELENG 2014 Conference - April 11th, 2014

1M+ build jobs10M+ test jobs90+ wall-time

years

Every year*:

* Back of the envelope

Mozilla’s CI

Page 16: Mozilla's hybrid continuos integration - RELENG 2014 Conference - April 11th, 2014

Mozilla’s CI

Page 17: Mozilla's hybrid continuos integration - RELENG 2014 Conference - April 11th, 2014

Mozilla’s CI

Page 18: Mozilla's hybrid continuos integration - RELENG 2014 Conference - April 11th, 2014

RelEng’s CI:•2 in-house data-centers•2 Amazon regions•VPC•VPN link between them•Internet data transfers through SSL

Mozilla’s CI

Page 19: Mozilla's hybrid continuos integration - RELENG 2014 Conference - April 11th, 2014

INTER DATACENTER ISSUES

• Loss of stateful connections• Link capacity

Note: Fixing these also brings costs down

Page 20: Mozilla's hybrid continuos integration - RELENG 2014 Conference - April 11th, 2014
Page 21: Mozilla's hybrid continuos integration - RELENG 2014 Conference - April 11th, 2014
Page 22: Mozilla's hybrid continuos integration - RELENG 2014 Conference - April 11th, 2014
Page 23: Mozilla's hybrid continuos integration - RELENG 2014 Conference - April 11th, 2014
Page 24: Mozilla's hybrid continuos integration - RELENG 2014 Conference - April 11th, 2014
Page 25: Mozilla's hybrid continuos integration - RELENG 2014 Conference - April 11th, 2014

http://atlee.ca/blog/posts/aws-networks-and-burning-trees.html

Page 26: Mozilla's hybrid continuos integration - RELENG 2014 Conference - April 11th, 2014

AWS COSTS

• Spot vs On-Demand instances• Shorten job’s wall time• Smarter bidding• Less EBS

Page 27: Mozilla's hybrid continuos integration - RELENG 2014 Conference - April 11th, 2014

http://rail.merail.ca/posts/ec2-spot-instances-experiments.htmlhttp://vps.glek.net/graphite

Spot vs On-Demand instances

Page 28: Mozilla's hybrid continuos integration - RELENG 2014 Conference - April 11th, 2014

http://atlee.ca/blog/posts/initial-jacuzzi-results.html

Shorten job’s wall time

Incremental builds

Page 29: Mozilla's hybrid continuos integration - RELENG 2014 Conference - April 11th, 2014

http://rail.merail.ca/posts/ec2-spot-instances-experiments.htmlhttp://vps.glek.net/graphite

Spot vs On-Demand instances

Page 30: Mozilla's hybrid continuos integration - RELENG 2014 Conference - April 11th, 2014

https://bugzilla.mozilla.org/show_bug.cgi?id=972562

Smarter bidding

- 75% less on-demand75% less on-demand- More instance typesMore instance types- Choose the right Choose the right

regionregion- Pricing analysisPricing analysis

Page 31: Mozilla's hybrid continuos integration - RELENG 2014 Conference - April 11th, 2014

Less EBS

EBS cost us 20% of all costs

Page 32: Mozilla's hybrid continuos integration - RELENG 2014 Conference - April 11th, 2014

What we have covered

• Analyze inter data-center flows• Smart and flexible bidding• Reduce wall time• Reduce disk usage

Page 33: Mozilla's hybrid continuos integration - RELENG 2014 Conference - April 11th, 2014

@armenzg - @MozReleng

Page 34: Mozilla's hybrid continuos integration - RELENG 2014 Conference - April 11th, 2014