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

Flying v. Driving: Myths, fears, and opportunit...

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.

Tom McLaughlin

August 29, 2018
Tweet

More Decks by Tom McLaughlin

Other Decks in Technology

Transcript

  1. @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.
  2. @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?
  3. @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.
  4. AWS SAYS COMPANY XYZ SAVED 84% BY MOVING TO AWS

    LAMBDA… https://aws.amazon.com/solutions/case-studies/bustle/
  5. @tmclaughbos SERVERLESSOPS FLIGHT V. DRIVING TO CHICAGO ((1000 miles /

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

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

    13mpg) * $3.00/gal) * 2 Total: $460 round trip
  8. @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
  9. @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
  10. @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
  11. @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
  12. @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
  13. @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.”
  14. @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
  15. @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
  16. @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
  17. @tmclaughbos SERVERLESSOPS THINGS YOU CAN DO WHILE FLYING ▸ Read

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

    DESTINATION, NOT HOW I GOT THERE.
  19. 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
  20. 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