DevOps and Performance - Why, How and Best Practices - DevOps Meetup Sydney

Download DevOps and Performance - Why, How and Best Practices - DevOps Meetup Sydney

Post on 27-Aug-2014

4.283 views

Category:

Technology

0 download

Embed Size (px)

DESCRIPTION

Talk given at DevOps Meetup in Sydney

TRANSCRIPT

<ul><li> DevOps and Performance Why, How &amp; Best Practices @grabnerandi http://apmblog.compuware.com </li> <li> What you may have heard about Austrians </li> <li> And just very recently @ Euro Song Contest </li> <li> How we would like the world to see us </li> <li> What we are also proud of </li> <li> What you should check out </li> <li> The stuff we did when we were a Start Up and we All were Devs, Testers and Ops </li> <li> YOU ARE NOT ALONE: Popularity on Google </li> <li> Who is doing it? How many successful deployments can they do? 300 Deployments / Year 50-60 Deployments / Day 10+ Deployments / Day Every 11.6 seconds </li> <li> More on Amazons Story 75% fewer outages since 2006 90% fewer outage minutes ~0.001% of deployments cause a problem Instantaneous automatic rollback Deploying every 11.6s </li> <li> Testing is Important and gives Confidence </li> <li> But are we ready for The Real world? </li> <li> Measure Performance during the game Ball Possession: 40 : 60 Fouls: 0 : 0 Score: 0 : 0 Minute 1 - 5 </li> <li> Measure Performance during the game Minute 6 - 35 Ball Possession: 80 : 20 Fouls: 2 : 12 Score: 0 : 0 </li> <li> Deep Dive Analysis </li> <li> Options To Fix the situation </li> <li> Not always a happy ending Minute 90 Ball Possession: 80 : 20 Fouls: 4 : 25 Score: 3 : 0 </li> <li> FRUSTRATED FANS!! 25 </li> <li> How does that relate to Software? </li> <li> From Deploy to Deploy Promotion/Event Problems Ops Playbook War Room Timeline </li> <li> The War Room back then 'Houston, we have a problem NASA Mission Control Center, Apollo 13, 1970 </li> <li> The War Room NOW Facebook December 2012 </li> <li> 3 Situations on WHY this happens, HOW to avoid it </li> <li> Image taken from https://www.scriptrock.com/blog/devops-whats-hype-about/ </li> <li> #Disconnected Teams </li> <li> Teamwork between Dev and Ops SEV1 Problem in Production Need access to log files Where are they? Cant get them Need to increase log level Cant do! Cant change config files in prod! </li> <li> Solution: Implement a Custom On Demand Remote Logger </li> <li> Implementation and Rollout Implemented Custom Logger Worked well in Load Testing </li> <li> What happened? ~ 1Mio Lock Exceptions in 30 mins </li> <li> Root Cause: A special WebSphere Setting! Log Service provides a synchronized log file across ALL JVMs Log Service provides a synchronized log file across ALL JVMs </li> <li> Metrics: # Log Messages, # Exceptions Share: Same Server Settings DevOps: Agree on Data for Troubleshooting </li> <li> #No Agile Deployment </li> <li> Adonair Load Spike resulted in Unavailability </li> <li> Alternative: GoDaddy goes DevOps 1h before SuperBowl KickOff 1h after Game ended </li> <li> Behind the Scenes </li> <li> Metrics: Availability Page Size, # Objects # Hosts, # Connections DevOps: Feature Switches </li> <li> #Push without a Plan </li> <li> Mobile Landing Page of Super Bowl Ad 434 Resources in total on that page: 230 JPEGs, 75 PNGs, 50 GIFs, Total size of ~ 20MB </li> <li> m.store.com redirects to www.store.com ALL CSS and JS files are redirected to the www domain This is a lot of time wasted especially on high latency mobile connections </li> <li> Critical Pages not Optimized! Browse, Search and Product Info performs well because they dont follow best practices: 87 Requests, 28 Redirects, Critical Pages such as Shopping Cart are very slow </li> <li> Metrics: Load Time, # Resources (Images, ), # HTTP 3xx, 4xx, 5xx Dev: Build for Mobile Test: Test on Mobile Ops: Monitor Mobile </li> <li> # of Requests / User # of Log Messages # of Exceptions # Objects Allocated # Objects In Cache Cache Hit Ratio # of Images # of SQLs # SQLs per RequestAvailability # HTTP 3xx, 4xx Page Size </li> <li> 54 </li> <li> Commit Stage Compile Execute Unit Test Code Analysis Build installers Automated Acceptance Testing Automated Capacity Testing Manual testing Key showcases Exploratory testing Release Unit &amp; Integration Tests Functional Tests Performance Tests Production Monitoring Functional Tests </li> <li> If we do all that </li> <li> Which gives you more time for the real important things in life </li> <li> Want MORE of these and more details? http://apmblog.compuware.com </li> <li> Recommended Book https://itrevolution.wufoo.com/forms/phoenix-project-ebook-offer/ </li> <li> FREE Products &amp; More Info dynaTrace Enterprise Full End-to-End Visibility in your Java, .NET, PHP Apps Sign up for a 15 Days Free Trial on http://compuwareapm.com dynaTrace AJAX Edition Browser Diagnostics for IE + FF Download @ http://ajax.dynatrace.com Our Blog: http://apmblog.compuware.com </li> </ul>