书签 分享 收藏 举报 版权申诉 / 27
上传文档赚钱

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

  • 上传人(卖家):罗嗣辉
  • 文档编号:2040949
  • 上传时间:2022-01-19
  • 格式:PPTX
  • 页数:27
  • 大小:2.38MB
  • 【下载声明】
    1. 本站全部试题类文档,若标题没写含答案,则无答案;标题注明含答案的文档,主观题也可能无答案。请谨慎下单,一旦售出,不予退换。
    2. 本站全部PPT文档均不含视频和音频,PPT中出现的音频或视频标识(或文字)仅表示流程,实际无音频或视频文件。请谨慎下单,一旦售出,不予退换。
    3. 本页资料《高级数据库课件:-A-Dyanmo.pptx》由用户(罗嗣辉)主动上传,其收益全归该用户。163文库仅提供信息存储空间,仅对该用户上传内容的表现方式做保护处理,对上传内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知163文库(点击联系客服),我们立即给予删除!
    4. 请根据预览情况,自愿下载本文。本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
    5. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007及以上版本和PDF阅读器,压缩文件请下载最新的WinRAR软件解压。
    配套讲稿:

    如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。

    特殊限制:

    部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。

    关 键  词:
    高级 数据库 课件 Dyanmo
    资源描述:

    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.

    展开阅读全文
    提示  163文库所有资源均是用户自行上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作他用。
    关于本文
    本文标题:高级数据库课件:-A-Dyanmo.pptx
    链接地址:https://www.163wenku.com/p-2040949.html

    Copyright@ 2017-2037 Www.163WenKu.Com  网站版权所有  |  资源地图   
    IPC备案号:蜀ICP备2021032737号  | 川公网安备 51099002000191号


    侵权投诉QQ:3464097650  资料上传QQ:3464097650
       


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

    163文库