横向扩展、纵向扩展

你有一台API服务器,每天几百万次请求,吃不消了。现在要提升性能:

横向扩展:多增加几台API服务器,一起服务。
纵向扩展:把API服务器换成性能更好的机器。

  • 横向扩展 也叫 水平扩展,用更多的节点支撑更大量的请求。 如成千上万的蚂蚁完成一项搬运工作
  • 纵向扩展 又叫 垂直扩展,扩展一个点的能力支撑更大的请求。如利用1个人的能力,如蜘蛛侠逼停火车

Scale horizontally vs. vertically
Methods of adding more resources for a particular application fall into two broad categories

Scale horizontally (scale out)
To scale horizontally (or scale out) means to add more nodes to a system, such as adding a new computer to a distributed software application. An example might be scaling out from one Web server system to three.

As computer prices drop and performance continues to increase, low cost "commodity" systems can be used for high performance computing applications such as seismic analysis and biotechnology workloads that could in the past only be handled by supercomputers. Hundreds of small computers may be configured in a cluster to obtain aggregate computing power that often exceeds that of single traditional RISC processor based scientific computers. This model has further been fueled by the availability of high performance interconnects such asMyrinet and InfiniBand technologies. It has also led to demand for features such as remote maintenance and batch processing management previously not available for "commodity" systems.

The scale-out model has created an increased demand for shared data storage with very high I/O performance, especially where processing of large amounts of data is required, such as in seismic analysis. This has fueled the development of new storage technologies such as object storage devices.

Scale out solutions for database servers generally seek to move toward a shared nothing architecture going down the path blazed by Google of sharding.

Scale vertically (scale up)
To scale vertically (or scale up) means to add resources to a single node in a system, typically involving the addition of CPUs or memory to a single computer. Such vertical scaling of existing systems also enables them to use virtualization technology more effectively, as it provides more resources for the hosted set of operating system and application modules to share.

Taking advantage of such resources can also be called "scaling up", such as expanding the number of Apachedaemon processes currently running.

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 12,150评论 0 10
  • 空幻書郎 异地重游一丝情 寒窗幻影未留声 岁月丢弃从前事 从此相逢成路人 天际浮云聚一片 血海残阳顿间生 抬首遥望...
    空幻书郎A阅读 1,677评论 0 2
  • ”你是我天边最美的云彩 让我用心把你留下来 ” 后面多常是一阵儿蹙眉虚码 单手撑腰 仰天借力的一声“喂?!” 然后...
    蝴蝶蝴蝶蝴蝶Butterfly阅读 1,313评论 0 0
  • 打开日记本的时候,无意中翻到夹在其中的拍立得彩色照片,底部一行黑色水笔写的备注:2016.7.15 杭州西湖。 那...
    梦影露电阅读 2,720评论 0 0