41

Velocity2014 gvp

Embed Size (px)

Citation preview

Page 1: Velocity2014 gvp
Page 2: Velocity2014 gvp

Who are we?

Mateus Bartz(@mateus_bartz)

Internet and IT professional with +10

years managing a broad range of

technologies in large-scale and

mission-critical environments. Now

working in Telefónica as “Tools

master”.

Automation, Photos and Programing

are my current passion.

My motto: If moves, measure it. If not

move as you want, automate it!

Page 3: Velocity2014 gvp

Who are we?

Almudena Vivanco (@MrsDaehin)

From .net developer to tester. 10 years

of experience as performance engineer.

Now working in Telefónica I+D as

“Performance Jedi”.

Active member of the web performance

community in Barcelona.

Gaming, Music and Maths are my

passion

My motto: Games don’t cause violence,

Lag does!

Page 4: Velocity2014 gvp

Guide to survive a World Wide Event

Page 5: Velocity2014 gvp

The Challenge

Build the best Video Platform to help Telefonica to become a

Video Company

Page 6: Velocity2014 gvp

The golden rule

• PASSION - If it was OK, they will be back

• DON’T MISS THE TARGET – The audience go away

• WILL START WITHOUT YOU - The soccer game will start at the date/time

The Golden Rule

Page 7: Velocity2014 gvp

The Users

Page 8: Velocity2014 gvp

The Passion

Page 9: Velocity2014 gvp

- Do you know what

you are missing?

- Know how to act?

- Have the relevant

info?

Don’t miss the target

Page 10: Velocity2014 gvp

The Team

Page 11: Velocity2014 gvp

Our Goal

Page 12: Velocity2014 gvp

Scalability

Page 13: Velocity2014 gvp

The Behaviour

Page 14: Velocity2014 gvp

Spain - Brazil- Argentina

Page 15: Velocity2014 gvp

Many Devices

And MANY more ….

Page 16: Velocity2014 gvp

The Jungle

Page 17: Velocity2014 gvp

Change of Strategy

Page 18: Velocity2014 gvp

Global Video Platform Squads

Page 19: Velocity2014 gvp

Deployment

Page 20: Velocity2014 gvp

Continuous ... wait ... what?

Automated Tests in .NET

PREPROD Environment

Stable Environment

Page 21: Velocity2014 gvp

Stable Testing Environment

Page 22: Velocity2014 gvp

Thumbox

Page 23: Velocity2014 gvp

Latency

Page 24: Velocity2014 gvp

In House CDN

Page 25: Velocity2014 gvp

Old Approach New Approach

• Monitoring resolution 5 minutes

• 11 tools to monitor performance

• Monitoring resolution 15 seconds

• Centralized in 1 tool to monitor performance

Don’t miss the target

Page 26: Velocity2014 gvp

GraphiteAudience

Web Servers (FE/API)

Cache Layer

Databases

Virtualization

Storage (SAN/NAS)

Networking

Don’t miss the target

Page 27: Velocity2014 gvp

Don’t miss the target

Page 28: Velocity2014 gvp

What is graphite?• A highly scalable real-time graphing system

• Comprise of 3 projects– Carbon (Collect and record metrics)– Whisper (Storage mechanism)– Graphite-Web (web GUI)

• Start here:– http://graphite.readthedocs.org/– https://github.com/graphite-project/graphite-web

Don’t miss the target

Page 29: Velocity2014 gvp

Example please!!!

Don’t miss the target

Page 30: Velocity2014 gvp

2nd half begins

match begins

1st half ends 2nd half

ends

Introducing: The Soccer Game

Don’t miss the target

Page 31: Velocity2014 gvp

BE PREPARED FOR THE PEAK

Simulate your workload and know

your bottleneck

Don’t miss the target

Page 32: Velocity2014 gvp

It is better know the bad things when you have time to solve it !!!!

Don’t miss the target

Page 33: Velocity2014 gvp

If you need different output

Start adding a feedback (B)

Don’t miss the target

Page 34: Velocity2014 gvp

Don’t do queries with full tables scans

Show and give access

SELECTOBJECT_NAME(S.[OBJECT_ID]) AS [OBJECT NAME],I.[NAME] AS [INDEX NAME],USER_SEEKS,USER_SCANS,USER_LOOKUPS,USER_UPDATES

FROM SYS.DM_DB_INDEX_USAGE_STATS AS SINNER JOIN SYS.INDEXES AS ION I.[OBJECT_ID] = S.[OBJECT_ID]AND I.INDEX_ID = S.INDEX_ID

Don’t miss the target

Page 35: Velocity2014 gvp

1 Index Creation 1 Query change

Don’t miss the target

Page 36: Velocity2014 gvp

Know what are you doing!!!

Don’t miss the target

Page 37: Velocity2014 gvp

The soccer game will start if you are ready or not.

Get your team ready. They have to know what to do.

It will start without you

Page 38: Velocity2014 gvp

It will start without you

Page 39: Velocity2014 gvp

It will start without you

Page 40: Velocity2014 gvp

Questions

Page 41: Velocity2014 gvp

Thank you!!!