橫向擴(kuò)展、縱向擴(kuò)展

你有一臺API服務(wù)器学密,每天幾百萬次請求淘衙,吃不消了。現(xiàn)在要提升性能:

橫向擴(kuò)展:多增加幾臺API服務(wù)器腻暮,一起服務(wù)彤守。
縱向擴(kuò)展:把API服務(wù)器換成性能更好的機(jī)器。

  • 橫向擴(kuò)展 也叫 水平擴(kuò)展哭靖,用更多的節(jié)點支撐更大量的請求具垫。 如成千上萬的螞蟻完成一項搬運工作
  • 縱向擴(kuò)展 又叫 垂直擴(kuò)展,擴(kuò)展一個點的能力支撐更大的請求试幽。如利用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.

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末铺坞,一起剝皮案震驚了整個濱河市起宽,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌济榨,老刑警劉巖坯沪,帶你破解...
    沈念sama閱讀 217,542評論 6 504
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場離奇詭異擒滑,居然都是意外死亡腐晾,警方通過查閱死者的電腦和手機(jī),發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 92,822評論 3 394
  • 文/潘曉璐 我一進(jìn)店門丐一,熙熙樓的掌柜王于貴愁眉苦臉地迎上來藻糖,“玉大人,你說我怎么就攤上這事库车∮庇” “怎么了?”我有些...
    開封第一講書人閱讀 163,912評論 0 354
  • 文/不壞的土叔 我叫張陵,是天一觀的道長潘拱。 經(jīng)常有香客問我,道長拧略,這世上最難降的妖魔是什么芦岂? 我笑而不...
    開封第一講書人閱讀 58,449評論 1 293
  • 正文 為了忘掉前任,我火速辦了婚禮垫蛆,結(jié)果婚禮上禽最,老公的妹妹穿的比我還像新娘。我一直安慰自己袱饭,他們只是感情好川无,可當(dāng)我...
    茶點故事閱讀 67,500評論 6 392
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著虑乖,像睡著了一般懦趋。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上疹味,一...
    開封第一講書人閱讀 51,370評論 1 302
  • 那天仅叫,我揣著相機(jī)與錄音,去河邊找鬼糙捺。 笑死诫咱,一個胖子當(dāng)著我的面吹牛,可吹牛的內(nèi)容都是我干的洪灯。 我是一名探鬼主播坎缭,決...
    沈念sama閱讀 40,193評論 3 418
  • 文/蒼蘭香墨 我猛地睜開眼,長吁一口氣:“原來是場噩夢啊……” “哼签钩!你這毒婦竟也來了掏呼?” 一聲冷哼從身側(cè)響起,我...
    開封第一講書人閱讀 39,074評論 0 276
  • 序言:老撾萬榮一對情侶失蹤边臼,失蹤者是張志新(化名)和其女友劉穎哄尔,沒想到半個月后,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體柠并,經(jīng)...
    沈念sama閱讀 45,505評論 1 314
  • 正文 獨居荒郊野嶺守林人離奇死亡岭接,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 37,722評論 3 335
  • 正文 我和宋清朗相戀三年,在試婚紗的時候發(fā)現(xiàn)自己被綠了臼予。 大學(xué)時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片鸣戴。...
    茶點故事閱讀 39,841評論 1 348
  • 序言:一個原本活蹦亂跳的男人離奇死亡,死狀恐怖粘拾,靈堂內(nèi)的尸體忽然破棺而出窄锅,到底是詐尸還是另有隱情,我是刑警寧澤缰雇,帶...
    沈念sama閱讀 35,569評論 5 345
  • 正文 年R本政府宣布入偷,位于F島的核電站追驴,受9級特大地震影響,放射性物質(zhì)發(fā)生泄漏疏之。R本人自食惡果不足惜殿雪,卻給世界環(huán)境...
    茶點故事閱讀 41,168評論 3 328
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望锋爪。 院中可真熱鬧丙曙,春花似錦、人聲如沸其骄。這莊子的主人今日做“春日...
    開封第一講書人閱讀 31,783評論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽拯爽。三九已至索抓,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間某抓,已是汗流浹背纸兔。 一陣腳步聲響...
    開封第一講書人閱讀 32,918評論 1 269
  • 我被黑心中介騙來泰國打工, 沒想到剛下飛機(jī)就差點兒被人妖公主榨干…… 1. 我叫王不留否副,地道東北人汉矿。 一個月前我還...
    沈念sama閱讀 47,962評論 2 370
  • 正文 我出身青樓,卻偏偏與公主長得像备禀,于是被迫代替她去往敵國和親洲拇。 傳聞我的和親對象是個殘疾皇子,可洞房花燭夜當(dāng)晚...
    茶點故事閱讀 44,781評論 2 354

推薦閱讀更多精彩內(nèi)容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi閱讀 7,325評論 0 10
  • ”你是我天邊最美的云彩 讓我用心把你留下來 ” 后面多常是一陣兒蹙眉虛碼 單手撐腰 仰天借力的一聲“喂纽乱?!” 然后...
    蝴蝶蝴蝶蝴蝶Butterfly閱讀 179評論 0 0
  • 打開日記本的時候昆箕,無意中翻到夾在其中的拍立得彩色照片鸦列,底部一行黑色水筆寫的備注:2016.7.15 杭州西湖。 那...
    夢影露電閱讀 326評論 0 0