网站大量收购独家精品文档,联系QQ:2885784924

关系型数据库的扩展性.docxVIP

  1. 1、本文档共5页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
  5. 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
  6. 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们
  7. 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
  8. 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
SQL Databases Dont Scale传统SQL数据库不具有可扩展性A question I’m often asked about Heroku is: “How do you scale the SQL database?” There’s a lot of things I can say about using caching, sharding, and other techniques to take load off the database. But the actual answer is: we don’t. SQL databases are fundamentally non-scalable, and there is no magical pixie dust that we, or anyone, can sprinkle on them to suddenly make them scale.我经常向Heroku问一个问题:“你是如何进行扩展SQL数据库的?”。当然你可以说出许多技巧来降低数据库的负载,比如利用缓存,数据分片等等。事实上真正的回答却是:“我们做不到。”因为从根本上讲,传统SQL数据库并不具有可扩展能力。这个世界上也根本没有什么神奇的精灵之尘,可以让我们任何人突然使其获得扩展性的。What Is Scaling?什么是可扩展性?To qualify as true scaling, I believe a technique must fit the following criteria:必须满足以下几个标准的才是真正合格的可扩展性,我认为这都是必要条件: 1. Horizontal scale: more servers creates more capacity. 1. 水平扩展能力:更多的服务器可以提供成比例更多的容量或者更高的性能。 2. Transparent to the application: the business logic of the app should be separated from concerns of scaling server resources. 2. 对应用程序透明:应用程序中蕴含的业务逻辑要和关注机器资源的扩展性相分离,做到底层对上层业务的隔离,提供透明化的扩展能力。3. No single point of failure: there should be no one server which, if lost, causes downtime of the application. 3. 没有单点故障问题:系统中不应该存在单点,就是说不能因为一个服务器的宕机或者故障而导致整个应用程序的不可用。As an example from the hardware world, a RAID5 disk array offers true scaling:在硬件世界里,RAID5磁盘阵列提供了一个很好的可扩展性的例子: 1. Horizontal scale: you can run a RAID5 with 4 disks, or 12, or 20; more disks gives you more drive space and (generally) better performance. 1. 水平扩展:我们可以在4块,12块,甚至20块盘上应用RAID5,磁盘越多可用的空间越大,性能也越好; 2. Transparent to the application: applications using the RAID as a single device. My text editor doesn’t care that the file it is saving or loading is split across many disks. 2. 对应用程序透明:应用程序会将RAID作为一个整体,我的文本编辑器才不会关心它加载或者保存的文件是要读写多个磁盘的。 3. No single point of failure: you can pop out a drive and the array will continue to function (albeit with a performance hit, known as “degraded mode”). Replace the drive and it will rebuild itself. All of this happens without the applications using the RA

文档评论(0)

rpv75l07 + 关注
实名认证
文档贡献者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档