Top Banner
Getting the most bang for your buck
33

Leveraging the Cloud: Getting the more bang for your buck

Sep 16, 2014

Download

Technology

Cloud management and monitoring includes a broad set of tools that help cloud managers to keep track of their deployment health, utilization, consumption and cost.

This deck will cover techniques and best practices for efficient cloud deployment, specifically: how to implement capacity, utilization and cost metrics in your AWS cloud deployment in order to maximize the ROI.
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Leveraging the Cloud: Getting the more bang for your buck

Getting the most bang for your buck

Page 2: Leveraging the Cloud: Getting the more bang for your buck

Nate Lindstrom Director of Network Operations at Desk.com

www.linkedin.com/in/nwlindstrom

Page 3: Leveraging the Cloud: Getting the more bang for your buck

§  We make it easy for you to support customers right from the browser, via email, phone, chat web, Facebook and Twitter

§  We provide a hosted, cloud-based SaaS

help desk platform for SMBs

Page 4: Leveraging the Cloud: Getting the more bang for your buck

Cloudy Change Management Trust but verify

Cloud Change Management Trust but verify

Page 5: Leveraging the Cloud: Getting the more bang for your buck

Process requirements

Formal, documented change management

ISO 27001 compliance

SOX section 404 compliance

Safe Harbor certification

Process Requirements

§  Formal, documented change management

§  ISO 27001 compliance

§  SOX section 404 compliance

§  Safe Harbor certification

Page 6: Leveraging the Cloud: Getting the more bang for your buck

Single file change process

§  Changes can be made rapidly and safely

§  Unauthorized changes reverted by the CMS or flagged by CloudPassage Halo FIM

RFC created

RFC closed

Make pull

request

Change applied to

staging

Effects observed

Change applied to

production

FIM updated

SME reviews request

Page 7: Leveraging the Cloud: Getting the more bang for your buck

Under the hood

§  Chicken-and-egg problem for new instances

§  Puppet determines role based on hostname

§  Hostname isn’t set on new instances

Under the hood

Chicken-and-egg problem for new instances

Puppet determines role based on hostname

Hostname  isn’t  set  on  new instances

Page 8: Leveraging the Cloud: Getting the more bang for your buck

How we start instances

node/^web\d+.desk\.com$/ inherits production_app { include web}

Puppet

AMI

Script

web01.desk.com nginx

Name=web01.desk.com

Page 9: Leveraging the Cloud: Getting the more bang for your buck

How we monitor instances

S3 Bucket

web01.desk.com cron

Page 10: Leveraging the Cloud: Getting the more bang for your buck

Effective monitoring

§  Icinga is the most comprehensive open source monitoring solution available

Effective monitoring

Icinga is the most comprehensive open source monitoring solution available

Page 11: Leveraging the Cloud: Getting the more bang for your buck

Secret change process

§  “Secret” as in production secrets, like passwords

RFC created

RFC closed

Make pull

request

Change applied to

production

FIM updated

SME reviews request

Page 12: Leveraging the Cloud: Getting the more bang for your buck

Under the hood

§  Storing production secrets in plain text is BAD

§  Sending decryption key over same channel as encrypted data is BAD

Under the hood

Storing production secrets in plain text is bad

Sending decryption key over same channel as encrypted data is bad

Page 13: Leveraging the Cloud: Getting the more bang for your buck

Secure repositories TechO

ps Everyone

Puppet git

Repo

Prod Credentials

Non-Prod Credentials

Full Access Pull Request Only

GnuPG GnuPG

Page 14: Leveraging the Cloud: Getting the more bang for your buck

Secure distribution

Puppet git

Repo

Instance Credentials Puppet

git  

Secrets  

GnuPG Key  

AMI  

Page 15: Leveraging the Cloud: Getting the more bang for your buck

What the cloud means to us More typing, less driving

What the cloud means to us More typing, less driving

Page 16: Leveraging the Cloud: Getting the more bang for your buck

Physical asset tracking

§  If you came to doubt the accuracy of your CMDB, you could always fall back on a physical inventory

§  Almost always, anyways

Physical asset tracking

If you came to doubt the accuracy of your CMDB, you could always fall back on a physical inventory

Almost always, anyway

Page 17: Leveraging the Cloud: Getting the more bang for your buck

Virtual asset tracking §  When you don’t have any physical assets it’s even

easier to “lose” instances

§  “Lost” instances can silently consume big $$$

Virtual asset tracking When  you  don’t  have  any  physical  assets  it’s  even  easier  to  “lose”  instances

“Lost”  instances  can  silently  consume  big  $$$

Page 18: Leveraging the Cloud: Getting the more bang for your buck

How an instance can be lost §  Provisioning script loses connectivity during launch

§  Instance fails to upload existence information to S3

S3 Bucket

CMDB

Instance

Updates Launches

Provisioning Sot

Page 19: Leveraging the Cloud: Getting the more bang for your buck

Minimizing lost instances

§  Your CMDB may not see your lost instances consuming $$$, but Cloudyn does

§  Cloudyn makes it easy to maintain an efficient and lean cloud presence

Minimizing lost instances

Your CMDB may not see your lost instances consuming $$$, but Cloudyn does

Cloudyn makes it easy to maintain an efficient and lean cloud presence

Page 20: Leveraging the Cloud: Getting the more bang for your buck

JIT capacity Let your servers order more servers

JIT capacity Let your servers order more servers

Page 21: Leveraging the Cloud: Getting the more bang for your buck

Auto Scale architecture §  Everything should scale horizontally

Auto Scale architecture

Everything should scale horizontally

Page 22: Leveraging the Cloud: Getting the more bang for your buck

Auto Scale in action §  Loosely-couple tiers provide greatest flexibility

§  Scale up quickly, scale down slowly Auto Scale in action

Loosely-coupled tiers provide greatest flexibility

Scale up quickly, scale down slowly

Web Web Web Web Web Web Web

App App App App App App

ELB

ELB

Traf

fic In

crea

sing

Traffic Decreasing

Page 23: Leveraging the Cloud: Getting the more bang for your buck

Auto Scaling control

§  Scalr makes managing dynamic environments in the cloud easy and painless

Auto Scaling control

Scalr makes managing dynamic environments in the cloud easy and painless

Page 24: Leveraging the Cloud: Getting the more bang for your buck

Whole-unit troubleshooting

Don’t sweat the small stuff

Whole-unit troubleshooting Don’t  sweat  the  small stuff

Page 25: Leveraging the Cloud: Getting the more bang for your buck

Think in clusters §  If one instance is having problems, replace it

§  If many instances are having problems, dig deeper

§  Use the 1, 2, 3 rule for determining response

ELB  

Instance Instance Instance Instance Instance

Page 26: Leveraging the Cloud: Getting the more bang for your buck

Architecture for failure

Build it to land gracefully

Architecting for failure Build it to land gracefully

Page 27: Leveraging the Cloud: Getting the more bang for your buck

AWS

Expect failure §  Make use of regions and availability zones

§  Avoid storing sessions on any one server

§  The cloud is inherently unreliable, but your app doesn’t need to be

us-west-1

Us-west-1a

us-east-1

Us-west-1b

Page 28: Leveraging the Cloud: Getting the more bang for your buck

Security awareness

False security is worse than no security

Security awareness False security is worse than no security

Page 29: Leveraging the Cloud: Getting the more bang for your buck

Cloud isn’t private §  Multitenancy means the cloud is never truly

private

§  Build security in from the very beginning

§  Apply defense in depth

ELB   Web

Internet

ELB   App DB

Page 30: Leveraging the Cloud: Getting the more bang for your buck

Security groups are limited §  An instance’s security

groups cannot ever be changed

§  Security groups can only limit inbound (ingress) traffic

§  Security groups cannot restrict outbound (egress) traffic

Security groups are limited An  instance’s  security  groups cannot ever be changed

Security groups can only limit inbound (ingress) traffic

Security groups cannot restrict outbound (egress) traffic

Page 31: Leveraging the Cloud: Getting the more bang for your buck

Comprehensive security

§  CloudPassage Halo allows the implementation of comprehensive security with minimal effort

Comprehensive security

CloudPassage Halo allows the implementation of comprehensive security with minimal effort

Page 32: Leveraging the Cloud: Getting the more bang for your buck

The cloud… §  Is not a data center

§  Is only as secure as you make it

§  Is very expensive if not managed well

§  Works best with lots and lots of litter servers

§  Will occasionally fail

The cloud...

Is not a data center

Is only as secure as you make it

Is very expensive if not managed well

Works best with lots and lots of little servers

Will occasionally fail

Page 33: Leveraging the Cloud: Getting the more bang for your buck

THANK YOU!