SlideShare a Scribd company logo
Scalable Object Storage with
Apache CloudStack and Apache
Hadoop
April 30 2013
Chiradeep Vittal
@chiradeep
Agenda
• What is CloudStack
• Object Storage for IAAS
• Current Architecture and Limitations
• Requirements for Object Storage
• Object Storage integrations in CloudStack
• HDFS for Object Storage
• Future directions
• History
• Incubating in the Apache
Software Foundation since
April 2012
• Open Source since May
2010
• In production since 2009
– Turnkey platform for delivering
IaaS clouds
– Full featured GUI, end-user API
and admin API
Apache CloudStack
Build your cloud the way the
world’s most successful
clouds are built
How did Amazon build its cloud?
Commodity
Servers
Commodity
Storage
Networking
Open Source Xen Hypervisor
Amazon Orchestration Software
AWS API (EC2, S3, …)
Amazon eCommerce Platform
How can YOU build a cloud?
Servers StorageNetworking
Open Source Xen Hypervisor
Amazon Orchestration Software
AWS API (EC2, S3, …)
Amazon eCommerce Platform
Hypervisor (Xen/KVM/VMW/)
CloudStack Orchestration Software
Optional Portal
CloudStack or AWS API
Secondary Storage
Image
L3/L2 core
DC Edge
End users
Pod Pod Pod Pod
Zone Architecture
Pod
Access Sw
MySQL
CloudStack
Admin/User API
Primary Storage
NFS/ISCSI/FC
Hypervisor (Xen
/VMWare/KVM)
VM
VM
Snapshot
Snapshot
Image
Disk Disk
VM
Cloud-Style Workloads
• Low cost
– Standardized, cookie cutter infrastructure
– Highly automated and efficient
• Application owns availability
– At scale everything breaks
– Focus on MTTR instead of MTBF
Secondary Storage
Image
L3/L2 core
DC Edge
Pod Pod Pod Pod
At scale…everything breaks
Pod
Access Sw
Primary Storage
NFS/ISCSI/FC
Hypervisor (Xen
/VMWare/KVM)
VM
VM
Snapshot
Snapshot
Image
Disk Disk
VM
Region “West”
Zone “West-Alpha”
Zone “West-Beta”
Zone “West-Gamma”
Zone “West-Delta”
Low Latency Backbone
(e.g., SONET ring)
Regions and zones
Region “East”
Region “South”
Internet
Geographic
separation
Region “West”
Low Latency
Secondary Storage in CloudStack 4.0
• NFS server default
– can be mounted by hypervisor
– Easy to obtain, set up and operate
• Problems with NFS:
– Scale: max limits of file systems
• Solution: CloudStack can manage multiple NFS stores (+
complexity)
– Performance
• N hypervisors : 1 storage CPU / 1 network link
– Wide area suitability for cross-region storage
• Chatty protocol
– Lack of replication
Object Storage Technology
Region “West”
Zone “West-Alpha”
Zone “West-Beta”
Zone “West-Gamma”
Zone “West-Delta”
Object Storage in a region
• Replication
• Audit
• Repair
• Maintenance
Region “West”
Object Storage enables reliability
Object Storage Technology
Region “West”
Object Storage also enables other
applications
Object Store
API Servers
• DropBox
• Static Content
• Archival
Object Storage characteristics
• Highly reliable and durable
– 99.9 % availability for AWS S3
– 99.999999999 % durability
• Massive scale
– 1.3 trillion objects stored across 7 AWS regions [Nov 2012 figures]
– Throughput: 830,000 requests per second
• Immutable objects
– Objects cannot be modified, only deleted
• Simple API
– PUT/POST objects, GET objects, DELETE objects
– No seek / no mutation / no POSIX API
• Flat namespace
– Everything stored in buckets.
– Bucket names are unique
– Buckets can only contain objects, not other buckets
• Cheap and getting cheaper
CloudStack S3 API Server
Object Storage Technology
S3
API Servers
MySQL
CloudStack S3 API Server
• Understands AWS S3 REST-style and SOAP API
• Pluggable backend
– Backend storage needs to map simple calls to their
API
• E.g., createContainer, saveObject, loadObject
– Default backend is a POSIX filesystem
– Backend with Caringo Object Store (commercial
vendor) available
– HDFS backend also available
• MySQL storage
– Bucket -> object mapping
– ACLs, bucket policies
Object Store Integration into
CloudStack
• For images and snapshots
• Replacement for NFS secondary storage
Or
Augmentation for NFS secondary storage
• Integrations available with
– Riak CS
– Openstack Swift
• New in 4.2 (upcoming):
– Framework for integrating storage providers
What do we want to build ?
• Open source, ASL licensed object storage
• Scales to at least 1 billion objects
• Reliability and durability on par with S3
• S3 API (or similar, e.g., Google Storage)
• Tooling around maintenance and
operation, specific to object storage
The following slides are a design
discussion
Architecture of Scalable Object
Storage
API Servers
Auth Servers
Object Servers Replicators/Auditors
Object
Lookup
Servers
Why HDFS
• ASF Project (Apache Hadoop)
• Immutable objects, replication
• Reliability, scale and performance
– 200 million objects in 1 cluster [Facebook]
– 100 PB in 1 cluster [Facebook]
• Simple operation
– Just add data nodes
HDFS-based Object Storage
S3 API Servers
S3 Auth Servers
Data nodes
Namenode
pair
HDFS API
BUT
• Name Node Scalability
– 150 bytes RAM / block
– GC issues
• Name Node SPOF
– Being addressed in the community✔
• Cross-zone replication
– Rack-awareness placement ✔
– What if the zones are spread a little further apart?
• Storage for object metadata
– ACLs, policies, timers
Name Node scalability
• 1 billion objects = 3 billion blocks (chunks)
– Average of 5 MB/object = 5 PB (actual), 15
PB (raw)
– 450 GB of RAM per Name Node
• 150b x 3 x 10^9
– 16 TB / node => 1000 Data nodes
• Requires Name Node federation ?
• Or an approach like HAR files
Name Node Federation
Extension: Federated NameNodes are HA pairs
Federation issues
• HA for name nodes
• Namespace shards
– Map object -> name node
• Requires another scalable key-value store
– HBase?
• Rebalancing between name nodes
Replication over lossy/slower links
A. Asynchronous replication
– Use distcp to replicate between clusters
– 6 copies vs. 3
– Master/Slave relationship
• Possibility of loss of data during failover
• Need coordination logic outside of HDFS
B. Synchronous replication
– API server writes to 2 clusters and acks only
when both writes are successful
– Availability compromised when one zone is
down
CAP Theorem
Consistency or Availability during partition
Many nuances
Storage for object metadata
A. Store it in HDFS along with the object
– Reads are expensive (e.g., to check ACL)
– Mutable data, needs layer over HDFS
B. Use another storage system (e.g. HBase)
– Name node federation also requires this.
C. Modify Name Node to store metadata
– High performance
– Not extensible
Object store on HDFS Future
• Viable for small-sized deployments
– Up to 100-200 million objects
– Datacenters close together
• Larger deployments needs development
– No effort ongoing at this time
Conclusion
• CloudStack needs object storage for
“cloud-style” workloads
• Object Storage is not easy
• HDFS comes close but not close enough
• Join the community!

More Related Content

PDF
Netflix running Presto in the AWS Cloud
PPTX
Scaling Traffic from 0 to 139 Million Unique Visitors
PPTX
Building a unified data pipeline in Apache Spark
PDF
MySQL in the Hosted Cloud
PPT
Data warehouse solutions
PDF
Amazon RedShift - Ianni Vamvadelis
PPTX
Qubole Overview at the Fifth Elephant Conference
PPTX
HBaseConAsia2018 Track2-1: Kerberos-based Big Data Security Solution and Prac...
Netflix running Presto in the AWS Cloud
Scaling Traffic from 0 to 139 Million Unique Visitors
Building a unified data pipeline in Apache Spark
MySQL in the Hosted Cloud
Data warehouse solutions
Amazon RedShift - Ianni Vamvadelis
Qubole Overview at the Fifth Elephant Conference
HBaseConAsia2018 Track2-1: Kerberos-based Big Data Security Solution and Prac...

What's hot (13)

PDF
Scaling Pinterest
PPTX
HBaseConAsia2018 Track2-3: Bringing MySQL Compatibility to HBase using Databa...
PPTX
Qubole @ AWS Meetup Bangalore - July 2015
PPTX
Amazon Athena Hands-On Workshop
PPTX
HBaseConAsia2018 Track3-7: The application of HBase in New Energy Vehicle Mon...
PDF
An overview of Amazon Athena
PPTX
Cloud Optimized Big Data
PDF
Getting Started with EC2, S3 and EMR
PDF
Oracle Databases on AWS - Getting the Best Out of RDS and EC2
PPTX
Hadoop @ eBay: Past, Present, and Future
PPTX
Autoscaling Spark on AWS EC2 - 11th Spark London meetup
PDF
CosmosDB for DBAs & Developers
PDF
Presto Fast SQL on Anything
Scaling Pinterest
HBaseConAsia2018 Track2-3: Bringing MySQL Compatibility to HBase using Databa...
Qubole @ AWS Meetup Bangalore - July 2015
Amazon Athena Hands-On Workshop
HBaseConAsia2018 Track3-7: The application of HBase in New Energy Vehicle Mon...
An overview of Amazon Athena
Cloud Optimized Big Data
Getting Started with EC2, S3 and EMR
Oracle Databases on AWS - Getting the Best Out of RDS and EC2
Hadoop @ eBay: Past, Present, and Future
Autoscaling Spark on AWS EC2 - 11th Spark London meetup
CosmosDB for DBAs & Developers
Presto Fast SQL on Anything
Ad

Similar to Scalable Object Storage with Apache CloudStack and Apache Hadoop (20)

PDF
Red Hat Storage Server For AWS
PDF
HDFCloud Workshop: HDF5 in the Cloud
PDF
Red Hat Storage Day New York - What's New in Red Hat Ceph Storage
PPTX
Case Study: Implementing Hadoop and Elastic Map Reduce on Scale-out Object S...
PDF
New use cases for Ceph, beyond OpenStack, Luis Rico
PPTX
Migrating enterprise workloads to AWS
PDF
Hadoop Primer
PDF
Gestione gerarchica dei dati con SUSE Enterprise Storage e HPE DMF
PDF
Big data on aws
PDF
Barcamp Macau 2014 - Introduction to AWS
PPSX
Orchestration across multiple cloud platforms using Heat
PDF
Big Data, Ingeniería de datos, y Data Lakes en AWS
PPTX
4Developers 2018: Przetwarzanie Big Data w oparciu o architekturę Lambda na p...
PPTX
DEVNET-1106 Upcoming Services in OpenStack
PDF
Hadoop and object stores can we do it better
PDF
Hadoop and object stores: Can we do it better?
PPTX
Managing storage on Prem and in Cloud
PPTX
Optimizing Big Data to run in the Public Cloud
PPTX
Hadoop in the cloud – The what, why and how from the experts
Red Hat Storage Server For AWS
HDFCloud Workshop: HDF5 in the Cloud
Red Hat Storage Day New York - What's New in Red Hat Ceph Storage
Case Study: Implementing Hadoop and Elastic Map Reduce on Scale-out Object S...
New use cases for Ceph, beyond OpenStack, Luis Rico
Migrating enterprise workloads to AWS
Hadoop Primer
Gestione gerarchica dei dati con SUSE Enterprise Storage e HPE DMF
Big data on aws
Barcamp Macau 2014 - Introduction to AWS
Orchestration across multiple cloud platforms using Heat
Big Data, Ingeniería de datos, y Data Lakes en AWS
4Developers 2018: Przetwarzanie Big Data w oparciu o architekturę Lambda na p...
DEVNET-1106 Upcoming Services in OpenStack
Hadoop and object stores can we do it better
Hadoop and object stores: Can we do it better?
Managing storage on Prem and in Cloud
Optimizing Big Data to run in the Public Cloud
Hadoop in the cloud – The what, why and how from the experts
Ad

More from buildacloud (20)

PDF
The Future of SDN in CloudStack by Chiradeep Vittal
PPTX
Policy Based SDN Solution for DC and Branch Office by Suresh Boddapati
PDF
L4-L7 services for SDN and NVF by Youcef Laribi
POTX
Jenkins, jclouds, CloudStack, and CentOS by David Nalley
PPTX
Intro to Zenoss by Andrew Kirch
ODP
Guaranteeing Storage Performance by Mike Tutkowski
PDF
Cloud Application Blueprints with Apache Brooklyn by Alex Henevald
PPT
Introduction to Apache CloudStack by David Nalley
PDF
Managing infrastructure with Application Policy by Mike Cohen
PPTX
Intro to Zenoss by Andrew Kirch
PPTX
Monitoring CloudStack in context with Converged Infrastructure by Mike Turnlund
PDF
Rest api design by george reese
PPTX
Enterprise grade firewall and ssl termination to ac by will stevens
PDF
State of the cloud by reuven cohen
PDF
Securing Your Cloud With the Xen Hypervisor by Russell Pavlicek
PPTX
DevCloud - Setup and Demo on Apache CloudStack
PDF
Cloud Network Virtualization with Juniper Contrail
PPTX
Ian rae panel cloud stack & cloud storage where are we at, and where do we ne...
PDF
Troubleshooting Strategies for CloudStack Installations by Kirk Kosinski
PPT
CloudStack University by Sebastien Goasguen
The Future of SDN in CloudStack by Chiradeep Vittal
Policy Based SDN Solution for DC and Branch Office by Suresh Boddapati
L4-L7 services for SDN and NVF by Youcef Laribi
Jenkins, jclouds, CloudStack, and CentOS by David Nalley
Intro to Zenoss by Andrew Kirch
Guaranteeing Storage Performance by Mike Tutkowski
Cloud Application Blueprints with Apache Brooklyn by Alex Henevald
Introduction to Apache CloudStack by David Nalley
Managing infrastructure with Application Policy by Mike Cohen
Intro to Zenoss by Andrew Kirch
Monitoring CloudStack in context with Converged Infrastructure by Mike Turnlund
Rest api design by george reese
Enterprise grade firewall and ssl termination to ac by will stevens
State of the cloud by reuven cohen
Securing Your Cloud With the Xen Hypervisor by Russell Pavlicek
DevCloud - Setup and Demo on Apache CloudStack
Cloud Network Virtualization with Juniper Contrail
Ian rae panel cloud stack & cloud storage where are we at, and where do we ne...
Troubleshooting Strategies for CloudStack Installations by Kirk Kosinski
CloudStack University by Sebastien Goasguen

Recently uploaded (20)

PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Encapsulation theory and applications.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PPTX
Cloud computing and distributed systems.
PPT
Teaching material agriculture food technology
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Empathic Computing: Creating Shared Understanding
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
Understanding_Digital_Forensics_Presentation.pptx
DOCX
The AUB Centre for AI in Media Proposal.docx
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Encapsulation theory and applications.pdf
Network Security Unit 5.pdf for BCA BBA.
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Cloud computing and distributed systems.
Teaching material agriculture food technology
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
MYSQL Presentation for SQL database connectivity
Mobile App Security Testing_ A Comprehensive Guide.pdf
Empathic Computing: Creating Shared Understanding
NewMind AI Weekly Chronicles - August'25 Week I
Diabetes mellitus diagnosis method based random forest with bat algorithm
Encapsulation_ Review paper, used for researhc scholars
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Dropbox Q2 2025 Financial Results & Investor Presentation
Understanding_Digital_Forensics_Presentation.pptx
The AUB Centre for AI in Media Proposal.docx
“AI and Expert System Decision Support & Business Intelligence Systems”

Scalable Object Storage with Apache CloudStack and Apache Hadoop

  • 1. Scalable Object Storage with Apache CloudStack and Apache Hadoop April 30 2013 Chiradeep Vittal @chiradeep
  • 2. Agenda • What is CloudStack • Object Storage for IAAS • Current Architecture and Limitations • Requirements for Object Storage • Object Storage integrations in CloudStack • HDFS for Object Storage • Future directions
  • 3. • History • Incubating in the Apache Software Foundation since April 2012 • Open Source since May 2010 • In production since 2009 – Turnkey platform for delivering IaaS clouds – Full featured GUI, end-user API and admin API Apache CloudStack Build your cloud the way the world’s most successful clouds are built
  • 4. How did Amazon build its cloud? Commodity Servers Commodity Storage Networking Open Source Xen Hypervisor Amazon Orchestration Software AWS API (EC2, S3, …) Amazon eCommerce Platform
  • 5. How can YOU build a cloud? Servers StorageNetworking Open Source Xen Hypervisor Amazon Orchestration Software AWS API (EC2, S3, …) Amazon eCommerce Platform Hypervisor (Xen/KVM/VMW/) CloudStack Orchestration Software Optional Portal CloudStack or AWS API
  • 6. Secondary Storage Image L3/L2 core DC Edge End users Pod Pod Pod Pod Zone Architecture Pod Access Sw MySQL CloudStack Admin/User API Primary Storage NFS/ISCSI/FC Hypervisor (Xen /VMWare/KVM) VM VM Snapshot Snapshot Image Disk Disk VM
  • 7. Cloud-Style Workloads • Low cost – Standardized, cookie cutter infrastructure – Highly automated and efficient • Application owns availability – At scale everything breaks – Focus on MTTR instead of MTBF
  • 8. Secondary Storage Image L3/L2 core DC Edge Pod Pod Pod Pod At scale…everything breaks Pod Access Sw Primary Storage NFS/ISCSI/FC Hypervisor (Xen /VMWare/KVM) VM VM Snapshot Snapshot Image Disk Disk VM
  • 9. Region “West” Zone “West-Alpha” Zone “West-Beta” Zone “West-Gamma” Zone “West-Delta” Low Latency Backbone (e.g., SONET ring) Regions and zones
  • 11. Secondary Storage in CloudStack 4.0 • NFS server default – can be mounted by hypervisor – Easy to obtain, set up and operate • Problems with NFS: – Scale: max limits of file systems • Solution: CloudStack can manage multiple NFS stores (+ complexity) – Performance • N hypervisors : 1 storage CPU / 1 network link – Wide area suitability for cross-region storage • Chatty protocol – Lack of replication
  • 12. Object Storage Technology Region “West” Zone “West-Alpha” Zone “West-Beta” Zone “West-Gamma” Zone “West-Delta” Object Storage in a region • Replication • Audit • Repair • Maintenance
  • 13. Region “West” Object Storage enables reliability
  • 14. Object Storage Technology Region “West” Object Storage also enables other applications Object Store API Servers • DropBox • Static Content • Archival
  • 15. Object Storage characteristics • Highly reliable and durable – 99.9 % availability for AWS S3 – 99.999999999 % durability • Massive scale – 1.3 trillion objects stored across 7 AWS regions [Nov 2012 figures] – Throughput: 830,000 requests per second • Immutable objects – Objects cannot be modified, only deleted • Simple API – PUT/POST objects, GET objects, DELETE objects – No seek / no mutation / no POSIX API • Flat namespace – Everything stored in buckets. – Bucket names are unique – Buckets can only contain objects, not other buckets • Cheap and getting cheaper
  • 16. CloudStack S3 API Server Object Storage Technology S3 API Servers MySQL
  • 17. CloudStack S3 API Server • Understands AWS S3 REST-style and SOAP API • Pluggable backend – Backend storage needs to map simple calls to their API • E.g., createContainer, saveObject, loadObject – Default backend is a POSIX filesystem – Backend with Caringo Object Store (commercial vendor) available – HDFS backend also available • MySQL storage – Bucket -> object mapping – ACLs, bucket policies
  • 18. Object Store Integration into CloudStack • For images and snapshots • Replacement for NFS secondary storage Or Augmentation for NFS secondary storage • Integrations available with – Riak CS – Openstack Swift • New in 4.2 (upcoming): – Framework for integrating storage providers
  • 19. What do we want to build ? • Open source, ASL licensed object storage • Scales to at least 1 billion objects • Reliability and durability on par with S3 • S3 API (or similar, e.g., Google Storage) • Tooling around maintenance and operation, specific to object storage
  • 20. The following slides are a design discussion
  • 21. Architecture of Scalable Object Storage API Servers Auth Servers Object Servers Replicators/Auditors Object Lookup Servers
  • 22. Why HDFS • ASF Project (Apache Hadoop) • Immutable objects, replication • Reliability, scale and performance – 200 million objects in 1 cluster [Facebook] – 100 PB in 1 cluster [Facebook] • Simple operation – Just add data nodes
  • 23. HDFS-based Object Storage S3 API Servers S3 Auth Servers Data nodes Namenode pair HDFS API
  • 24. BUT • Name Node Scalability – 150 bytes RAM / block – GC issues • Name Node SPOF – Being addressed in the community✔ • Cross-zone replication – Rack-awareness placement ✔ – What if the zones are spread a little further apart? • Storage for object metadata – ACLs, policies, timers
  • 25. Name Node scalability • 1 billion objects = 3 billion blocks (chunks) – Average of 5 MB/object = 5 PB (actual), 15 PB (raw) – 450 GB of RAM per Name Node • 150b x 3 x 10^9 – 16 TB / node => 1000 Data nodes • Requires Name Node federation ? • Or an approach like HAR files
  • 26. Name Node Federation Extension: Federated NameNodes are HA pairs
  • 27. Federation issues • HA for name nodes • Namespace shards – Map object -> name node • Requires another scalable key-value store – HBase? • Rebalancing between name nodes
  • 28. Replication over lossy/slower links A. Asynchronous replication – Use distcp to replicate between clusters – 6 copies vs. 3 – Master/Slave relationship • Possibility of loss of data during failover • Need coordination logic outside of HDFS B. Synchronous replication – API server writes to 2 clusters and acks only when both writes are successful – Availability compromised when one zone is down
  • 29. CAP Theorem Consistency or Availability during partition Many nuances
  • 30. Storage for object metadata A. Store it in HDFS along with the object – Reads are expensive (e.g., to check ACL) – Mutable data, needs layer over HDFS B. Use another storage system (e.g. HBase) – Name node federation also requires this. C. Modify Name Node to store metadata – High performance – Not extensible
  • 31. Object store on HDFS Future • Viable for small-sized deployments – Up to 100-200 million objects – Datacenters close together • Larger deployments needs development – No effort ongoing at this time
  • 32. Conclusion • CloudStack needs object storage for “cloud-style” workloads • Object Storage is not easy • HDFS comes close but not close enough • Join the community!

Editor's Notes

  • #4: Need a better slide than this
  • #5: Frequently require CCNA , Vmwareceritification, EMC training, etc etc. But they chose commondity systems. And simple networking.Can also sell cheaply since they use their own commerce platform.
  • #6: The key here is the API on top of the infrastructure. This is the disruptive piece for the industry. Forget about CCNA, Vmware cert, now people can programmatically control their infrastructure as well as the VMs on top of it.