a dashboard is worth a thousand words - usenix · physics, pushing the boundaries of knowledge and...

64

Upload: others

Post on 02-Aug-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration
Page 2: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

A Dashboard is Worth a Thousand Words

Better Monitoring for Better Ops

SRECon19 - Singapore - @lucamag 2

Luca Magnoni – Computing Engineer/CERN IT@lucamag

Page 3: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

About myself• Software Engineer• > 10 years in distributed

systems & data intensive applications

• Service Manager & Project Architect

SRECon19 - Singapore - @lucamag 3

Image credit: CERN

Page 4: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

SRECon19 - Singapore - @lucamag 4

CERNa

Worldwidecollaboration CERN’s primary mission:

SCIENCEFundamental research on particle physics, pushing the boundaries of

knowledge and technology

Page 5: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

CERNWorld’s largestparticle physics

laboratory

SRECon19 - Singapore - @lucamag 5

Image credit: CERN

Page 6: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

SRECon19 - Singapore - @lucamag 6

The Large Hadron Collider: LHC

1232dipoles

15 mt, 35t EACH

27km

Image credit: CERN

Page 7: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

Image credit: CERN

COLDER TEMPERATURESthan outer space

( 120t He )

SRECon19 - Singapore - @lucamag 7

LHC: World’s Largest Cryogenic System (1.9 K)

Image credit: CERN

COLDER TEMPERATURESthan outer space

( 120t He )

Kafka Summit - London 2018 6

LHC: World’s Largest Cryogenic System (1.9 K)

Page 8: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

Vacuum?• Yes

SRECon19 - Singapore - @lucamag 8

LHC: Highest Vacuum

104 kmof PIPES

10-11bar (~ moon)

Image credit: CERN

Page 9: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

Image credit: CERN

The Most

SOPHISTICATED

DETECTORSever built

SRECon19 - Singapore - @lucamag 9

LHC Detectors

Page 10: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

Image credit: CERN

Image credit: CERN

SRECon19 - Singapore - @lucamag 10

ATLAS, CMS, ALICE and LHCb

EIFFEL TOWER

HEAVIERthan the

Image credit: CERN

Page 11: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

SRECon19 - Singapore -@lucamag 11

~100 Mpixel

CAMERA

40 millionspictures

per second

Image credit: CERN

Page 12: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

SRECon19 - Singapore - @lucamag 12

Data Acquisition: What to Record?

Looking for Rare Events

( 10-13 )

1 billionCollisions per second

1PB/sGenerated data

Image credit: CERN

Page 13: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

SRECon19 - Singapore - @lucamag 13

Data Flow to Storage and Processing

ALICE: 4GB/sATLAS: 1GB/sCMS: 600MB/sLHCB: 750MB/s

RUN 2CERN DC

Page 14: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

Image credit: CERN

SRECon19 - Singapore - @lucamag 14

CERN Data Centre: Primary Copy of LHC Data

Data Centre on Google Street View

90k disks15k servers

> 300 PB on TAPES

Page 15: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

About WLCG:• A community of 10,000 physicists

• ~250,000 jobs running concurrently • 600,000 processing cores

• 15% of the resources are at CERN

• 700 PB storage available worldwide

• 20-40 Gbit/s connect CERN to Tier1s

Tier-0 (CERN)• Initial data reconstruction• Data distribution• Data recording & archivingTier-1s (13 centres)• Initial data reconstruction• Permanent storage• Re-processing• AnalysisTier-2s (>150 centres)• Simulation• End-user analysis

WLCG: LHC Computing Grid

Image credit: CERN

170 sites WORLDWIDE

> 10000users

Page 16: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

Open data slides may be?

Page 17: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

CERN IT

Image credit: CERN

1958 First Electronic Computer Installed

Page 18: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

About IT Department

• Over 300 people

• Enable the laboratory to fulfill its mission

• Data Centre and more

• supports IT Services (Batch, Storage, Network, DB,

Web Servers, etc.), Experiments Services (SW

builds), Engineering (Chip design), Infrastructure

(hotel, bikes), Administration

SRECon19 - Singapore - @lucamag 18

Page 19: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

SRECon19 - Singapore - @lucamag 19

IT Infrastructure / Early Days

~ 70sMainframes

Page 20: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

racks

20

IT Infrastructure / ~ Recent Days

SRECon19 - Singapore - @lucamag

Page 21: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

~ 10 years of Data Taking

SRECon19 - Singapore - @lucamag 21

2018: 88 PBATLAS: 24.7CMS: 43.6LHCb: 7.3ALICE: 12.4

Imag

e cr

edit:

CER

N

Page 22: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

~ 2001 / Custom Fabric• EU funded developments• Scale and experience for

LHC was special• Custom tools had to be

developed to manage infrastructures at scale

SRECon19 - Singapore - @lucamag 22

Page 23: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

~ 2013 / Opensource Tools

• LHC requirements kept

growing (on flat budget)

• But CERN scale no longer

special (e.g. Google,

Facebook, Rackspace,… )

• The rise of the Clouds

SRECon19 - Singapore - @lucamag 23

Ima

ge

cre

dit: C

ER

N

PB

/ Y

ear

Page 24: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

~ 2013 / Opensource Tools• Tool-Chain approach• Embrace Opensource

Communities• Focus on Resource Provisioning,

Configuration and Monitoring

SRECon19 - Singapore - @lucamag 24

Page 25: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

Cloud

SRECon19 - Singapore - @lucamag 25

CERN Data Centre: Private Openstack Cloud

More Than

300 000cores

Page 26: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

2019 / Even more Tools …• Containers / Kubernetes

• New deployment models

• More Clouds• Hybrid workflows

• SRE ?

SRECon19 - Singapore - @lucamag 26

Page 27: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

Monitoring “all the things”

SRECon19 - Singapore - @lucamag 27

Image credit: CERN

Page 28: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

Monitoring Mission• Provide Monitoring as a Service for CERN

Data Centre (DC), IT Services and the WLCG collaboration• e.g. Dashboards, Alarms, Search, Archive

• Collect, transport, store and process metrics and logs for applications and infrastructure

SRECon19 - Singapore - @lucamag 28

Page 29: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

Challenges / Rate & Volume• from ~ 40k

machines• > 3 TB/day

(compressed) • ~ 100 kHz

SRECon19 - Singapore - @lucamag 29

Page 30: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

Challenges / Variety • > 150 producers

SRECon19 - Singapore - @lucamag 30

Page 31: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

Challenges / Reliability

SRECon19 - Singapore - @lucamag 31

• spikes in rate and volume

Page 32: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

Non-Technical Challenges• Migrate people from legacy (custom)

dashboards and tools• Stay up to date with upstream tools & trends• Build community, internal and external

SRECon19 - Singapore - @lucamag 32

Page 33: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

How to provide better monitoring?

• ~ 2016 a new project started to provide a new

central monitoring infrastructure to CERN IT

• Goal:

• Effective

• Scalable

• Sustainable

SRECon19 - Singapore - @lucamag 33

Page 34: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

Easy Data Integration / Telemetry • Collectd

• lightweight / plugin based• ~ 40k machines

• JSON/HTTP gateways• custom metrics and logs

• Prometheus• Kubernetes

SRECon19 - Singapore - @lucamag 34

Page 35: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

Responsive / Multiple Backends• Elasticsearch

• search and discovery• 3 clusters, ~ 100 TB

• InfluxDB• time-series data • > 30 instances, 60 kHz

• HDFS• long-term archive

SRECon19 - Singapore - @lucamag 35

Page 36: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

Data Integration is hard• Metrics → TSDB• Logs → search/index• All data → archive• Some Metrics → search/index• Some Logs → TSDB• Users : “ btw, where can I tap in to

get my data? ”

SRECon19 - Singapore - @lucamag 36

Imag

e: ©

201

4 -2

017

Coo

l Wol

f Gam

es

Page 37: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

Monitoring Pipeline

SRECon19 - Singapore - @lucamag 37

Processing• Enrichment• Transformation• Metrics Extraction

Page 38: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

On the pipeline approach• Provides key functionalities:

• decouples producers / consumers• enables stream processing• resilient (72 hours data retention)

• Kafka cluster:• on-premises ( v 1.0.2)• Openstack VMs with Ceph volumes• ~ 15k partitions in total

SRECon19 - Singapore - @lucamag 38

Page 39: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

Dashboards & Visualizations• Critical for the

success of the project• Need to delegate

control to users• Multiple tools

SRECon19 - Singapore - @lucamag 39

Page 40: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

Dashboard / Grafana• Recommended tool

for Dashboard• Multiple Backends• Customizable

(menus, filters, etc.)

SRECon19 - Singapore - @lucamag 40

Page 41: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

network

SRECon19 - Singapore - @lucamag 41

40k hostsNetwork metricsenriched withDC Router

Topology

Page 42: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

transfer

SRECon19 - Singapore - @lucamag 42

7 Millions/day

WLCG transfersclassified

By location, country

site,…

Page 43: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

eos

SRECon19 - Singapore - @lucamag 43

Logs, Metricscombined

to extract

High-LevelInformation

Page 44: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

Alarming• Local (on the machine)

• Simple Threshold / Actuators• On Dashboards

• Grafana Alert Engine• External (Spark, Spectrum, etc.)• Integrated with ticketing system

• ServiceNow

SRECon19 - Singapore - @lucamag 44

SNOW

Page 45: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

Monitoring Technologies

SRECon19 - Singapore - @lucamag 45

Page 46: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

Successful story

• Monitoring by Numbers:

• ~ 900 Active Users

• > 1000 Dashboards

• ~ 1000000 Queries/day

• > 30 Grafana Orgs

• service operations, debug, troubleshooting, etc.

• Next is to profit at best from all this data

SRECon19 - Singapore - @lucamag 46

Page 47: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

Better Ops

Page 48: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

SRE Key Points of Interest• Common framework for

production-systems management

• Reduce operational load• Formalize best-practices for

software velocity and quality

SRECon19 - Singapore - @lucamag 48

Cop

yrig

ht 2

019

Goo

gle

LLC

.

Page 49: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

SRE Practices / Good fit with CERN IT • SRE Culture

• Openness, Sharing• Joint-Ownerships / Accountability

• “one person’s symptom is another person’s cause”

• Sustainability• Attracts skills, Career

opportunities

SRECon19 - Singapore - @lucamag 49

blameless post-mortems

Page 50: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

Monitoring like SRE• Goal: build common

language & culture• Introducing SLI & SLO • One Dashboard at the

Time

SRECon19 - Singapore - @lucamag 50

Page 51: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

Introducing SLI / Strategy• Build critical mass of early adopters among

main IT services• Work with service managers to extract the

relevant data (some indicators already there…)• Try to solve a real problem to help the idea

spread faster• i.e. improve Service Availability reporting

SRECon19 - Singapore - @lucamag 51

Page 52: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

• True stories from chat / mattermost snippets:• Is there a problem with service X ?• Is anybody else having issues today ?• I think service X is slow • I think service X is having some issue lately• How our service evolved? Are we doing better?

SRECon19 - Singapore - @lucamag 52

Tackling Service Availability

Page 53: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

Tackling Service Availability / 2 • Availability Metric exists• Not easy to get actual

health of services today• Would benefit from more

precise and quantitative measurement

SRECon19 - Singapore - @lucamag 53

Page 54: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

SLI Overview Dashboard• SLI as user-facing metrics• Focus on Golden signals, such as

• Write/Read Latency for Storage systems• Rate of cloud API requests • Rate of batch server occupancy• Catalog compilation time

• Dashboard: visual feedback for users

SRECon19 - Singapore - @lucamag 54

Page 55: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

SLIOverview

Dashboard

SRECon19 - Singapore - @lucamag 55

Page 56: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

SRECon19 - Singapore - @lucamag 56

SLIDrill-Down

per Customer Service

Page 57: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

Dashboard / Grafana

SRECon19 - Singapore - @lucamag 57

• Single Stat panels • Drill-down on details

dashboards per category

• Threshold as SLO

Page 58: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

Tracking SLO

SRECon19 - Singapore - @lucamag 58

• Check SLI vs defined SLO

• Grafana Rules to generate alarms

• Webhook to HTTP

Page 59: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

SLO Driven Operations

SRECon19 - Singapore - @lucamag 59

• Alert on SLO miss• Care about

symptoms first• Build Performance

Trend • SLO-Driven

Availability

Page 60: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

Technical Challenges• Grafana Alert Engine

• Rely on TSDB capabilities

• Prometheus fairly advanced, InfluxQL has some limitation, Flux should solve

• Black-box vs White-box

• white-box fits the usual metrics flow, black-box may benefits from common framework for probing

SRECon19 - Singapore - @lucamag 60

Page 61: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

Non-technical challenges• Service dependencies

• “Not my fault”• Big debate on user-related metrics as SLI• Bottom-Up approach

SRECon19 - Singapore - @lucamag 61

Page 62: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

Lessons Learned• Dashboard-first approach

works• SLI & SLO are good

starting points• Cultural change

• target people more than technology

SRECon19 - Singapore - @lucamag 62

Page 63: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration

Conclusion• Successful migration to modern opensource

monitoring stack and common practises• SRE framework and culture proved to be a

good direction for service operations evolution• Just at the beginning of the SRE journey,

looking forward for the next steps

SRECon19 - Singapore - @lucamag 63

Page 64: A Dashboard is Worth a Thousand Words - USENIX · physics, pushing the boundaries of knowledge and technology. CERN World’s largest particle physics ... Easy Data Integration