Application Monitoring in a Post-Server World: Why Data Context is Critical

Post on 16-Apr-2017

475 views 1 download

Transcript of Application Monitoring in a Post-Server World: Why Data Context is Critical

2Confidential ©2008-15 New Relic, Inc. All rights reserved.  

The Decline of the Server

▪Containerization▪Docker▪Amazon ECS

▪Zero config infrastructure-less compute▪AWS Lambda

©2008-15 New Relic, Inc. All rights reserved.  

Lessons learned from Docker

©2008-15 New Relic, Inc. All rights reserved.  

Docker is the app’s lightweight VM

Long lived

Short lived

VM

AmazonEC2

©2008-15 New Relic, Inc. All rights reserved.  

6

Well, that was surprising

Confidential ©2008-15 New Relic, Inc. All rights reserved.  

49ACCOUNTS USING DOCKER

IN LAST 24 HOURS

9,974CONTAINERS REPORTING IN

IN LAST 24 HOURS

©2008-15 New Relic, Inc. All rights reserved.  

7

Apparent usage

Confidential ©2008-15 New Relic, Inc. All rights reserved.  

Long lived

Short lived

AmazonEC2

VM

©2008-15 New Relic, Inc. All rights reserved.  

8

Along came New Relic Synthetics…

Confidential ©2008-15 New Relic, Inc. All rights reserved.  

▪Test external availability and performance▪User authored selenium scripts run in our data

center▪Each run in its own container for security

isolation▪Most run for under a minute

©2008-15 New Relic, Inc. All rights reserved.  

9

Disposable compute container

Confidential ©2008-15 New Relic, Inc. All rights reserved.  

Long lived

Short lived

VM

AmazonEC2

AWSLambd

a

©2008-15 New Relic, Inc. All rights reserved.  

What the heck’s going on?

Confidential ©2008-15 New Relic, Inc. All rights reserved.  

Long lived

Short lived

? ? ?

VM

AmazonEC2

AWSLambd

a

©2008-15 New Relic, Inc. All rights reserved.  

We’re Data Nerds!

Confidential ©2008-15 New Relic, Inc. All rights reserved.   ©2008-15 New Relic, Inc. All rights reserved.  

Docker container age, count vs. hours

100

10K

1M

3.7 M

83 days

333 days

©2008-15 New Relic, Inc. All rights reserved.  

Docker container age, count vs. hours

100

10K

1M

3.7 M

VM’ish

©2008-15 New Relic, Inc. All rights reserved.  

Docker container age, count vs. hours

Confidential ©2008-15 New Relic, Inc. All rights reserved.  

100

10K

1M

3.7 M

EC2’ish

©2008-15 New Relic, Inc. All rights reserved.  

Docker container age, count vs. hours

Confidential ©2008-15 New Relic, Inc. All rights reserved.  

100

10K

1M

3.7 M

Lambda’ish

©2008-15 New Relic, Inc. All rights reserved.  

Container age, by hour under 24 hours

Confidential ©2008-15 New Relic, Inc. All rights reserved.  

3,741,00046% under one hour

©2008-15 New Relic, Inc. All rights reserved.  

Container age, by minute under an hour

Confidential ©2008-15 New Relic, Inc. All rights reserved.  

950,00011% under one minute

©2008-15 New Relic, Inc. All rights reserved.  

Container age, by minute under an hour

Confidential ©2008-15 New Relic, Inc. All rights reserved.  

27% under 5 minutes (versus a VM?)

©2008-15 New Relic, Inc. All rights reserved.  

A surprising result

Confidential ©2008-15 New Relic, Inc. All rights reserved.  

Long lived

Short lived

VMVM

AmazonEC2

AWSLambd

a

©2008-15 New Relic, Inc. All rights reserved.  

June versus now: 5x data, same shape

Confidential ©2008-15 New Relic, Inc. All rights reserved.   ©2008-15 New Relic, Inc. All rights reserved.  

The evolution of computation as a serviceShort startup time (orders mag.) allows very short lived computing

Containers only exist, and only for as long, as they provide value.

Full stop.

Containers are created

Do their work

Go away

©2008-15 New Relic, Inc. All rights reserved.  

Elements of monitoring computation as a service

▪A mere list of instances doesn’t scale, nor help

▪De-provisioned containers still contribute to knowledge

▪Raw metrics just table stakes

▪Context matters to identify computational intent

©2008-15 New Relic, Inc. All rights reserved.  

Monitoring servers

©2008-15 New Relic, Inc. All rights reserved.  

Monitoring computation

©2008-15 New Relic, Inc. All rights reserved.  

Low friction install

New Relic AWS EC2 Beta addresses

Confidential ©2008-15 New Relic, Inc. All rights reserved.  

Managing the dynamic

nature of AWS

Managing the scale of AWS

©2008-15 New Relic, Inc. All rights reserved.  

Increased visibility

Application Monitoring

Server Monitoring

EC2 AWS Metadata

©2008-15 New Relic, Inc. All rights reserved.  

SaaS to SaaS monitoring, under one minute

©2008-15 New Relic, Inc. All rights reserved.  

Dynamic management

Provides AWS status

Maintains accurate EC2 list

Detects blind spots

Shows instance state

©2008-15 New Relic, Inc. All rights reserved.  

Context via tags and metadata as labels

AWS metadata

AWS custom

tags

©2008-15 New Relic, Inc. All rights reserved.  

EC2 instance name

AWS metadata

Custom label

Customer example

©2008-15 New Relic, Inc. All rights reserved.  

New Relic by instance typeSelected

labelInstance

countHealth status

©2008-15 New Relic, Inc. All rights reserved.  

New Relic by availability zone

©2008-15 New Relic, Inc. All rights reserved.  

New Relic by instance type in us-east-1

©2008-15 New Relic, Inc. All rights reserved.  

Confidential ©2008-15 New Relic, Inc. All rights reserved.  

Future requirements for monitoring toolsThe obvious ones

Should handle scale

Should handle dynamic lifecycle

of resources

The less obvious ones

It’s a big data problem

Ops needs ways of quickly pivoting and

drilling in

Deeper understanding requires analytics (raw metrics not

enough) ©2008-15 New Relic, Inc. All rights reserved.  

We all love…

… and yet

Common AWS scenarios

No large infrastructure build out

Quickly provision

Scale out to meet demand

Am I under-provisioned?

Am I over-provisioned?

How well am I responding to demand?

©2008-15 New Relic, Inc. All rights reserved.  

Prototype examples of Analytics

Application and Server metrics

Enriched with context from AWS

As New Relic Insights events

©2008-15 New Relic, Inc. All rights reserved.  

Detecting under-provisioned

Hmm, that’s bad

The smoking gun Aha!

©2008-15 New Relic, Inc. All rights reserved.  

Detecting over-provisionedHmm, that’s too

good

Aha!That’s a waste

©2008-15 New Relic, Inc. All rights reserved.  

Evaluating availability elasticity

Through scale outBut never

de-provisioned

Response time settles back

Increased load

©2008-15 New Relic, Inc. All rights reserved.  

The Ultimate AWS control panel

Confidential ©2008-15 New Relic, Inc. All rights reserved.  

RESOURCES CUSTOMER EXPERIENCE COST

©2008-15 New Relic, Inc. All rights reserved.  

newrelic.com/aws

Sign up for Beta notificationAWS Monitoring resources

Demo videosCome by the booth!