cloud object storage in ceph
play

Cloud object storage in Ceph Orit Wasserman owasserm@redhat.com - PowerPoint PPT Presentation

Cloud object storage in Ceph Orit Wasserman owasserm@redhat.com Fosdem 2017 AGENDA What is cloud object storage? Ceph overview Rados Gateway architecture Questions Cloud object storage Block storage Data stored in


  1. Cloud object storage in Ceph Orit Wasserman owasserm@redhat.com Fosdem 2017

  2. AGENDA What is cloud object storage? • Ceph overview • Rados Gateway architecture • Questions •

  3. Cloud object storage

  4. Block storage Data stored in fjxed blocks • No metadata • Fast • Protocols: • SCSI • FC • SATA • ISCSI • FCoE •

  5. File system Users Protocols: • • Authentication Local: ext4,xfs, btrfs, zfs, • • NTFS, … Metadata: • Network: NFS, SMB, AFP • ownership • Permissions/ACL • Creation/Modifjcation time • Hierarchy: Directories and • fjles Files are mutable • Sharing semantics • Slower • Complicate •

  6. Object storage Cloud Protocols: • Restful API (cloud) S3 • • Swift (openstack) Flat namespace: • • Google Cloud storage • Bucket/container • Objects • Users and tenants • Authentication • Metadata: • Ownership • ACL • User metadata • Large objects • Objects are immutable •

  7. S3 examples Create bucket PUT /{bucket} HTTP/1.1 PUT /{bucket} HTTP/1.1 Host: cname.domain.com Host: cname.domain.com x-amz-acl: public-read-write x-amz-acl: public-read-write Authorization: AWS {access-key}:{hash-of-header-and-secret} Authorization: AWS {access-key}:{hash-of-header-and-secret} Get bucket GET /{bucket}?max-keys=25 HTTP/1.1 GET /{bucket}?max-keys=25 HTTP/1.1 Host: cname.domain.com Host: cname.domain.com

  8. S3 examples Delete bucket DELETE /{bucket} HTTP/1.1 DELETE /{bucket} HTTP/1.1 Host: cname.domain.com Host: cname.domain.com Authorization: AWS {access-key}:{hash-of-header-and-secret} Authorization: AWS {access-key}:{hash-of-header-and-secret}

  9. S3 examples Create object PUT /{bucket}/{object} HTTP/1.1 PUT /{bucket}/{object} HTTP/1.1 Copy object PUT /{dest-bucket}/{dest-object} HTTP/1.1 PUT /{dest-bucket}/{dest-object} HTTP/1.1 x-amz-copy-source: {source-bucket}/{source-object} x-amz-copy-source: {source-bucket}/{source-object}

  10. S3 examples Read object GET /{bucket}/{object} HTTP/1.1 GET /{bucket}/{object} HTTP/1.1 Delete object DELETE /{bucket}/{object} HTTP/1.1 DELETE /{bucket}/{object} HTTP/1.1

  11. Multipart upload upload a single object as a set of parts • Improved throughput • Quick recovery from any network issues • Pause and resume object uploads • Begin an upload before you know the fjnal object size •

  12. Object versioning Keeps the previous copy of the object in case of overwrite or • deletion

  13. Ceph

  14. Cephalopod

  15. Ceph

  16. Ceph Open source • Software defjned storage • Distributed • No single point of failure • Massively scalable • Replication/Erasure Coding • Self healing • Unifjed storage: object, block • and fjle

  17. Ceph architecture APP HOST/VM CLIENT RGW RBD CEPHFS A web services A reliable, fully- A distributed fjle gateway for object distributed block system with POSIX storage, compatible device with cloud semantics and scale- with S3 and Swift platform integration out metadata management LIBRADOS A library allowing apps to directly access RADOS (C, C++, Java, Python, Ruby, PHP) RADOS A software-based, reliable, autonomous, distributed object store comprised of self-healing, self-managing, intelligent storage nodes and lightweight monitors

  18. Rados Reliable Autonomous Distributed Object Storage • Replication/Erasure coding • Flat object namespace within each pool • Difgerent placement rules • Strong consistency (CP system) • Infrastructure aware, dynamic topology • Hash-based placement (CRUSH) • Direct client to server data path •

  19. Crush Controlled Replication Under Scalable Hashing • Pseudo-random placement algorithm • Fast calculation, no lookup • Ensures even distribution • Repeatable, deterministic • Rule-based confjguration • specifjable replication • infrastructure topology aware • allows weighting •

  20. OSD node Object Storage Device • 10s to 1000s in a cluster • One per disk (or one per • SSD, RAID group…) Serve stored objects to • clients Intelligently peer for • replication & recovery

  21. Monitor node Maintain cluster membership • and state Provide consensus for • distributed decision-making Small, odd number • These do not serve stored • objects to clients

  22. Librados API Effjcient key/value storage inside an object • Atomic single-object transactions • update data, attr, keys together • atomic compare-and-swap • Object-granularity snapshot infrastructure • Partial overwrite of existing data • RADOS classes (stored procedures) • Watch/Notify on an object •

  23. Rados Gateway

  24. Rados Gateway APP HOST/VM CLIENT RGW RBD CEPHFS A web services A reliable, fully- A distributed fjle gateway for object distributed block system with POSIX storage, compatible device with cloud semantics and scale- with S3 and Swift platform integration out metadata management LIBRADOS A library allowing apps to directly access RADOS (C, C++, Java, Python, Ruby, PHP) RADOS A software-based, reliable, autonomous, distributed object store comprised of self-healing, self-managing, intelligent storage nodes and lightweight monitors

  25. RGW vs RADOS objects RADOS RGW • • Limited object sizes (4M) Large objects (TB) • • Mutable objects Immutable objects • • Not indexed Sorted bucket listing • • per-pool ACLs per object ACLs • •

  26. Rados Gateway APPLICATION APPLICATION REST RADOSGW RADOSGW LIBRADOS LIBRADOS socket M M M RADOS CLUSTER

  27. RESTful OBJECT STORAGE Users/T enants • Data APPLICATION APPLICATION • Buckets • SWIFT REST S3 REST Objects • Metadata • RADOSGW ACLs • LIBRADOS Authentication • APIs • S3 • RADOS CLUSTER Swift • NFS •

  28. RGW RADOSGW FRONTEND REST DIALECT GC AUTH QUOTA RGW-RADOS librados RGW OBJCLASSES RADOS BACKEND

  29. RGW Components Frontend • FastCGI - external web servers • Civetweb – embedded web server • Rest Dialect • S3 • Swift • Other API (NFS) • Execution layer – common layer for all dialects •

  30. RGW Components RGW Rados – manages RGW data by using rados • object striping • atomic overwrites • bucket index handling • Object classes that run on the OSDs • Quota - handles user or bucket quotas. • Authentication - handle users authentication • GC - Garbage collection mechanism that runs in the • background.

  31. RGW objects Large objects • Fast small object access • Fast access to object attributes • Buckets can consist of a very large number of objects •

  32. RGW objects OBJECT HEAD TAIL Head • Single rados object • Object metadata (acls, user attributes, manifest) • Optional start of data • T ail • Striped data • 0 or more rados objects •

  33. RGW Objects OBJECT: foo BUCKET: boo BUCKET ID: 123 head head head 123_foo tail 1 123_28faPd3Z.1 123_28faPd.1 tail 1 123_28faPd3Z.2

  34. RGW bucket index BUCKET INDEX Shard 1 Shard 2 aaa aab abc bbb def (v2) eee def (v1) fff zzz zzz

  35. RGW object creation Update bucket index • Create head object • Create tail objects • All those operations need to be consist •

  36. RGW object creation Write tail prepare TAIL aab complete bbb aab eee bbb fff (prepare) eee Write head zzz HEAD fff zzz

  37. RGW quota RADOSGW LIBRADOS read() write() stats.update() M M M RADOS CLUSTER

  38. RGW metadata cache Metadata needed for each request: • User Info • Bucket Entry Point • Bucket Instance Info •

  39. RGW metadata cache RADOSGW RADOSGW LIBRADOS LIBRADOS LIBRADOS RADOSGW LIBRADOS LIBRADOS notify notifjcation notifjcation M M M RADOS CLUSTER

  40. Multisite environment ZoneGroup: us (master) ZoneGroup: eu (secondary) Zone: us-east-1 (master) Zone: eu-west-1 (master) CEPH OBJECT CEPH OBJECT GATEWAY GATEWAY (RGW) (RGW) CEPH STORAGE CEPH STORAGE CLUSTER CLUSTER (US-EAST-1) (EU-WEST -1) CEPH OBJECT GATEWAY (RGW) CEPH STORAGE Zonegroup: us (master) Realm: Gold CLUSTER Zone: us-east-2 (secondary) (US-EAST-2)

  41. multisite Implementation as part of the radosgw (in c++) • Asynchronous (co-routines) • Active/active support • Namespaces • Failover/failback • Backward compatibility with the sync agent • Meta data sync is synchronous • Data sync is asynchronous •

  42. More cool features Object life cycle • Object copy • Bulk operations • Encryption • Compression • T orrents • Static website • Metadata search • Bucket resharding •

  43. THANK YOU Ceph mailing lists: Ceph-users@ceph.com ceph-devel@ceph.com IRC: Irc.oftc.net #ceph #ceph-devel

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend