Scale Up and Scale Out

Reference: library.gabia.com

์„œ๋ฒ„ ํ™•์žฅ์„ ์œ„ํ•œ ๋‘ ๊ฐ€์ง€ ๋ฐฉ๋ฒ• - Scale Up , Scale Out

๋” ๋งŽ์€ ์„œ๋ฒ„ ์šฉ๋Ÿ‰๊ณผ ์„ฑ๋Šฅ์ด ํ•„์š”ํ•˜๊ฒŒ ๋  ๋•Œ, Scale Up ๊ณผ Scale Out, ๋‘ ๊ฐ€์ง€ ๋ฐฉ๋ฒ•์œผ๋กœ sytem์„ ํ™•์žฅ์‹œํ‚ฌ ์ˆ˜ ์žˆ๋‹ค

1. Scale Up

  • Scale-up์ด๋ž€ server์— CPU๋‚˜ RAM์„ ์ถ”๊ฐ€ํ•˜๊ฑฐ๋‚˜ ๊ณ ์„ฑ๋Šฅ์˜ ๋ถ€ํ’ˆ, server๋กœ ๊ตํ™˜ํ•ด์„œ ์ž์ฒด ์„ฑ๋Šฅ์„ ์ฆ๊ฐ€์‹œํ‚ค๋Š” ๊ฒƒ์ด๋‹ค

    • ์ฆ‰, ๊ธฐ์กด์˜ server์—์„œ ๋”์šฑ ๊ณ ์„ฑ๋Šฅ์˜ sever๋กœ ๋ณ€๊ฒฝํ•˜๋Š” ๊ฒƒ์„ ์˜๋ฏธํ•œ๋‹ค

      • "์ˆ˜์ง ์Šค์ผ€์ผ" ์ด๋ผ๊ณ  ๋ถ€๋ฅด๊ธฐ๋„ ํ•œ๋‹ค

  • ํ•œ ๋Œ€์˜ server์—์„œ ๋ชจ๋“  data๋ฅผ ์ฒ˜๋ฆฌํ•˜๋ฏ€๋กœ data ๊ฐฑ์‹ ์ด ๋นˆ๋ฒˆํ•˜๊ฒŒ ์ผ์–ด๋‚˜๋Š” DB Server์— ์ ํ•ฉํ•œ ๋ฐฉ์‹์ด๋‹ค

![Screen Shot 2020-09-22 at 3.12.23 PM](../../images/Screen Shot 2020-09-22 at 3.12.23 PM.png)

Scale-up์˜ ๋ฌธ์ œ์ 

  • Server ํ•œ ๋Œ€์— ๋ชจ๋“  ๋ถ€ํ•˜๊ฐ€ ์ง‘์ค‘๋˜๋ฏ€๋กœ ์žฅ์•  ์‹œ ์˜ํ–ฅ์„ ํฌ๊ฒŒ ๋ฐ›์„ ์ˆ˜ ์žˆ๋Š” ์œ„ํ—˜์„ฑ์ด ์žˆ์Œ

  • Storage controller์˜ ํ™•์žฅ์„ฑ ํ•œ๊ณ„์˜ ๋ฌธ์ œ

  • ์„ฑ๋Šฅ & ์šฉ๋Ÿ‰ ํ™•์žฅ ์ œํ•œ์— ๋‹ค๋‹ค๋ฅธ ๊ฒฝ์šฐ ์ƒˆ system์„ ์ถ”๊ฐ€ํ•ด์•ผํ•˜๋Š” ์ƒํ™ฉ์—์„œ ๋ฐœ์ƒํ•˜๋Š” migration ๋น„์šฉ

2. Scale Out

  • ๊ธฐ์กด์˜ sever์™€ ๊ฐ™์€ ์‚ฌ์–‘ ๋˜๋Š” ๋น„์Šทํ•œ ์‚ฌ์–‘์˜ server ๋Œ€์ˆ˜๋ฅผ ์ฆ๊ฐ€์‹œํ‚ค๋Š” ๋ฐฉ๋ฒ•์œผ๋กœ ์ฒ˜๋ฆฌ ๋Šฅ๋ ฅ์„ ํ–ฅ์ƒ์‹œํ‚ค๋Š” ๊ฒƒ

    • "์ˆ˜ํ‰ ์Šค์ผ€์ผ" ์ด๋ผ๊ณ  ๋ถ€๋ฅด๊ธฐ๋„ ํ•œ๋‹ค

  • ํ™•์žฅ์ด Scale-up ๊ณผ ๋น„๊ตํ•˜์—ฌ ๋‹ค์†Œ ์œ ์—ฐํ•œ ํŽธ์ด๋‹ค

  • Server๊ฐ€ ์—ฌ๋Ÿฌ ๋Œ€๊ฐ€ ๋˜๊ธฐ ๋•Œ๋ฌธ์— ๊ฐ server์— ๊ฑธ๋ฆฌ๋Š” ๋ถ€ํ•˜๋ฅผ ๊ท ๋“ฑํ•˜๊ฒŒ ํ•ด์ฃผ๋Š” load balancing ์ด ๋™๋ฐ˜๋˜์–ด์•ผ ํ•œ๋‹ค

![Screen Shot 2020-09-22 at 3.20.20 PM](../../images/Screen Shot 2020-09-22 at 3.20.20 PM.png)

Scale Out์˜ ์žฅ์ 

  • Server ํ•œ ๋Œ€๊ฐ€ ์žฅ์• ๋กœ ๋‹ค์šด๋˜๋”๋ผ๋„ ๋‹ค๋ฅธ server๋กœ service ์ œ๊ณต์ด ๊ฐ€๋Šฅํ•˜๋‹ค

Scale Out์˜ ๋ฌธ์ œ์ 

  • ๋ชจ๋“  server๊ฐ€ ๋™์ผํ•œ data๋ฅผ ๊ฐ€์ง€๊ณ  ์žˆ์–ด์•ผ ํ•˜๋ฏ€๋กœ data ๋ณ€ํ™”๊ฐ€ ์ ์€ web server ์— ์ ํ•ฉํ•œ ๋ฐฉ์‹์ด๋‹ค

  • ๋ณ‘๋ น ์ปดํ“จํŒ… (Parallel Computing) ์„ค๊ณ„ ๋ฐ ๊ตฌํ˜„ ์˜ ์–ด๋ ค์›€

    • ๊ธฐ๋ณธ์ ์œผ๋กœ ์ง๋ ฌํ™” (๋‹จ์ผ ์ฒ˜๋ฆฌ) ๋˜์–ด์•ผ ํ•  ๋ถ€๋ถ„์ด ์กด์žฌํ•˜๋ฉฐ,

    • ๋Œ€์—ญํญ, ๋™๊ธฐํ™” ๋ฌธ์ œ๊ฐ€ ์žˆ๊ณ ,

    • core๊ฐ€ ๋Š˜์–ด๋‚จ์— ๋”ฐ๋ผ ๋งˆ๋ƒฅ ์„ฑ๋Šฅ์ด ์ฆ๊ฐ€ํ•˜์ง€๋Š” ์•Š๊ณ , core ์ฆ๊ฐ€์— ๋”ฐ๋ผ ๋Œ€์—ญํญ ์€ ์ฆ๊ฐ€ํ•ด ์ง€์—ฐ์ด ๋ฐœ์ƒํ•  ๊ฐ€๋Šฅ์„ฑ์ด ์žˆ๋‹ค

Wrap-up

  • ์ƒํ™ฉ์— ๋งž๋Š” ๋ฐฉ์‹์„ ์ฑ„ํƒํ•ด์„œ ๊ตฌ์ถ•ํ•ด์•ผ ํ•œ๋‹ค

    • ex)

      • ์ ‘์†์ž ์ฆ๊ฐ€๋กœ ์ธํ•ด traffic์ด ๋งŽ์ด ๋ฐœ์ƒํ•  ๊ฒฝ์šฐ Scale-out์ด ํšจ๊ณผ์ ์ด๊ณ , ๋น„์šฉ๋„ ์ €๋ ดํ•˜๋‹ค

      • DB์˜ ๋นˆ๋ฒˆํ•œ ๊ฐฑ์‹ ์ด ํ•„์š”ํ•œ OLTP (Online Transaction) ์—์„œ๋Š” Scale-up ์ด ํšจ๊ณผ์ ์ด๋‹ค

Last updated