Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Flying v. Driving: Myths, fears, and opportunity when going serverless - DevOps Days Chicago 2018

Flying v. Driving: Myths, fears, and opportunity when going serverless - DevOps Days Chicago 2018

Going serverless is a lot like deciding to fly instead of driving. Flying is routinely safer than driving to your destination but requires a high level of trust in your airline and many are still scared. We’ll explore going serverless by confronting fears and examining it’s new issues.

24794783b45c456b21ff78d6d8259456?s=128

Tom McLaughlin

August 29, 2018
Tweet

Transcript

  1. @tmclaughbos SERVERLESSOPS MYTHS, FEARS, AND OPPORTUNITY WHEN GOING SERVERLESS FLYING

    V. DRIVING
  2. HOW DID THIS TALK COME ABOUT?

  3. LET’S PLAN MY TRIP TO DENVER SEATTLE CHICAGO

  4. None
  5. ACCIDENTS & FAILURE

  6. SERVERLESSOPS @tmclaughbos TRAVEL ACCIDENTS & FAILURE

  7. SERVERLESSOPS @tmclaughbos CLOUD ACCIDENTS & FAILURE

  8. @tmclaughbos SERVERLESSOPS THIS ISSUES I WORRY ABOUT WITH SERVERS ▸

    Are we under or over sized? ▸ Do we have enough CPU, RAM, disk? ▸ Is every necessary service on the host running? ▸ Are we all up to date with OS patching? ▸ Is this sysctl or config value set? ▸ Are we on the right version? I think that was fixed two releases ago.
  9. @tmclaughbos SERVERLESSOPS THIS ISSUES I WORRY ABOUT WITH SERVERLESS ▸

    Is the application responsive? ▸ Are application requests returned in a timely manner? ▸ What do application error rates look like? ▸ How do we handle application traffic spikes? ▸ How complex of an application have we built?
  10. @tmclaughbos SERVERLESSOPS ACCIDENTS AND FAILURE WHEN SERVERLESS ▸ AWS is

    probably better at the low-level undifferentiated work than you. ▸ Less control also means less things you can break. ▸ This frees you to worry about issues higher up the stack.
  11. COST

  12. AWS SAYS COMPANY XYZ SAVED 84% BY MOVING TO AWS

    LAMBDA… https://aws.amazon.com/solutions/case-studies/bustle/
  13. SERVERLESSOPS @tmclaughbos HERE’S MY FLIGHT OPTIONS…

  14. @tmclaughbos SERVERLESSOPS TRAVEL BY CAR ((1000 miles / 36mpg) *

    $2.66/gal) * 2 Total: $147 round trip
  15. @tmclaughbos SERVERLESSOPS FLIGHT V. DRIVING TO CHICAGO ((1000 miles /

    36mpg) * $2.66/gal) * 2 Total: $147 round trip
  16. @tmclaughbos SERVERLESSOPS FLIGHT V. DRIVING TO CHICAGO ((1000 miles /

    26mpg) * $3.00/gal) * 2 Total: $230 round trip
  17. @tmclaughbos SERVERLESSOPS FLIGHT V. DRIVING TO CHICAGO ((1000 miles /

    13mpg) * $3.00/gal) * 2 Total: $460 round trip
  18. @tmclaughbos SERVERLESSOPS ACTUAL TRAVEL COSTS ‣ Ticket: $289 ‣ Lyft:

    ‣ Airport <—> Home: $10 x 2 ‣ Airport <—> Hotel: $43 x 2 Total: $395 ‣ Gas: $230 ‣ Hotel: $79 in Cleveland ‣ Meals ‣ Breakfast: $7.50 ‣ Lunch: $7.50 ‣ Dinner: $7.50 ‣ Coffee: $7.50 ($3.75 * 2) Total: $339
  19. @tmclaughbos SERVERLESSOPS LAMBDA VS. EC2 COSTS (THAT WE TELL OURSELVES)

    ‣ Instance: 1 x t2.nano Total: $4.25/month ‣ Requests: 2,678,400 (1rps) ‣ Duration: 100ms ‣ Memory: 128MB Total: $0.55/month
  20. @tmclaughbos SERVERLESSOPS LAMBDA VS. EC2 COSTS (ACTUAL) ‣ Instance: 2

    x m4.large ($146.40) ‣ SaaS services: ‣ Logging: $20 ($10 * 2) ‣ Security: $20 ($10 * 2) Total: $186.40/month ‣ Invocations: 2,678,400 ($0.557 - 1rps) ‣ Duration: 100ms ‣ Memory: 128MB ‣ Requests: 2,678,400 ($0.535) Total: $1.09/month
  21. @tmclaughbos SERVERLESSOPS LAMBDA VS. EC2 COSTS (ACTUAL) ‣ Instance: 2

    x m4.large ($146.40) ‣ SaaS services: ‣ Logging: $20 ($10 * 2) ‣ Security: $20 ($10 * 2) Total: $186.40/month ‣ Invocations: 267,840,000 ($55.71 - 100rps) ‣ Duration: 100ms ‣ Memory: 128MB ‣ Requests: 267,840,000 ($53.56) Total: $109.27/month
  22. @tmclaughbos SERVERLESSOPS LAMBDA VS. EC2 COSTS (ACTUAL) ‣ Instance: 2

    x m4.large ($146.40) ‣ SaaS services: ‣ Logging: $20 ($10 * 2) ‣ Security: $20 ($10 * 2) Total: $186.40/month ‣ Invocations: 267,840,000 ($223.38 - 100rps) ‣ Duration: 200ms ‣ Memory: 256MB ‣ Requests: 267,840,000 ($53.56) Total: $276.93/month
  23. @tmclaughbos SERVERLESSOPS BOTH OF THESE CAN BE TRUE ‣ “Lambda

    saved us 85% on our bill.” ‣ “Moving to EC2 from Lambda saved us 99% on our bill.”
  24. @tmclaughbos SERVERLESSOPS ACTUAL TRAVEL COSTS: DENVER ‣ Ticket: $340 ‣

    Lyft: ‣ Airport <—> Home: $10 x 2 ‣ Airport <—> Hotel: $33 x 2 Total: $426 ‣ Gas: $296 ‣ Hotel: $92 (Cleveland: $43 + De Moines: $49) ‣ Meals ‣ Breakfast: $15 ($7.50 *2) ‣ Lunch: $15 ($7.50 * 2) ‣ Dinner: $15 ($7.50 * 2) ‣ Coffee: $15 ($3.75 * 3) Total: $448
  25. @tmclaughbos SERVERLESSOPS ACTUAL TRAVEL COSTS: SEATTLE ‣ Ticket: $385 ‣

    Lyft: ‣ Airport <—> Home: $10 x 2 ‣ Airport <—> Hotel: $29 x 2 Total: $463 ‣ Gas: $443 ‣ Hotel: $152 (Cleveland: $43 + Minneapolis: $50 + Billings: $59) ‣ Meals ‣ Breakfast: $22.50 ($7.50 *3) ‣ Lunch: $30 ($7.50 * 4) ‣ Dinner: $22.50 ($7.50 * 3) ‣ Coffee: $30 ($3.75 * 8) Total: $700
  26. @tmclaughbos SERVERLESSOPS ACTUAL TRAVEL COSTS: CHICAGO ‣ Ticket: $289 ‣

    Lyft: ‣ Airport <—> Home: $10 x 2 ‣ Airport <—> Hotel: $43 x 2 Total: $395 ‣ Gas: $230 ‣ Hotel: $79 in Cleveland ‣ Meals ‣ Breakfast: $7.50 ‣ Lunch: $7.50 ‣ Dinner: $7.50 ‣ Coffee: $7.50 ($3.75 * 2) Total: $339
  27. None
  28. THE RIDE ITSELF

  29. @tmclaughbos SERVERLESSOPS THINGS YOU CAN DO WHILE DRIVING ▸ Drive

  30. @tmclaughbos SERVERLESSOPS THINGS YOU CAN DO WHILE FLYING ▸ Read

    ▸ Watch movies ▸ Deliver Twitter hottakes ▸ Email ▸ Code ▸ Write blog post ▸ Write a conference presentation
  31. I WANT THE FOCUS OF MY TRIP TO BE MY

    DESTINATION, NOT HOW I GOT THERE.
  32. SERVERLESSOPS @TMCLAUGHBOS WHAT I DO WITH SERVERS ‣ Managing a

    host deployment system ‣ Managing an app deployment system ‣ Config management ‣ Monitoring host state & metrics ‣ Monitoring app state & metrics ‣ Patching hosts ‣ Monitoring who logged in ‣ Scaling services
  33. SERVERLESSOPS @TMCLAUGHBOS WHAT I DO WITH SERVERLESS ‣ Managing a

    host deployment system ‣ Managing an app deployment system ‣ Config management ‣ Monitoring host state & metrics ‣ Monitoring app state & metrics ‣ Patching hosts apps ‣ Monitoring who logged in resource access ‣ Scaling services systems
  34. SERVERLESSOPS @tmclaughbos WHAT I WANT TO START MONITORING

  35. SERVERLESSOPS @tmclaughbos WHAT I USED TO FOCUS ON VERSUS WHAT

    I WANT TO FOCUS ON
  36. (THIS SLIDE LEFT BLANK)

  37. THANK YOU @tmclaughbos SERVERLESSOPS HTTPS://WWW.SERVERLESSOPS.IO