SlideShare a Scribd company logo
1 of 33
架构与实践
Swift 在这里写上你的标题
       @SinaAppEngine
      副标题文字副标题文字




                杨雨 /2012-08-日
                   作者名字 /
                11 期
Content


1 Principles and Architecture
         写上你的文字你的文字
     00

2 The Practice of Swift @SinaAppEngine
    01

     02
3 Problems and Imporvemetns
     03

     04

     05
Storage Types

Types              Protocol            Application
      00    写上你的文字你的文字
Block Storage    SATA, SCSI, iSCSI     SAN, NAS, EBS
       01
File Storage       Ext3/4, XFS, NTFS   PC, Servers, NFS
       02
Object Storage     HTTP, REST          Amazon S3,
       03                              Google Cloud Storage,
                                       Rackspace Cloud Files
      04
Specific Storage   Specific protocol   MySQL, MongoDB,
      05           based on tcp        HDFS
Storage Types


        00      写上你的文字你的文字

        01

        02

        03

        04

        05




From: http://www.buildcloudstorage.com/2012/08/is-openstack-swift-reliable-enough-for.html
Targets

•High Reliability = High Durability + High Availability
•High Durability - Replicas and Recovery
•High Availability - Replicas and Partition
•Low Cost - Commodity Hardware
•Scale Out - No Single Bottleneck, Share Nothing
Reliability

 Consistent Hashing
Reliability

 Consistent Hashing with Virtual Node
Reliability

 Consistent Hashing with Virtual Node
Reliability

The advantages of consistent hashing:

1.Metadata is small;(AWS S3 has 762 billion objects)
2.Distribution unformity;
3.Peer to perr comunication;
4.Load blance.
Reliability


 •Virtual node(partition) - Object distribution uniformity
 •Weight - Allocate partitions dynamically
 •Zone - Partition Tolerance
 Zones can be used to group devices based on physical locations, power
 separations, network separations, or any other attribute that would
 lessen multiple replicas being unavailable at the same time.



 Swift :
 Ring - The index file for locating object in the cluster.
Reliability
Reliability


Durability: 99.999..9%? AWS S3 with 99.999999999%
 •Annualized failure rate of devices.(disk, network...)
 •Bit rot rate and the time to detect bit rot.
 •Mean time to recovery.
 •More about durability :
 http://www.buildcloudstorage.com/2012/08/is-openstack-swift-
 reliable-enough-for.html

Swift :
Auditor - To detect bit rot;
Replicator-To keep the consistency of object;
Consistency Model
Consistency Model

Quroum + Object Version + Async Replicatiton

Quroum Protocol:
N, the number of nodes that store replicas of the data;
W, the number of replicas that need to acknowledge the receipt of the
update before the update completes;
R, the number of replicas that are contacted when a data object is
accessed through a read operation;

If W+R>N, then the write set and the read set always overlap and one can
guarantee strong consistency.

In Swift, NWR is configurable.
General configuration: N=3, W=2, R=1 or 2, So the swift can providetwo
models of consistency, strong and eventual.
Consistency Model

Weak Consistency ( N=3,W=2,R=1 )
Consistency Model

Strong Consistency ( N=3,W=2,R=2 )
Consistency Model

Special Scene : dirty read
Architecture Prototype
Metadata

account
 |-- container1
 |------obj1
 |------obj2
 |-- container2
 |------objN



How to store the relationship of account, container and object?
•Relation Database
•NoSQL, Cassandra, MongoDB
•Relation Datatbase with Sharding
Metadata

 The target of swift: no single failure, no bottletneck, scale out


The Swift way: sqlite + consistent hashing + quroum
A sqlite db file is an object.
So the database is HA, durable and with eventual consistency.
Architecture
Swift Practice@SinaAppEngine
Swift Practice@SinaAppEngine
Our Works

•Swift as the SAE Storage
-Auth module for SAE(Key-Pair)
-Keystone for SAE(Token)
-HTTP Cache-Control module
-Quota(limit the number of containers and objects, limit the
 storage usage)
-Domain remap
   app-domain.stor.sinaapp.com/obj To
   sinas3.com/v1/SAE_app/domain
-Rsync with bwlimit
-Billing
-Storage Firewall

•Swift as the SWS Simple Storage Service
-Container unique module
  container.sinas3.com/object
-Keystone middleware for auth protocol converting
Our Steps for Switching SAE Storage


•Bypass test one month online( 旁路读写测试 )
•Switch step by step one month( 灰度切换 )
•Ops
  Monitoring: I/O, CPU, Memery, Disk
  LogCenter: syslog-ng, statistics and analytics
Problems&Imporvements

The async processor for keeping eventual consistency is inefficient.
Replicator, auditor, container-updater
Logic: loop all objects or dbs on disk, query replica's server to determin
whether to sync.
Results: High I/O; High CPU usage; Stress on account/container/object-
servers, impact the availability; Long time for eventual consistency, impact
the durability; The list operation is not consistent.

How to improvements?
1.Runing replicator, auditor and container updater during idle time;
2.An appropriate deployment;
3.A new protocol for keeping relplica's consistency;
  (based on log and message queue)
4.Adding new nodes, scale out.
Problems&Imporvements

The performance of sqlite.
Quota for objects and containers
Running sqlite on the high performance I/O devices

The bandwidth of rsync is not under control.
Out-of-band management
Add bandwidth limitations for rsync

Database centralized or distributed?
Problems&Imporvements

An appropriate deployment
Q&A

      Weibo: @AlexYang_Coder
      Email: yangyu4@staff.sina.com.cn
      GTalk: alex890714@gmail.com
       Blog: http://alexyang.sinaapp.com

More Related Content

What's hot

ContainerDays NYC 2016: "From Hello World to Real World: Building a Productio...
ContainerDays NYC 2016: "From Hello World to Real World: Building a Productio...ContainerDays NYC 2016: "From Hello World to Real World: Building a Productio...
ContainerDays NYC 2016: "From Hello World to Real World: Building a Productio...DynamicInfraDays
 
7 distributed storage_open_stack
7 distributed storage_open_stack7 distributed storage_open_stack
7 distributed storage_open_stackopenstackindia
 
Storage as a service OpenStack
Storage as a service OpenStackStorage as a service OpenStack
Storage as a service OpenStackopenstackindia
 
Daniel Sikar: Running Coherence Clustered Cache on Amazon EC2 - 09/11/2010
Daniel Sikar: Running Coherence Clustered Cache on Amazon EC2 - 09/11/2010Daniel Sikar: Running Coherence Clustered Cache on Amazon EC2 - 09/11/2010
Daniel Sikar: Running Coherence Clustered Cache on Amazon EC2 - 09/11/2010Skills Matter
 
Introduction to rook
Introduction to rookIntroduction to rook
Introduction to rookRohan Gupta
 
Containerized Storage for Containers: Why, What and How OpenEBS Works
Containerized Storage for Containers:  Why, What and How OpenEBS WorksContainerized Storage for Containers:  Why, What and How OpenEBS Works
Containerized Storage for Containers: Why, What and How OpenEBS WorksMatt Baldwin
 
Stor4NFV: Exploration of Cloud native Storage in OPNFV - Ren Qiaowei, Wang Hui
Stor4NFV: Exploration of Cloud native Storage in OPNFV - Ren Qiaowei, Wang HuiStor4NFV: Exploration of Cloud native Storage in OPNFV - Ren Qiaowei, Wang Hui
Stor4NFV: Exploration of Cloud native Storage in OPNFV - Ren Qiaowei, Wang HuiCeph Community
 
Portworx + Rancher Webinar
Portworx + Rancher Webinar Portworx + Rancher Webinar
Portworx + Rancher Webinar Eric Han
 
Orchestrating stateful applications with PKS and Portworx
Orchestrating stateful applications with PKS and PortworxOrchestrating stateful applications with PKS and Portworx
Orchestrating stateful applications with PKS and PortworxVMware Tanzu
 
Hadoop Meetup Jan 2019 - Hadoop Encryption
Hadoop Meetup Jan 2019 - Hadoop EncryptionHadoop Meetup Jan 2019 - Hadoop Encryption
Hadoop Meetup Jan 2019 - Hadoop EncryptionErik Krogen
 
Kubernetes stack reliability
Kubernetes stack reliabilityKubernetes stack reliability
Kubernetes stack reliabilityOleg Chunikhin
 
Reliable, Scalable Kubernetes on AWS
Reliable, Scalable Kubernetes on AWSReliable, Scalable Kubernetes on AWS
Reliable, Scalable Kubernetes on AWSApplatix
 
Born to be fast! - Aviram Bar Haim - OpenStack Israel 2017
Born to be fast! - Aviram Bar Haim - OpenStack Israel 2017Born to be fast! - Aviram Bar Haim - OpenStack Israel 2017
Born to be fast! - Aviram Bar Haim - OpenStack Israel 2017Cloud Native Day Tel Aviv
 
Filesystem as a service in OpenStack
Filesystem as a service in OpenStackFilesystem as a service in OpenStack
Filesystem as a service in OpenStackopenstackindia
 
Ceph Day Chicago - Ceph Deployment at Target: Best Practices and Lessons Learned
Ceph Day Chicago - Ceph Deployment at Target: Best Practices and Lessons LearnedCeph Day Chicago - Ceph Deployment at Target: Best Practices and Lessons Learned
Ceph Day Chicago - Ceph Deployment at Target: Best Practices and Lessons LearnedCeph Community
 
[OpenStack Day in Korea 2015] Track 2-6 - Apache Tajo on Swift
[OpenStack Day in Korea 2015] Track 2-6 - Apache Tajo on Swift[OpenStack Day in Korea 2015] Track 2-6 - Apache Tajo on Swift
[OpenStack Day in Korea 2015] Track 2-6 - Apache Tajo on SwiftOpenStack Korea Community
 
Fast2016 liang ming-converged_storage_technology-final (1)
Fast2016 liang ming-converged_storage_technology-final (1)Fast2016 liang ming-converged_storage_technology-final (1)
Fast2016 liang ming-converged_storage_technology-final (1)Liang Ming
 
Persistent Storage for Containerized Applications
Persistent Storage for Containerized ApplicationsPersistent Storage for Containerized Applications
Persistent Storage for Containerized ApplicationsColleen Corrice
 
Big data analytics and docker the thrilla in manila
Big data analytics and docker  the thrilla in manilaBig data analytics and docker  the thrilla in manila
Big data analytics and docker the thrilla in manilaDean Hildebrand
 
Hadoop Meetup Jan 2019 - Mounting Remote Stores in HDFS
Hadoop Meetup Jan 2019 - Mounting Remote Stores in HDFSHadoop Meetup Jan 2019 - Mounting Remote Stores in HDFS
Hadoop Meetup Jan 2019 - Mounting Remote Stores in HDFSErik Krogen
 

What's hot (20)

ContainerDays NYC 2016: "From Hello World to Real World: Building a Productio...
ContainerDays NYC 2016: "From Hello World to Real World: Building a Productio...ContainerDays NYC 2016: "From Hello World to Real World: Building a Productio...
ContainerDays NYC 2016: "From Hello World to Real World: Building a Productio...
 
7 distributed storage_open_stack
7 distributed storage_open_stack7 distributed storage_open_stack
7 distributed storage_open_stack
 
Storage as a service OpenStack
Storage as a service OpenStackStorage as a service OpenStack
Storage as a service OpenStack
 
Daniel Sikar: Running Coherence Clustered Cache on Amazon EC2 - 09/11/2010
Daniel Sikar: Running Coherence Clustered Cache on Amazon EC2 - 09/11/2010Daniel Sikar: Running Coherence Clustered Cache on Amazon EC2 - 09/11/2010
Daniel Sikar: Running Coherence Clustered Cache on Amazon EC2 - 09/11/2010
 
Introduction to rook
Introduction to rookIntroduction to rook
Introduction to rook
 
Containerized Storage for Containers: Why, What and How OpenEBS Works
Containerized Storage for Containers:  Why, What and How OpenEBS WorksContainerized Storage for Containers:  Why, What and How OpenEBS Works
Containerized Storage for Containers: Why, What and How OpenEBS Works
 
Stor4NFV: Exploration of Cloud native Storage in OPNFV - Ren Qiaowei, Wang Hui
Stor4NFV: Exploration of Cloud native Storage in OPNFV - Ren Qiaowei, Wang HuiStor4NFV: Exploration of Cloud native Storage in OPNFV - Ren Qiaowei, Wang Hui
Stor4NFV: Exploration of Cloud native Storage in OPNFV - Ren Qiaowei, Wang Hui
 
Portworx + Rancher Webinar
Portworx + Rancher Webinar Portworx + Rancher Webinar
Portworx + Rancher Webinar
 
Orchestrating stateful applications with PKS and Portworx
Orchestrating stateful applications with PKS and PortworxOrchestrating stateful applications with PKS and Portworx
Orchestrating stateful applications with PKS and Portworx
 
Hadoop Meetup Jan 2019 - Hadoop Encryption
Hadoop Meetup Jan 2019 - Hadoop EncryptionHadoop Meetup Jan 2019 - Hadoop Encryption
Hadoop Meetup Jan 2019 - Hadoop Encryption
 
Kubernetes stack reliability
Kubernetes stack reliabilityKubernetes stack reliability
Kubernetes stack reliability
 
Reliable, Scalable Kubernetes on AWS
Reliable, Scalable Kubernetes on AWSReliable, Scalable Kubernetes on AWS
Reliable, Scalable Kubernetes on AWS
 
Born to be fast! - Aviram Bar Haim - OpenStack Israel 2017
Born to be fast! - Aviram Bar Haim - OpenStack Israel 2017Born to be fast! - Aviram Bar Haim - OpenStack Israel 2017
Born to be fast! - Aviram Bar Haim - OpenStack Israel 2017
 
Filesystem as a service in OpenStack
Filesystem as a service in OpenStackFilesystem as a service in OpenStack
Filesystem as a service in OpenStack
 
Ceph Day Chicago - Ceph Deployment at Target: Best Practices and Lessons Learned
Ceph Day Chicago - Ceph Deployment at Target: Best Practices and Lessons LearnedCeph Day Chicago - Ceph Deployment at Target: Best Practices and Lessons Learned
Ceph Day Chicago - Ceph Deployment at Target: Best Practices and Lessons Learned
 
[OpenStack Day in Korea 2015] Track 2-6 - Apache Tajo on Swift
[OpenStack Day in Korea 2015] Track 2-6 - Apache Tajo on Swift[OpenStack Day in Korea 2015] Track 2-6 - Apache Tajo on Swift
[OpenStack Day in Korea 2015] Track 2-6 - Apache Tajo on Swift
 
Fast2016 liang ming-converged_storage_technology-final (1)
Fast2016 liang ming-converged_storage_technology-final (1)Fast2016 liang ming-converged_storage_technology-final (1)
Fast2016 liang ming-converged_storage_technology-final (1)
 
Persistent Storage for Containerized Applications
Persistent Storage for Containerized ApplicationsPersistent Storage for Containerized Applications
Persistent Storage for Containerized Applications
 
Big data analytics and docker the thrilla in manila
Big data analytics and docker  the thrilla in manilaBig data analytics and docker  the thrilla in manila
Big data analytics and docker the thrilla in manila
 
Hadoop Meetup Jan 2019 - Mounting Remote Stores in HDFS
Hadoop Meetup Jan 2019 - Mounting Remote Stores in HDFSHadoop Meetup Jan 2019 - Mounting Remote Stores in HDFS
Hadoop Meetup Jan 2019 - Mounting Remote Stores in HDFS
 

Viewers also liked

Compete Group Evaluations
Compete Group EvaluationsCompete Group Evaluations
Compete Group EvaluationsJack Parsons
 
Working Progress Ancillary
Working Progress AncillaryWorking Progress Ancillary
Working Progress Ancillaryaq101824
 
Tools of the Trade
Tools of the TradeTools of the Trade
Tools of the Tradejmori1
 
TheBehaviourReport.com Profile
TheBehaviourReport.com ProfileTheBehaviourReport.com Profile
TheBehaviourReport.com ProfileOscar Habeenzu
 
Инвесторы и налоговая политика Казахстана
Инвесторы и налоговая политика Казахстана Инвесторы и налоговая политика Казахстана
Инвесторы и налоговая политика Казахстана АО "Самрук-Казына"
 
CANASTAS VIVERES 2015 - SUPERMERCADOS LA CASITA
CANASTAS VIVERES 2015 - SUPERMERCADOS LA CASITACANASTAS VIVERES 2015 - SUPERMERCADOS LA CASITA
CANASTAS VIVERES 2015 - SUPERMERCADOS LA CASITALHA Lou
 
Educ 2190 mathematics stage 5 – year 10 – statistics
Educ 2190   mathematics stage 5 – year 10 – statisticsEduc 2190   mathematics stage 5 – year 10 – statistics
Educ 2190 mathematics stage 5 – year 10 – statisticsMatthew Lovegrove
 
KVH Whitepaper: Trading in Asia
KVH Whitepaper: Trading in AsiaKVH Whitepaper: Trading in Asia
KVH Whitepaper: Trading in AsiaKVH Co. Ltd.
 
Voto de Gilmar Mendes em 15/09/2005
Voto de Gilmar Mendes em 15/09/2005Voto de Gilmar Mendes em 15/09/2005
Voto de Gilmar Mendes em 15/09/2005Miguel Rosario
 
Social media strategy essentials
Social media strategy essentialsSocial media strategy essentials
Social media strategy essentialsRather Inventive
 
Kudavi 2.18.2016
Kudavi 2.18.2016Kudavi 2.18.2016
Kudavi 2.18.2016Tom Currier
 
Nutrición vs Alimentación
Nutrición vs AlimentaciónNutrición vs Alimentación
Nutrición vs Alimentacióncharito ybarra
 
Windpower Monthly Offshore Consenting Conference Brochure
Windpower Monthly Offshore Consenting Conference BrochureWindpower Monthly Offshore Consenting Conference Brochure
Windpower Monthly Offshore Consenting Conference Brochuregm330
 
Through The Looking Glass 2012 2015(Afcom)
Through The Looking Glass 2012 2015(Afcom)Through The Looking Glass 2012 2015(Afcom)
Through The Looking Glass 2012 2015(Afcom)nab
 
Ig1 assignment 2011_to_2012_updated_17.01.12
Ig1 assignment 2011_to_2012_updated_17.01.12Ig1 assignment 2011_to_2012_updated_17.01.12
Ig1 assignment 2011_to_2012_updated_17.01.12FirstClassProductions
 
Mainstreaming of Land Governance in National Agricultural and Food Security I...
Mainstreaming of Land Governance in National Agricultural and Food Security I...Mainstreaming of Land Governance in National Agricultural and Food Security I...
Mainstreaming of Land Governance in National Agricultural and Food Security I...futureagricultures
 
MARI KITA SUKSESKAN PROGRAM INDONESIA PINTAR
MARI KITA SUKSESKAN PROGRAM INDONESIA PINTARMARI KITA SUKSESKAN PROGRAM INDONESIA PINTAR
MARI KITA SUKSESKAN PROGRAM INDONESIA PINTARRezha Purbaya
 

Viewers also liked (20)

Compete Group Evaluations
Compete Group EvaluationsCompete Group Evaluations
Compete Group Evaluations
 
Working Progress Ancillary
Working Progress AncillaryWorking Progress Ancillary
Working Progress Ancillary
 
Tools of the Trade
Tools of the TradeTools of the Trade
Tools of the Trade
 
TheBehaviourReport.com Profile
TheBehaviourReport.com ProfileTheBehaviourReport.com Profile
TheBehaviourReport.com Profile
 
Инвесторы и налоговая политика Казахстана
Инвесторы и налоговая политика Казахстана Инвесторы и налоговая политика Казахстана
Инвесторы и налоговая политика Казахстана
 
Purely practical data structures
Purely practical data structuresPurely practical data structures
Purely practical data structures
 
CANASTAS VIVERES 2015 - SUPERMERCADOS LA CASITA
CANASTAS VIVERES 2015 - SUPERMERCADOS LA CASITACANASTAS VIVERES 2015 - SUPERMERCADOS LA CASITA
CANASTAS VIVERES 2015 - SUPERMERCADOS LA CASITA
 
Educ 2190 mathematics stage 5 – year 10 – statistics
Educ 2190   mathematics stage 5 – year 10 – statisticsEduc 2190   mathematics stage 5 – year 10 – statistics
Educ 2190 mathematics stage 5 – year 10 – statistics
 
KVH Whitepaper: Trading in Asia
KVH Whitepaper: Trading in AsiaKVH Whitepaper: Trading in Asia
KVH Whitepaper: Trading in Asia
 
Voto de Gilmar Mendes em 15/09/2005
Voto de Gilmar Mendes em 15/09/2005Voto de Gilmar Mendes em 15/09/2005
Voto de Gilmar Mendes em 15/09/2005
 
Social media strategy essentials
Social media strategy essentialsSocial media strategy essentials
Social media strategy essentials
 
Kudavi 2.18.2016
Kudavi 2.18.2016Kudavi 2.18.2016
Kudavi 2.18.2016
 
Nutrición vs Alimentación
Nutrición vs AlimentaciónNutrición vs Alimentación
Nutrición vs Alimentación
 
Windpower Monthly Offshore Consenting Conference Brochure
Windpower Monthly Offshore Consenting Conference BrochureWindpower Monthly Offshore Consenting Conference Brochure
Windpower Monthly Offshore Consenting Conference Brochure
 
Through The Looking Glass 2012 2015(Afcom)
Through The Looking Glass 2012 2015(Afcom)Through The Looking Glass 2012 2015(Afcom)
Through The Looking Glass 2012 2015(Afcom)
 
LS4 3.3
LS4 3.3LS4 3.3
LS4 3.3
 
Ig1 assignment 2011_to_2012_updated_17.01.12
Ig1 assignment 2011_to_2012_updated_17.01.12Ig1 assignment 2011_to_2012_updated_17.01.12
Ig1 assignment 2011_to_2012_updated_17.01.12
 
Mainstreaming of Land Governance in National Agricultural and Food Security I...
Mainstreaming of Land Governance in National Agricultural and Food Security I...Mainstreaming of Land Governance in National Agricultural and Food Security I...
Mainstreaming of Land Governance in National Agricultural and Food Security I...
 
коронавирусы
коронавирусыкоронавирусы
коронавирусы
 
MARI KITA SUKSESKAN PROGRAM INDONESIA PINTAR
MARI KITA SUKSESKAN PROGRAM INDONESIA PINTARMARI KITA SUKSESKAN PROGRAM INDONESIA PINTAR
MARI KITA SUKSESKAN PROGRAM INDONESIA PINTAR
 

Similar to Open stackapac swift_alexyang

Open stack in sina
Open stack in sinaOpen stack in sina
Open stack in sinaHui Cheng
 
AWS Summit 2011: Architecting in the cloud
AWS Summit 2011: Architecting in the cloudAWS Summit 2011: Architecting in the cloud
AWS Summit 2011: Architecting in the cloudAmazon Web Services
 
Migrating enterprise workloads to AWS
Migrating enterprise workloads to AWSMigrating enterprise workloads to AWS
Migrating enterprise workloads to AWSTom Laszewski
 
Migrating enterprise workloads to AWS
Migrating enterprise workloads to AWS Migrating enterprise workloads to AWS
Migrating enterprise workloads to AWS Tom Laszewski
 
Aws for Startups Building Cloud Enabled Apps
Aws for Startups Building Cloud Enabled AppsAws for Startups Building Cloud Enabled Apps
Aws for Startups Building Cloud Enabled AppsAmazon Web Services
 
Scaling the Platform for Your Startup
Scaling the Platform for Your StartupScaling the Platform for Your Startup
Scaling the Platform for Your StartupAmazon Web Services
 
Using Data Lakes: Data Analytics Week SF
Using Data Lakes: Data Analytics Week SFUsing Data Lakes: Data Analytics Week SF
Using Data Lakes: Data Analytics Week SFAmazon Web Services
 
KT ucloud storage, by Jaesuk Ahn
KT ucloud storage, by Jaesuk AhnKT ucloud storage, by Jaesuk Ahn
KT ucloud storage, by Jaesuk AhnHui Cheng
 
ARC205 Building Web-scale Applications Architectures with AWS - AWS re: Inven...
ARC205 Building Web-scale Applications Architectures with AWS - AWS re: Inven...ARC205 Building Web-scale Applications Architectures with AWS - AWS re: Inven...
ARC205 Building Web-scale Applications Architectures with AWS - AWS re: Inven...Amazon Web Services
 
(SOV204) Scaling Up to Your First 10 Million Users | AWS re:Invent 2014
(SOV204) Scaling Up to Your First 10 Million Users | AWS re:Invent 2014(SOV204) Scaling Up to Your First 10 Million Users | AWS re:Invent 2014
(SOV204) Scaling Up to Your First 10 Million Users | AWS re:Invent 2014Amazon Web Services
 
Better, faster, cheaper infrastructure with apache cloud stack and riak cs redux
Better, faster, cheaper infrastructure with apache cloud stack and riak cs reduxBetter, faster, cheaper infrastructure with apache cloud stack and riak cs redux
Better, faster, cheaper infrastructure with apache cloud stack and riak cs reduxJohn Burwell
 
State of the Container Ecosystem
State of the Container EcosystemState of the Container Ecosystem
State of the Container EcosystemVinay Rao
 
Private Cloud with Open Stack, Docker
Private Cloud with Open Stack, DockerPrivate Cloud with Open Stack, Docker
Private Cloud with Open Stack, DockerDavinder Kohli
 
OpenStack: Toward a More Resilient Cloud
OpenStack: Toward a More Resilient CloudOpenStack: Toward a More Resilient Cloud
OpenStack: Toward a More Resilient CloudMark Voelker
 
Web Scale Applications using NeflixOSS Cloud Platform
Web Scale Applications using NeflixOSS Cloud PlatformWeb Scale Applications using NeflixOSS Cloud Platform
Web Scale Applications using NeflixOSS Cloud PlatformSudhir Tonse
 
Amazon EKS 그리고 Service Mesh (김세호 솔루션즈 아키텍트, AWS) :: Gaming on AWS 2018
Amazon EKS 그리고 Service Mesh (김세호 솔루션즈 아키텍트, AWS) :: Gaming on AWS 2018Amazon EKS 그리고 Service Mesh (김세호 솔루션즈 아키텍트, AWS) :: Gaming on AWS 2018
Amazon EKS 그리고 Service Mesh (김세호 솔루션즈 아키텍트, AWS) :: Gaming on AWS 2018Amazon Web Services Korea
 
Inter connect2016 yss1841-cloud-storage-options-v4
Inter connect2016 yss1841-cloud-storage-options-v4Inter connect2016 yss1841-cloud-storage-options-v4
Inter connect2016 yss1841-cloud-storage-options-v4Tony Pearson
 

Similar to Open stackapac swift_alexyang (20)

Open stack in sina
Open stack in sinaOpen stack in sina
Open stack in sina
 
AWS Summit 2011: Architecting in the cloud
AWS Summit 2011: Architecting in the cloudAWS Summit 2011: Architecting in the cloud
AWS Summit 2011: Architecting in the cloud
 
Migrating enterprise workloads to AWS
Migrating enterprise workloads to AWSMigrating enterprise workloads to AWS
Migrating enterprise workloads to AWS
 
Migrating enterprise workloads to AWS
Migrating enterprise workloads to AWS Migrating enterprise workloads to AWS
Migrating enterprise workloads to AWS
 
Aws for Startups Building Cloud Enabled Apps
Aws for Startups Building Cloud Enabled AppsAws for Startups Building Cloud Enabled Apps
Aws for Startups Building Cloud Enabled Apps
 
Create cloud service on AWS
Create cloud service on AWSCreate cloud service on AWS
Create cloud service on AWS
 
Scaling the Platform for Your Startup
Scaling the Platform for Your StartupScaling the Platform for Your Startup
Scaling the Platform for Your Startup
 
Using Data Lakes: Data Analytics Week SF
Using Data Lakes: Data Analytics Week SFUsing Data Lakes: Data Analytics Week SF
Using Data Lakes: Data Analytics Week SF
 
KT ucloud storage, by Jaesuk Ahn
KT ucloud storage, by Jaesuk AhnKT ucloud storage, by Jaesuk Ahn
KT ucloud storage, by Jaesuk Ahn
 
Am 02 osac_kt_swift
Am 02 osac_kt_swiftAm 02 osac_kt_swift
Am 02 osac_kt_swift
 
ARC205 Building Web-scale Applications Architectures with AWS - AWS re: Inven...
ARC205 Building Web-scale Applications Architectures with AWS - AWS re: Inven...ARC205 Building Web-scale Applications Architectures with AWS - AWS re: Inven...
ARC205 Building Web-scale Applications Architectures with AWS - AWS re: Inven...
 
(SOV204) Scaling Up to Your First 10 Million Users | AWS re:Invent 2014
(SOV204) Scaling Up to Your First 10 Million Users | AWS re:Invent 2014(SOV204) Scaling Up to Your First 10 Million Users | AWS re:Invent 2014
(SOV204) Scaling Up to Your First 10 Million Users | AWS re:Invent 2014
 
Using Data Lakes
Using Data Lakes Using Data Lakes
Using Data Lakes
 
Better, faster, cheaper infrastructure with apache cloud stack and riak cs redux
Better, faster, cheaper infrastructure with apache cloud stack and riak cs reduxBetter, faster, cheaper infrastructure with apache cloud stack and riak cs redux
Better, faster, cheaper infrastructure with apache cloud stack and riak cs redux
 
State of the Container Ecosystem
State of the Container EcosystemState of the Container Ecosystem
State of the Container Ecosystem
 
Private Cloud with Open Stack, Docker
Private Cloud with Open Stack, DockerPrivate Cloud with Open Stack, Docker
Private Cloud with Open Stack, Docker
 
OpenStack: Toward a More Resilient Cloud
OpenStack: Toward a More Resilient CloudOpenStack: Toward a More Resilient Cloud
OpenStack: Toward a More Resilient Cloud
 
Web Scale Applications using NeflixOSS Cloud Platform
Web Scale Applications using NeflixOSS Cloud PlatformWeb Scale Applications using NeflixOSS Cloud Platform
Web Scale Applications using NeflixOSS Cloud Platform
 
Amazon EKS 그리고 Service Mesh (김세호 솔루션즈 아키텍트, AWS) :: Gaming on AWS 2018
Amazon EKS 그리고 Service Mesh (김세호 솔루션즈 아키텍트, AWS) :: Gaming on AWS 2018Amazon EKS 그리고 Service Mesh (김세호 솔루션즈 아키텍트, AWS) :: Gaming on AWS 2018
Amazon EKS 그리고 Service Mesh (김세호 솔루션즈 아키텍트, AWS) :: Gaming on AWS 2018
 
Inter connect2016 yss1841-cloud-storage-options-v4
Inter connect2016 yss1841-cloud-storage-options-v4Inter connect2016 yss1841-cloud-storage-options-v4
Inter connect2016 yss1841-cloud-storage-options-v4
 

More from OpenCity Community

More from OpenCity Community (20)

开源讲义.pdf
开源讲义.pdf开源讲义.pdf
开源讲义.pdf
 
物联网操作系统漫谈-GIAC大会.pdf
物联网操作系统漫谈-GIAC大会.pdf物联网操作系统漫谈-GIAC大会.pdf
物联网操作系统漫谈-GIAC大会.pdf
 
2017开源年会-企业开源那些事儿-更新.pdf
2017开源年会-企业开源那些事儿-更新.pdf2017开源年会-企业开源那些事儿-更新.pdf
2017开源年会-企业开源那些事儿-更新.pdf
 
社会化研发
社会化研发社会化研发
社会化研发
 
Containers & CaaS
Containers & CaaSContainers & CaaS
Containers & CaaS
 
OaaS:Open as a Strategy
OaaS:Open as a StrategyOaaS:Open as a Strategy
OaaS:Open as a Strategy
 
Hello openstack 2014
Hello openstack 2014Hello openstack 2014
Hello openstack 2014
 
Docker openstack-2014
Docker openstack-2014Docker openstack-2014
Docker openstack-2014
 
Learn OpenStack from trystack.cn
Learn OpenStack from trystack.cnLearn OpenStack from trystack.cn
Learn OpenStack from trystack.cn
 
OpenStack系列公开课2 -20130508
OpenStack系列公开课2 -20130508OpenStack系列公开课2 -20130508
OpenStack系列公开课2 -20130508
 
OpenStack ecosystem
OpenStack ecosystemOpenStack ecosystem
OpenStack ecosystem
 
How to master OpenStack in 2 hours
How to master OpenStack in 2 hoursHow to master OpenStack in 2 hours
How to master OpenStack in 2 hours
 
Learn OpenStack from trystack.cn ——Folsom in practice
Learn OpenStack from trystack.cn  ——Folsom in practiceLearn OpenStack from trystack.cn  ——Folsom in practice
Learn OpenStack from trystack.cn ——Folsom in practice
 
Quantum Networks
Quantum NetworksQuantum Networks
Quantum Networks
 
云计算思考
云计算思考云计算思考
云计算思考
 
Openstorage Openstack
Openstorage OpenstackOpenstorage Openstack
Openstorage Openstack
 
Openstack的研究与实践
Openstack的研究与实践Openstack的研究与实践
Openstack的研究与实践
 
Nova与虚拟机管理
Nova与虚拟机管理Nova与虚拟机管理
Nova与虚拟机管理
 
Look Into Libvirt Osier Yang
Look Into Libvirt Osier YangLook Into Libvirt Osier Yang
Look Into Libvirt Osier Yang
 
Deep Dive Into Quantum
Deep Dive Into QuantumDeep Dive Into Quantum
Deep Dive Into Quantum
 

Recently uploaded

Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Hyundai Motor Group
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetHyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetEnjoy Anytime
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 

Recently uploaded (20)

Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetHyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 

Open stackapac swift_alexyang

  • 1. 架构与实践 Swift 在这里写上你的标题 @SinaAppEngine 副标题文字副标题文字 杨雨 /2012-08-日 作者名字 / 11 期
  • 2. Content 1 Principles and Architecture 写上你的文字你的文字 00 2 The Practice of Swift @SinaAppEngine 01 02 3 Problems and Imporvemetns 03 04 05
  • 3. Storage Types Types Protocol Application 00 写上你的文字你的文字 Block Storage SATA, SCSI, iSCSI SAN, NAS, EBS 01 File Storage Ext3/4, XFS, NTFS PC, Servers, NFS 02 Object Storage HTTP, REST Amazon S3, 03 Google Cloud Storage, Rackspace Cloud Files 04 Specific Storage Specific protocol MySQL, MongoDB, 05 based on tcp HDFS
  • 4. Storage Types 00 写上你的文字你的文字 01 02 03 04 05 From: http://www.buildcloudstorage.com/2012/08/is-openstack-swift-reliable-enough-for.html
  • 5. Targets •High Reliability = High Durability + High Availability •High Durability - Replicas and Recovery •High Availability - Replicas and Partition •Low Cost - Commodity Hardware •Scale Out - No Single Bottleneck, Share Nothing
  • 7. Reliability Consistent Hashing with Virtual Node
  • 8. Reliability Consistent Hashing with Virtual Node
  • 9. Reliability The advantages of consistent hashing: 1.Metadata is small;(AWS S3 has 762 billion objects) 2.Distribution unformity; 3.Peer to perr comunication; 4.Load blance.
  • 10. Reliability •Virtual node(partition) - Object distribution uniformity •Weight - Allocate partitions dynamically •Zone - Partition Tolerance Zones can be used to group devices based on physical locations, power separations, network separations, or any other attribute that would lessen multiple replicas being unavailable at the same time. Swift : Ring - The index file for locating object in the cluster.
  • 12. Reliability Durability: 99.999..9%? AWS S3 with 99.999999999% •Annualized failure rate of devices.(disk, network...) •Bit rot rate and the time to detect bit rot. •Mean time to recovery. •More about durability : http://www.buildcloudstorage.com/2012/08/is-openstack-swift- reliable-enough-for.html Swift : Auditor - To detect bit rot; Replicator-To keep the consistency of object;
  • 14. Consistency Model Quroum + Object Version + Async Replicatiton Quroum Protocol: N, the number of nodes that store replicas of the data; W, the number of replicas that need to acknowledge the receipt of the update before the update completes; R, the number of replicas that are contacted when a data object is accessed through a read operation; If W+R>N, then the write set and the read set always overlap and one can guarantee strong consistency. In Swift, NWR is configurable. General configuration: N=3, W=2, R=1 or 2, So the swift can providetwo models of consistency, strong and eventual.
  • 15. Consistency Model Weak Consistency ( N=3,W=2,R=1 )
  • 19. Metadata account |-- container1 |------obj1 |------obj2 |-- container2 |------objN How to store the relationship of account, container and object? •Relation Database •NoSQL, Cassandra, MongoDB •Relation Datatbase with Sharding
  • 20. Metadata The target of swift: no single failure, no bottletneck, scale out The Swift way: sqlite + consistent hashing + quroum A sqlite db file is an object. So the database is HA, durable and with eventual consistency.
  • 21.
  • 25. Our Works •Swift as the SAE Storage -Auth module for SAE(Key-Pair) -Keystone for SAE(Token) -HTTP Cache-Control module -Quota(limit the number of containers and objects, limit the storage usage) -Domain remap app-domain.stor.sinaapp.com/obj To sinas3.com/v1/SAE_app/domain -Rsync with bwlimit -Billing -Storage Firewall •Swift as the SWS Simple Storage Service -Container unique module container.sinas3.com/object -Keystone middleware for auth protocol converting
  • 26. Our Steps for Switching SAE Storage •Bypass test one month online( 旁路读写测试 ) •Switch step by step one month( 灰度切换 ) •Ops Monitoring: I/O, CPU, Memery, Disk LogCenter: syslog-ng, statistics and analytics
  • 27.
  • 28.
  • 29.
  • 30. Problems&Imporvements The async processor for keeping eventual consistency is inefficient. Replicator, auditor, container-updater Logic: loop all objects or dbs on disk, query replica's server to determin whether to sync. Results: High I/O; High CPU usage; Stress on account/container/object- servers, impact the availability; Long time for eventual consistency, impact the durability; The list operation is not consistent. How to improvements? 1.Runing replicator, auditor and container updater during idle time; 2.An appropriate deployment; 3.A new protocol for keeping relplica's consistency; (based on log and message queue) 4.Adding new nodes, scale out.
  • 31. Problems&Imporvements The performance of sqlite. Quota for objects and containers Running sqlite on the high performance I/O devices The bandwidth of rsync is not under control. Out-of-band management Add bandwidth limitations for rsync Database centralized or distributed?
  • 33. Q&A Weibo: @AlexYang_Coder Email: yangyu4@staff.sina.com.cn GTalk: alex890714@gmail.com Blog: http://alexyang.sinaapp.com