planning a successful private cloud - cloudstack collaboration europe 2013

34
Tim Mackey – XenServer Community Evangelist Planning your private cloud Learning from the lessons of others CloudStack Collaboration Conference Europe 2013

Upload: tim-mackey

Post on 08-May-2015

1.264 views

Category:

Technology


2 download

DESCRIPTION

So your boss just asked you to build a private cloud. Now what? Successful private clouds require a bit of planning, and your existing best practices may need to be adjusted. This deck covers some of the issues you'll face, or be aware of, as you migrate from an existing data center operation to one which is more "cloud-like". Some things may seem obvious, but there are aspects to network and storage design which impact success. This deck draws from my experience in building my first CloudStack cloud in early 2012 and has applicability to anyone seeking to deliver cloud services.

TRANSCRIPT

Page 1: Planning a successful private cloud - CloudStack Collaboration Europe 2013

Tim Mackey – XenServer Community Evangelist

Planning your private cloudLearning from the lessons of others

CloudStack Collaboration Conference Europe 2013

Page 2: Planning a successful private cloud - CloudStack Collaboration Europe 2013

© Citrix 2013. More information at xenserver.org and follow me on twitter @XenServerArmy

Private Cloud, Why Now?

• Valid alternative to public clouds that are cheap and readily available

• Speed and agility of deployment

• Control of corporate assets

• Cloud Management Platform market maturity

• Future-proofing for nextgen, webscale workloads

“An IaaS cloud is a highly automated

virtual infrastructure that enables self-service resource

requests, and consumption of the shared environment is tracked for either

chargeback or showback purposes.”

Forrester Research

100’s of pilots and few production deployments in 2011; expected to be 10 times more in 2012 - Gartner

Page 3: Planning a successful private cloud - CloudStack Collaboration Europe 2013

© Citrix 2013. More information at xenserver.org and follow me on twitter @XenServerArmy

Enterprise Objectives for Cloud

Remove IT as a service delivery critical pathSelf ServiceSelf Service

Reduce IT operational costsManagement Automation

Management Automation

Consistent application and service deploymentWorkload Standardization

Workload Standardization

Manage complete infrastructure, regardless of scaleCentralized ManagementCentralized

Management

Drive reduced capital requirementsSmarter VirtualizationSmarter VirtualizationCa

pita

l Lev

era

geW

ork

forc

e L

eve

rage

Visibility into user and line of business usageUsage MeteringUsage Metering

Page 4: Planning a successful private cloud - CloudStack Collaboration Europe 2013

© Citrix 2013. More information at xenserver.org and follow me on twitter @XenServerArmy

Traditional Data Center Amazon-style Cloud

AvailabilityZone

AvailabilityZone

Object Storage

vCenter

vSphere

ESXiCluster

Enterprise Networking (e.g., VLAN)

Enterprise Storage (e.g., SAN)

ESXiCluster

ESXiCluster

CloudStack Management ServerLegacy Availability Zone

AvailabilityZone

ORAND

Page 5: Planning a successful private cloud - CloudStack Collaboration Europe 2013

Best practices aren’t always

Page 6: Planning a successful private cloud - CloudStack Collaboration Europe 2013

Density in the cloud

Page 7: Planning a successful private cloud - CloudStack Collaboration Europe 2013

© Citrix 2013. More information at xenserver.org and follow me on twitter @XenServerArmy

Traditional Server Virtualization

• Core Objectivesᵒ Server consolidationᵒ Power and cooling savingsᵒ Hardware independence

• Looks Likeᵒ VM Density < 20 ᵒ vCPU = pCPUᵒ vRAM = pRAMᵒ Low IOPSᵒ Redundancy mattersᵒ No templates

7

Page 8: Planning a successful private cloud - CloudStack Collaboration Europe 2013

© Citrix 2013. More information at xenserver.org and follow me on twitter @XenServerArmy

Desktop Virtualization

• Core Objectivesᵒ Control of IPᵒ Ensuring patch complianceᵒ Supporting mobile workstyles

• Looks Likeᵒ 50 -100 VMs per hostᵒ 2-4 vCores = pCoreᵒ 1-2 vRAM = pRAMᵒ High IOPSᵒ Boot stormsᵒ Network contentionᵒ Highly templated

8

Page 9: Planning a successful private cloud - CloudStack Collaboration Europe 2013

© Citrix 2013. More information at xenserver.org and follow me on twitter @XenServerArmy

Cloud Services

• Core Objectivesᵒ Agile provisioningᵒ High degrees of tenant isolationᵒ Low operating margins

• Looks Likeᵒ 50-250 VMs per hostᵒ 2-8 vCore = pCoreᵒ vRAM = pRAMᵒ Moderate IOPSᵒ Network contentionᵒ Largely templated

9

Page 10: Planning a successful private cloud - CloudStack Collaboration Europe 2013

Planning the network

Page 11: Planning a successful private cloud - CloudStack Collaboration Europe 2013

© Citrix 2013. More information at xenserver.org and follow me on twitter @XenServerArmy

Before Virtualization

• Simple management model

• Provisioning took a long time

• Topologies fairly static

Page 12: Planning a successful private cloud - CloudStack Collaboration Europe 2013

© Citrix 2013. More information at xenserver.org and follow me on twitter @XenServerArmy

Along Comes Server Virtualization

• Multiple VMs/hostᵒ Loss of visibilityᵒ Loss of control

• Edge moves into hostᵒ Network admins need to understand

server virtualization

Page 13: Planning a successful private cloud - CloudStack Collaboration Europe 2013

© Citrix 2013. More information at xenserver.org and follow me on twitter @XenServerArmy

Example 1 – Mirroring Traffic

• Without virtualization this is pretty easy

• With virtualization you now have multiple VMs

Page 14: Planning a successful private cloud - CloudStack Collaboration Europe 2013

© Citrix 2013. More information at xenserver.org and follow me on twitter @XenServerArmy

Example 1 – Mirroring Traffic

• Without virtualization this is pretty easy

• With virtualization you now have multiple VMsᵒ Plus VMs can move

• Better to monitor at virtual switch

Page 15: Planning a successful private cloud - CloudStack Collaboration Europe 2013

© Citrix 2013. More information at xenserver.org and follow me on twitter @XenServerArmy

Example 2 – Network Policies

• Server admins have significant impact on the networkᵒ IP and MAC Addressᵒ Virtual NICsᵒ Protocols and ports

• Granular network control requires awareness of virtual machinesᵒ Define policies at virtual switch

Page 16: Planning a successful private cloud - CloudStack Collaboration Europe 2013

© Citrix 2013. More information at xenserver.org and follow me on twitter @XenServerArmy

Network Management Tools Lag

• Assumptions of fixed topologyᵒ Fine for physicalᵒ Challenge for dynamic environment

• Not virtualization awareᵒ Incorrect topologyᵒ Incomplete topologyᵒ VM actions obsolete data

X

Page 17: Planning a successful private cloud - CloudStack Collaboration Europe 2013

© Citrix 2013. More information at xenserver.org and follow me on twitter @XenServerArmy

Virtual Machine Density Planning

• Host capacities are growing rapidlyᵒ vSphere 5 > 512 VMsᵒ RHEV 3 > 1000 VMsᵒ Hyper-V > 2048 VMs

• Clouds and VDI push limits

• Top of rack switch selection matters?ᵒ ARP tableᵒ Switching performance dropsᵒ VM starts, but can’t connect

VMVM

VMVMVM

VMVM

VMVMVM

Host 1

Host 2

VMVM

VMVMVM

VMVM

VMVM

Page 18: Planning a successful private cloud - CloudStack Collaboration Europe 2013

Storage choice is critical

Page 19: Planning a successful private cloud - CloudStack Collaboration Europe 2013

© Citrix 2013. More information at xenserver.org and follow me on twitter @XenServerArmy

Shared storage growth and provisioning time

1,000

500

VMs

Cost, AU100 200

500

VMs

Provisioning efficiency

AU – arbitrary units

Page 20: Planning a successful private cloud - CloudStack Collaboration Europe 2013

© Citrix 2013. More information at xenserver.org and follow me on twitter @XenServerArmy

Combined efficiency and storage evolution

Redesign

1,000

500

VMs

100 200 Cost, AU

VMs

1,000

500

Cost, AU100 200

?Alternatives

AU – arbitrary units

Page 21: Planning a successful private cloud - CloudStack Collaboration Europe 2013

© Citrix 2013. More information at xenserver.org and follow me on twitter @XenServerArmy

Redesign

Efficiency and pod storage

1,000

500

VMs

100 200 Cost, AU

POD #1

POD #2

POD #31,000

500

VMs

100 200 Cost, AU

AU – arbitrary units

No redesign

Page 22: Planning a successful private cloud - CloudStack Collaboration Europe 2013

© Citrix 2013. More information at xenserver.org and follow me on twitter @XenServerArmy

What about local storage?

1,000

500

VMs

Cost, AU 100 200

50

VMs

Provisioning efficiency

AU – arbitrary units

Page 23: Planning a successful private cloud - CloudStack Collaboration Europe 2013

© Citrix 2013. More information at xenserver.org and follow me on twitter @XenServerArmy

PODtrend

Traditionaltrend

Cost-Performance Trends

Shared Storage Local Storage

1,000

500

VMs

Cost, AU100 200

1,000

500

VMs

100 200 Cost, AU

Local storage

Performancetrend

Local storagetrend

Page 24: Planning a successful private cloud - CloudStack Collaboration Europe 2013

© Citrix 2013. More information at xenserver.org and follow me on twitter @XenServerArmy

Understanding disk usage and sizing

VM_COUNT * VM_DISK + SWAP = TOTAL_DISK

VM_COUNT * (OS_PARTITION + USR_DATA) + SWAP = TOTAL_DISK

VM_COUNT = (TOTAL_DISK – SWAP) ÷ (OS_PARTITION + USR_DATA)

VM_DISK SWAPUSR_DATAOS_PARTITION

TOTAL_DISK

Page 25: Planning a successful private cloud - CloudStack Collaboration Europe 2013

© Citrix 2013. More information at xenserver.org and follow me on twitter @XenServerArmy

Templates and thin provisioning matter

VM_COUNT * USR_DATA + OS_PARTITION + SWAP = TOTAL_DISK

VM_COUNT = (TOTAL_DISK – SWAP – OS_PARTITION) ÷ USR_DATA

SWAP

TOTAL_DISK

OS_PARTITIONUSR_DATA

Page 26: Planning a successful private cloud - CloudStack Collaboration Europe 2013

© Citrix 2013. More information at xenserver.org and follow me on twitter @XenServerArmy

Storage performance

IO per Disk

RAID PENALTY

0 1

1 2

5 4

6 6

10 2

50 4

Write Penalties

RPM IOPS

SSD 5,000+

SAS 15,000 175

SAS 10,000 125

SAS 7,200 75

VM Utilization

ITEM ~VALUE

IOPS per VM 20

Size, KB 4-8

Writes, % 80

Reads, % 20

IOPS = [IOPS per DISK]*[Disk Count]*([% of Reads]+[% of Writes] ÷ [RAID Write Penalty])

VM_COUNT = IOPS ÷ [IOPS per VM]

Page 27: Planning a successful private cloud - CloudStack Collaboration Europe 2013

Blueprint for success ….

Page 28: Planning a successful private cloud - CloudStack Collaboration Europe 2013

© Citrix 2013. More information at xenserver.org and follow me on twitter @XenServerArmy

Cloud Builder Lessons from Zynga

• Public clouds are minivans

• zCloud is a race carᵒ zCloud is optimized for social gamingᵒ Know your application requirements

• Don’t rent what you can own cheaperᵒ Cloud operator doesn’t care about your successᵒ Optimized applications might be key

• Ensure you have backup plansᵒ Usage can and does spikeᵒ Outages can and do happen

vs.

Page 29: Planning a successful private cloud - CloudStack Collaboration Europe 2013

© Citrix 2013. More information at xenserver.org and follow me on twitter @XenServerArmy

Cloud Builder Lessons From Telcos

• Utility computing fits business modelᵒ Traditionally operate a low margin business modelᵒ Understand tiered service offeringsᵒ Have a history with instant provisioning

• Tiered service demands infrastructure flexibilityᵒ “Cost per instance” is paramountᵒ Charge extra for premium featuresᵒ Instance doesn’t imply virtualizationᵒ Be prepared to change vendors if better model appears

• Provisioning agility expectedᵒ Customers expect instant self service access and detailed billing

Page 30: Planning a successful private cloud - CloudStack Collaboration Europe 2013

© Citrix 2013. More information at xenserver.org and follow me on twitter @XenServerArmy

Service Offerings

• Clearly define what you want to offerᵒ What types of applicationsᵒ Who has access, and who owns themᵒ What type of access

• Define how templates need to be managedᵒ Operating system supportᵒ Patching requirements

• Define expectations around compliance and availabilityᵒ Who owns backup and monitoring

Page 31: Planning a successful private cloud - CloudStack Collaboration Europe 2013

© Citrix 2013. More information at xenserver.org and follow me on twitter @XenServerArmy

Define Tenancy Requirements

• Department data local to departmentᵒ Where is the application data stored

• Data and service isolationᵒ VM migration and host HAᵒ Network services

• Encryption of PII/PCIᵒ Where do keys live when data location unknownᵒ Need encryption designed for the cloud

• Showback to stakeholdersᵒ More than just usage, compliance and audits

Page 32: Planning a successful private cloud - CloudStack Collaboration Europe 2013

© Citrix 2013. More information at xenserver.org and follow me on twitter @XenServerArmy

Virtualization Infrastructure

• Hypervisor defined by service offeringsᵒ Don’t select hypervisor based on “standards”ᵒ Understand true costs of virtualizationᵒ Multiple hypervisors are “OK”ᵒ Bare metal can be a hypervisor

• To “Pool” resources or notᵒ Is there a real requirement for pooled resourcesᵒ Can the cloud management solution do better?ᵒ Real cost of shared storage

• Primary storage defined by hypervisor

• Template storage defined by solutionᵒ Typically low cost options like NFS

Page 33: Planning a successful private cloud - CloudStack Collaboration Europe 2013

© Citrix 2013. More information at xenserver.org and follow me on twitter @XenServerArmy

Cloud Operations

• Design for maintainability

• Monitor critical componentsᵒ Management servers and system support VMsᵒ Hypervisor hosts, and critical infrastructureᵒ End user deployment environments

If your cloud has maintenance windows, you’re doing it wrong.- Allan Leinwand Former CTO Zynga

Page 34: Planning a successful private cloud - CloudStack Collaboration Europe 2013

Work better. Live better.