SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995...

64
SRE by Influence, not Authority Brett Haranin - Senior Software Engineer - @BrettHaranin Vinessa Wan - Principal Program Manager - @vnessawithaneye |

Transcript of SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995...

Page 1: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

SRE by Influence, not AuthorityBrett Haranin - Senior Software Engineer - @BrettHaraninVinessa Wan - Principal Program Manager - @vnessawithaneye

|

Page 2: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

Agenda

● Who We Are

● How We Got Here

● Case Study: Midterms Elections Readiness

Page 3: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

Appx 1,600 journalists on staff

15 bureaus in the U.S and 31 international bureaus

Publish around 250 pieces of original journalism each day

Page 4: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

As of Q2 2019, The New York Times has 4.7 million total paid subscriptions of which 3.8 million are digital-only.

Digital-only Subscriptions to The New York Times

Page 5: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

Our Technology Today

● Content Management and

Publishing Systems

● Engagement Experiences, like

Personalization and Comments

● Web and Mobile Platforms

500+ in Technology

● Information Security and

Compliance

● New Ventures like Games,

Parenting, and Cooking

● e-Commerce, Brand and

Marketing

● Advertising Technology

● Data Analytics

● Customer Care Platforms

Page 6: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

How did we get here?

Page 7: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

Abridged History of NYT on the Internet

1970 1975-89 1990 1995 2000 2010 20152005 2020

1974Computers arrive in the Newsroom

1994 @times on AOL

1996Officially online at www.nytimes.com

2010 Start on AWS

2015Tech-wide CI/CD

2016Decision to shut down datacenters

Page 8: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

Formation of Delivery Engineering

Page 9: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

From Greg Dziemidowicz’s blog “Delivery Engineering Team”

Page 10: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

“Delivery engineering team enables others to deliver business value faster.”

From Greg Dziemidowicz’s blog “Delivery Engineering Team”

Page 11: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

What We Do

Tooling & Automation

Engagements Guidance

Engagements Process & Guidance

Page 12: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

What We Are Not

● Infrastructure

● Networking

● Systems INFRASTRUCTURE 2.0

Page 13: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

From, “Delivery Engineering Mission FAQ” in March 2016

“The output of this team are tools and processes that developers use to be more productive and

happier in their daily jobs.”

Page 14: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

From, “Delivery Engineering Mission FAQ” in March 2016

“...the focus will primarily be on how the various engineering teams perceive this team.”

Page 15: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

Product Management Mindset

We view our internal teamsas customers

We incentivize vs. standardize our

tooling and processes

We seekfeedback

and data to drive our decision

making

Page 16: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

Migration to the Cloud in 2018

Page 17: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

In 2018, www.nytimes.com becomes cloud native

300+ Applications Migrated

We shut down 140+ apps and rolled out common tools and guidance.

Page 18: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL
Page 19: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL
Page 20: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

While migration was successful, there was still significant of work to be done.

Page 21: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

Business workflows span across multiple teams

Content Management

System

Publishing Pipeline

Content APIs

Frontend Apps

Page 22: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

Processes still reflect the datacenter ops model

Page 23: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

Not every team is at same level of SRE skill

Page 24: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL
Page 25: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

Trouble appears...

Page 26: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL
Page 27: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

~2x Digital News Subscribers

since the 2016 Presidential Election

Page 28: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

Midterms and Political Climate

Page 29: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

Changes in Business Strategy

Page 30: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

POLITICAL CLIMATE

SUBSCRIBER GROWTH

POST-MIGRATION GROWING PAINS

CHANGES IN BUSINESS STRATEGY

Page 31: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

POLITICAL CLIMATE

SUBSCRIBER GROWTH

POST-MIGRATION GROWING PAINS

CHANGES IN BUSINESS STRATEGY

With only 8 weeks to prepare over 20 teams

Page 32: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL
Page 33: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

Execution: Structure

Delivery Engineering

SRE

Project Leads

Product Engineering

Teams

Page 34: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

Project Design Principles

● Move quickly to find weaknesses● Trust teams ● Drive collaboration

Page 35: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

What we needed to do quickly...

Architecture Reviews

Cross-functional working sessions evaluated systems prior to Midterms to find quick resiliency wins.

Incident Training

Trained Engineers and Newsroom on how to respond in case of an incident or outage.

Partner with vendors on incident response and night of coverage.

Stress Tests + Learning ReviewsConducted stress tests in production.

Held learning review to walk through timeline and identify how to improve.

Page 36: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

Architecture Reviews

Page 37: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

Architecture Review Template

Application Overview

Diagrams

Repositories

Documents & Resources

● RFCs● Documentation● SLOs (If they exist)● Monitoring● Logging● Projects & Accounts● Load

○ Load Test results○ Normal traffic graphs

Questions

❏ What part of the application is most likely to fail?

❏ How do you determine if the application is healthy?

❏ Are these health checks automated? Could you provide an endpoint for us to scrape?

❏ What systems does your application rely on?

❏ Can your application survive if a dependent system fails? If so how long?

Page 38: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL
Page 39: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

Let engineers raise lurking issues

Page 40: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

Raise and prioritize things we find

● Create tickets for reliability improvements across

teams and systems

● Scrum-of-Scrums - 2x weekly reviews - Talk through

blocker issues

Page 41: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

Architecture

Page 42: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

Plan Degradation Strategy

Page 43: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

Incident Training

Page 44: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

Things go wrong - be ready

Goal: develop a shared understanding of incident

lifecycles and roles

Page 45: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

Understand Roles

Page 46: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

Focus on bigger picture

Page 47: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

Emphasize non-engineering bits

Page 48: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

Some stats

Sessions held: 11

Technical Staff trained: 120

Page 49: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

Stress Testing and Review

Page 50: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

See What Breaks

LOAD TESTING STRESS TESTING

Test system behavior under expected load

Test capacity limits under extreme load

Determine throughput, understand resources needed, etc.

Identify bottlenecks in the system, prepare for anticipated high traffic

events

Things might brake Thing will break

Page 51: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

Approach

● Test as a whole system

● Test in production

● Test during the day when folks are in office

Page 52: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL
Page 53: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

Little warning for the news

Page 54: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

Preparations

Provide data to help design stress tests

● Endpoints● Typical load

Partner with teams to:

● Implement tests● Productionalize the stress

testing

Teams’ Prep Our Prep

Page 55: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

The “War Room”

Page 56: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

Learning from Results

System Overall

Test Preparations &

Communications

Systems Readiness for

Elections

Bulbasaur Y Y R

Ivysaur R R R

Pidgey G G G

Oddish G G G

Jigglypuff Y Y Y

Bellsprout G G G

Psyduck Y G Y

Eevee Y G Y

G All good on Systems and Preparations/Communications. We are confident for Elections.

Y Minor risks/issues. But we feel confident they can be resolved by Elections.

R Significant risks/issues; potentially inconclusive results. Management attention needed.

Page 57: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

Learning Reviews + Re-test

● Coordinated learning reviews

● What went well? What didn’t?

● Tickets for action items and improvements

● Re-test

Page 58: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

Results and Outcomes

Page 59: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

Election night

Page 60: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

The Results

● Record traffic for Midterms

● Registration Paywall Meter 40x traffic

● Significant registration growth

● Fast incident response with minimal user disruption

● Demand for more operational maturity exercises

Backend request count per zone

Election Night Paywall Meter Traffic (GKE Ingress)

Page 61: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

“In my 7 years at The Times, I have never seen people come together and work towards a

common goal in the way everyone came together for these elections. I'd love to … enable

this way of working as a norm for our org…”

Page 62: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

Looking Forward

Page 63: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

We’re hiring

nytco.com/careers

@NYTDevs | developers.nytimes.com

@timesopen | open.nytimes.com

Page 64: SRE by Influence, not Authority...Abridged History of NYT on the Internet 1970 1975-89 1990 1995 2000 2005 2010 2015 2020 1974 Computers arrive in the Newsroom 1994 @times on AOL

Thank you!Please reach out if you have questions.

Brett Haranin @BrettHaranin | Vinessa Wan @vnessawithaneye