ImageVerifierCode 换一换
格式:PPTX , 页数:27 ,大小:2.38MB ,
文档编号:2040949      下载积分:15 文币
快捷下载
登录下载
邮箱/手机:
温馨提示:
系统将以此处填写的邮箱或者手机号生成账号和密码,方便再次下载。 如填写123,账号和密码都是123。
支付方式: 支付宝    微信支付   
验证码:   换一换

优惠套餐
 

温馨提示:若手机下载失败,请复制以下地址【https://www.163wenku.com/d-2040949.html】到电脑浏览器->登陆(账号密码均为手机号或邮箱;不要扫码登陆)->重新下载(不再收费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录  
下载须知

1: 试题类文档的标题没说有答案,则无答案;主观题也可能无答案。PPT的音视频可能无法播放。 请谨慎下单,一旦售出,概不退换。
2: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
3: 本文为用户(罗嗣辉)主动上传,所有收益归该用户。163文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知163文库(点击联系客服),我们立即给予删除!。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

1,本文(高级数据库课件:-A-Dyanmo.pptx)为本站会员(罗嗣辉)主动上传,163文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
2,用户下载本文档,所消耗的文币(积分)将全额增加到上传者的账号。
3, 若此文所含内容侵犯了您的版权或隐私,请立即通知163文库(发送邮件至3464097650@qq.com或直接QQ联系客服),我们立即给予删除!

高级数据库课件:-A-Dyanmo.pptx

1、10/22/20121Distributed key/value storage systemScalableHighly availableCAP10/22/20122It sacrifices strong consistency for availability: always writableIncremental scalabilitySymmetry: every node should have the same set of responsibilities as its peersDecentralizationHeterogeneity10/22/20123Data par

2、titioningReplicationData versioningDynamo APIMembership managementApplication can deliver its functionality in abounded time: Every dependency in the platform needs to deliver its functionality with even tighter bounds.Example: service guaranteeing that it will provide a response within 300ms for 99

3、.9% of its requests for a peak client load of 500 requests per second.Service-oriented architecture of Amazons platformIf size of data exceeds the capacity of a single machine: partitioningSharding data (horizontal partitioning).Consistent hashing is one form of automatic sharding.hash(Fatemeh) = 12

4、hash(Ahmad) = 2hash(Seif) = 9hash(Jim) = 14hash(Sverker) = 4Hash both data and nodes using the same hash function in a same id space.partition = hash(d) mod n, d: data, n: number of nodesNODE IDENTIERS MAY NOT BE BALANCED.DATA IDENTIERS MAY NOT BE BALANCED.10/22/20129HOT SPOTS.HETEROGENEOUS NODES.10

5、/22/201210Each physical node picks multiple random identifiers.Each identifier represents a virtual node.Each node runs multiple virtual nodes.10/22/201211If a node becomes unavailable the load handled by this node is evenly dispersed across the remaining available nodes.10/22/201212When a node beco

6、mes available again, the newly available node accepts a roughly equivalent amount of load from each of the other available nodes.The number of virtual nodes that a node is responsible can decided based on its capacity, accounting for heterogeneity in the physical infrastructure.To achieve high avail

7、ability and durability, data should be replicates on multiple nodes.10/22/201213Updates are propagated asynchronously.Each update/modication of an item results in a new and immutable version of the data.Multiple versions of an object may exist.Replicas eventually become consistent.10/22/201214Versio

8、n branching can happen due to node/network failures.I Use vector clocks for capturing causality, in the form of (node, counter)If causal: older version can be forgottenIf concurrent: conflict exists, requiring reconciliationClient C1 writes new object via Sx.C1 updates the object via Sx.C1 updates t

9、he object via Sy.C2 reads D2 and updates the object via Sz.C3 reads D3 and D4 via Sx.The read context is a summary of the clocks of D3 and D4: (Sx, 2), (Sy, 1), (Sz, 1).Reconciliationget(key)Return single object or list of objects with conflicting version and context.put(key, context, object)Store o

10、bject and context under key.Context encodes system metadata, e.g., version number.Client can send the request:To the node responsible for the data (coordinator): save on latency, code on clientTo a generic load balancer: extra hopeCoordinator generates new vector clock and writes the new version loc

11、ally.10/22/201217Coordinator generates new vector clock and writes the new version locally.Send to N nodes.Wait for response from W nodes.Using W=1High availability for writesLow durabilityCoordinator requests existing versions from N.Wait for response from R nodes.If multiple versions, return all v

12、ersions that are causally unrelated.Divergent versions are then reconciled.Reconciled version written back.Using R=1High performance read engine.R/W is the minimum number of nodes that must participate in a successful read/write operation.Setting R + W N yields a quorum-like system.In this model, th

13、e latency of a get (or put) operation is dictated by the slowest of the R (or W) replicas. For this reason, R and W are usually configured to be less than N, to provide better latency.Assume N = 3. When A is temporarily down or unreachable during a write, send replica to D.D is hinted that the repli

14、ca is belong to A and it will deliver to A when A is recovered.Again: “always writeable”Administrator explicitly adds and removes nodes.Gossiping to propagate membership changes.Eventually consistent view.O(1) hop overlay.A new node X added to system.X is assigned key ranges w.r.t. its virtual serve

15、rs.For each key range, it transfers the data items.Reallocation of keys is a reverse process of adding nodes.Passive failure detection.Use pings only for detection from failed to alive.In the absence of client requests, node A doesnt need to know if node B is alive.Anti-entropy for replica synchroni

16、zation.Use Merkle trees for fast inconsistency detection and minimum transfer of data.Nodes maintain Merkle tree of each key range.Exchange root of Merkle tree to check if the key ranges are updated.Due to partitions, quorums might not exist. Sloppy quorum.Create transient replicas: N healthy nodes from the preference list.Reconcile after partition heals.Say A is unreachable.put will use D.Later, D detects A is alive.Sends the replica to ARemoves the replica.

侵权处理QQ:3464097650--上传资料QQ:3464097650

【声明】本站为“文档C2C交易模式”,即用户上传的文档直接卖给(下载)用户,本站只是网络空间服务平台,本站所有原创文档下载所得归上传人所有,如您发现上传作品侵犯了您的版权,请立刻联系我们并提供证据,我们将在3个工作日内予以改正。


163文库-Www.163Wenku.Com |网站地图|