๋ณธ๋ฌธ

[AWS] Auto Scale, Spot Instance ๊ทธ๋ฆฌ๊ณ  Elastic Beanstalk

๋ฐ˜์‘ํ˜•

๐Ÿ’ก Auto Scale๊ณผ Spot Instance

Auto Scale

์ด๋ฏธ์ง€ ์ถœ์ฒ˜: https://tudip.com/blog-post/amazon-autoscaling/

 

a) Auto Scale: ํŠน์ •ํ•œ ์กฐ๊ฑด(CPU, ์‹œ๊ฐ„ ๋“ฑ)์— ๋”ฐ๋ผ ์ž๋™์œผ๋กœ Instance์˜ ์ˆ˜๋ฅผ ์กฐ์ •ํ•ด์ฃผ๋Š” ์„œ๋น„์Šค

b) Ondemand Instance: ์‚ฌ์šฉ์ž๊ฐ€ ํ•„์š”ํ•œ ๋งŒํผ์˜ ์ปดํ“จํŒ… ์šฉ๋Ÿ‰์„ ๊ตฌ์ž…ํ•˜์—ฌ ์‚ฌ์šฉํ•˜๋Š” ์„œ๋น„์Šค

 

c) Spot Instance: AWS์˜ ์—ฌ์œ  ์ž์›์„ ์‹ค์‹œ๊ฐ„ ๊ฒฝ๋งค๋ฅผ ํ†ตํ•ด ์ด์šฉํ•˜๋Š” ์„œ๋น„์Šค

-. Ondemand Instance ๋Œ€๋น„ ์ตœ๋Œ€ 90% ํ• ์ธ๋œ ๊ฐ€๊ฒฉ์œผ๋กœ ์ปดํ“จํŒ… ์ž์›์„ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋‹ค.

Ondemand์™€ Spot Instance ๊ฐ€๊ฒฉ๋น„๊ต

 Auto Scale๊ณผ Ondemand/Spot Instance๋ฅผ ์šด์˜ ์„œ๋น„์Šค ํ™˜๊ฒฝ์— ๋งž๊ฒŒ ๊ฒฐํ•ฉํ•˜์—ฌ ์‚ฌ์šฉํ•˜๋ฉด ํŠธ๋ž˜ํ”ฝ์— ๊ตฌ์• ๋ฐ›์ง€์•Š๊ณ  ๋น„์šฉ์„ ์ตœ์ ํ™”ํ•˜์—ฌ ์„œ๋น„์Šค๋ฅผ ์šด์˜ํ•  ์ˆ˜ ์žˆ๋‹ค.

๋น„ํŠธํŒจํ‚น์ปดํผ๋‹ˆ AWS ํ™œ์šฉ์‚ฌ๋ก€

Q. Ondemand Instance์— ๋น„ํ•ด Spot Instance๊ฐ€ ์ €๋ ดํ•œ ์ด์œ 

Spot Instance๋Š” AWS์— ์žˆ๋Š” ์—ฌ์œ ์ž์›์„ ๊ฒฝ๋งค๋ฅผ ํ†ตํ•˜์—ฌ ์ด์šฉํ•˜๊ธฐ๋•Œ๋ฌธ์—, ๊ฒฝ๋งค ์ƒํ™ฉ์— ๋”ฐ๋ผ์„œ ๋งŒ์•ฝ ๋‚™์ฐฐ์„ ๋ฐ›์ง€ ๋ชปํ•œ๋‹ค๋ฉด ํ•ด๋‹น ์ธ์Šคํ„ด์Šค๋ฅผ ๋‹ค๋ฅธ ์‚ฌ์šฉ์ž์—๊ฒŒ ๋นผ์•—๊ธธ ์ˆ˜๋„ ์žˆ๊ณ , ํ˜น์€ AWS์— ์—ฌ์œ ์ž์›์ด ์—†์–ด์„œ ๊ฒฝ๋งค๋ฅผ ํ•  ์ˆ˜ ์—†๋Š” ๊ฒฝ์šฐ๋„ ๋ฐœ์ƒํ•œ๋‹ค.

 

์ฆ‰ 

1) ์‚ฌ์šฉ์ž๊ฐ€ ์›ํ•˜๋Š” ์‹œ์ ์— ์ธ์Šคํ„ด์Šค๋ฅผ ์–ป์„ ์ˆ˜ ์—†๊ณ 

2) ์›ํ•˜๋Š” ์‹œ์ ๊นŒ์ง€ ์ธ์Šคํ„ด์Šค ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋‹ค๋Š” ๋ณด์žฅ์„ ๋ฐ›์ง€ ๋ชปํ•˜๊ธฐ๋•Œ๋ฌธ์—

Ondemand Instance ๋Œ€๋น„ ๊ฐ€๊ฒฉ์ด ์ €๋ ดํ•˜๋‹ค.

 


๐Ÿ’ก Amazon Elastic Beanstalk

๊ฐœ๋ฐœํ•œ ์ฝ”๋“œ๋ฅผ ์—…๋กœ๋“œํ•˜๋ฉด ์ž๋™์œผ๋กœ auto scaling, load balancing ๋ฐ ์–ดํ”Œ๋ฆฌ์ผ€์ด์…˜์„ ๋ฐฐํฌํ•˜๋Š” PasS์„ฑ ์„ฑ๊ฒฉ์˜ ์„œ๋น„์Šค

a) ์ด์ 
1. ๊ณ ๊ฐ์‚ฌ๋Š” ๊ฐœ๋ฐœ์—๋งŒ ์ง‘์ค‘ํ•˜์—ฌ ๋น ๋ฅธ ์„œ๋น„์Šค๋ฅผ ๊ตฌ์ถ• ๋ฐ ๋ฐฐํฌํ•  ์ˆ˜ ์žˆ์Œ
2. ๊ธ€๋กœ๋ฒŒ ์ปค๋ฒ„๋ฆฌ์ง€: ์„ธ๊ณ„ ๊ฐ๊ตญ์— ์„ค์น˜๋˜์–ด์žˆ๋Š” AWS ์„œ๋น„์Šค ์„ผํ„ฐ๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœ ๊ธ€๋กœ๋ฒŒ ์„œ๋น„์Šค ๋ฐฐํฌ
3. ์‚ฌ์šฉ์ž ์ฆ๊ฐ์— ๋”ฐ๋ฅธ ์‹œ์Šคํ…œ ์œ ์—ฐ์„ฑ

b) ์ด์šฉ์‚ฌ๋ก€

Samsung Printing App Center

 


๐Ÿ’ก AWS Cloud ์†Œ๊ฐœ์˜์ƒ

https://youtube.com/playlist?list=PL8T9YlLKfEg7tbOQh7cDIQ8pHvRDXnrr1

 

AWS CLOUD Intro (2016)

 

www.youtube.com

 

๋ฐ˜์‘ํ˜•

๊ณต์œ 

๋Œ“๊ธ€