netflix and freebsd using open source to deliver
play

Netflix and FreeBSD: Using Open Source to Deliver Streaming Video - PowerPoint PPT Presentation

Netflix and FreeBSD: Using Open Source to Deliver Streaming Video Jonathan Looney FOSDEM 2019 Open Connect NETFLIX AND FREEBSD FOSDEM 2019 Open Connect is Netflixs CDN. It is global, efficient, and purpose-built for distributing


  1. Netflix and FreeBSD: Using Open Source to Deliver Streaming Video Jonathan Looney FOSDEM 2019

  2. Open Connect NETFLIX AND FREEBSD FOSDEM 2019

  3. Open Connect is Netflix’s CDN. It is global, efficient, and purpose-built for distributing Netflix’s content. NETFLIX AND FREEBSD FOSDEM 2019

  4. The Open Connect Appliance The OCA is the “backbone” of the Open Connect network. The OCA almost exclusively runs open-source software. 40Gb/s Storage Appliance with 248TB storage (2RU form factor) NETFLIX AND FREEBSD FOSDEM 2019

  5. Open Connect Traffic Video Video Apps Apps Open Connect Video Video Apps Apps NETFLIX AND FREEBSD FOSDEM 2019

  6. Netflix OCA Workload RAM Plain-text Encrypted Data Data CPU Disks NICs NETFLIX AND FREEBSD FOSDEM 2019

  7. Using FreeBSD and commodity parts, we achieve 90 Gb/s serving TLS-encrypted connections with ~55% CPU on a 16-core 2.6-GHz CPU. NETFLIX AND FREEBSD FOSDEM 2019

  8. NETFLIX AND FREEBSD FOSDEM 2019

  9. OCA Operating System NETFLIX AND FREEBSD FOSDEM 2019

  10. (Abridged) BSD “Family Tree” AT&T Unix BSD NetBSD FreeBSD NETFLIX AND FREEBSD FOSDEM 2019

  11. FreeBSD Release Cycle 11.0 11.1 11.2 stable/11 12.0 12.1 stable/12 ? head NETFLIX AND FREEBSD FOSDEM 2019

  12. We Track FreeBSD “Head” FreeBSD head Netflix master Netflix release branches NETFLIX AND FREEBSD FOSDEM 2019

  13. Typical Release Cycle Testing Feature Development/Integration FreeBSD Dev Canary Phased Rollout Merge Testing Testing Five Weeks of Development Five Weeks of Testing/Deployment NETFLIX AND FREEBSD FOSDEM 2019

  14. Examples of Features NUMA enhancements ● Asynchronous sendfile ● Kernel TLS ● Pbuf allocation enhancements ● “Unmapped” mbufs ● I/O scheduling ● TCP algorithms ● TCP logging infrastructure ● NETFLIX AND FREEBSD FOSDEM 2019

  15. Tracking “head” lets us stay forward looking and focused on innovation. NETFLIX AND FREEBSD FOSDEM 2019

  16. Downstream users of open-source projects can be stuck in “vicious” or “virtuous” cycles. NETFLIX AND FREEBSD FOSDEM 2019

  17. Vicious Cycle Infrequent Merges Many Slower Conflicts/ Feature Regressions Velocity NETFLIX AND FREEBSD FOSDEM 2019

  18. Virtuous Cycle Frequent Merges Faster Few Feature Conflicts/ Velocity/ Regressions Collaboration NETFLIX AND FREEBSD FOSDEM 2019

  19. Reasons We Keep Local Diffs Information covered under NDA ● Feature which is still in development/testing ● Feature which needs to be generalized ● NETFLIX AND FREEBSD FOSDEM 2019

  20. It is our intention to upstream any code which we can. NETFLIX AND FREEBSD FOSDEM 2019

  21. Benefits to Netflix of Tracking FreeBSD “Head” Quicker feature iteration ● Quicker access to new FreeBSD features ● Quicker bug fixes ● Enables collaboration ● Minimizes merge conflicts ● Amortizes merge “cost” ● NETFLIX AND FREEBSD FOSDEM 2019

  22. Benefits to FreeBSD Wide deployment of “head” branch code (albeit in a narrow use case) ● Early intensive testing ● Incentive for Netflix to upstream code ● NETFLIX AND FREEBSD FOSDEM 2019

  23. Objections to Running “Development” Code It isn’t stable ● Why should you pay to find the bugs others will find while testing head? ● Aren’t there more security bugs? ● No one runs development branches ● Pay monthly “cost” to do merges ● You get new bugs each month ● NETFLIX AND FREEBSD FOSDEM 2019

  24. Running FreeBSD “head” lets us deliver large amounts of data to our users very efficiently, while maintaining a high velocity of feature development. NETFLIX AND FREEBSD FOSDEM 2019

  25. Thank you

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend