AWS HA Load Balancing

Contents

  • Amazon Elastic Load Balancing

  • Amazon Auto Scaling

  • ELB ๋ฐ Auto Scaling ๊ตฌ์ถ•ํ•˜๊ธฐ

Useful Informations

  1. Amazon Elastic Load Balancing์€ ํ™•์žฅ์„ฑ, ์„ฑ๋Šฅ ๋ฐ ๋ณด์•ˆ์„ ๋ณด์žฅํ•˜์—ฌ application์˜ ๋‚ด๊ฒฐํ•จ์„ฑ์„ ํ™•๋ณดํ•  ์ˆ˜ ์žˆ๋‹ค

    • ELB๋Š” ๋‹จ์ผ ๊ฐ€์šฉ ์˜์—ญ ๋˜๋Š” ์—ฌ๋Ÿฌ ๊ฐ€์šฉ ์˜์—ญ์—์„œ ๋‹ค์–‘ํ•œ application์˜ ๋ถ€ํ•˜๋ฅผ ์ฒ˜๋ฆฌํ•  ์ˆ˜ ์žˆ๋‹ค

  2. ELB๋Š” application์˜ ์š”๊ตฌ ์‚ฌํ•ญ์— ๋”ฐ๋ผ ์ ์ ˆํ•œ Load Balancer๋ฅผ ์„ ํƒํ•  ์ˆ˜ ์žˆ๋‹ค

    • ์œ ์—ฐํ•œ application ๊ด€๋ฆฌ๊ฐ€ ํ•„์š”ํ•œ ๊ฒฝ์šฐ Application Load Balancer๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ์ด ์ข‹์Œ

    • Application์— ํƒ์›”ํ•œ ์„ฑ๋Šฅ ๋ฐ ๊ณ ์ • IP๊ฐ€ ํ•„์š”ํ•œ ๊ฒฝ์šฐ Network Load Balancer๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ์ด ์ข‹์Œ

    • ๊ธฐ์กด application์ด EC2-Classic Network ๋‚ด์— ๊ตฌ์ถ•๋˜์–ด ์žˆ๋Š” ๊ฒฝ์šฐ Classic Load Balancer๋ฅผ ์‚ฌ์šฉํ•ด์•ผ ํ•จ

Amazon Elastic Load Balancing

ํ™•์žฅ์„ฑ, ์„ฑ๋Šฅ ๋ฐ ๋ณด์•ˆ์„ ๋ณด์žฅํ•˜์—ฌ application์˜ ๋‚ด๊ฒฐํ•จ์„ฑ ํ™•๋ณด

  • Elastic Load Balancing์€ ๋“ค์–ด์˜ค๋Š” application traffic์„ Amazon EC2 instance, container, IP address, Lambda function๊ณผ ๊ฐ™์€ ์—ฌ๋Ÿฌ ๋Œ€์ƒ์— ์ž๋™์œผ๋กœ ๋ถ„์‚ฐ์‹œํ‚ด

  • ELB๋Š” ๋‹จ์ผ ๊ฐ€์šฉ ์˜์—ญ ๋˜๋Š” ์—ฌ๋Ÿฌ ๊ฐ€์šฉ ์˜์—ญ์—์„œ ๋‹ค์–‘ํ•œ application ๋ถ€ํ•˜๋ฅผ ์ฒ˜๋ฆฌํ•  ์ˆ˜ ์žˆ์Œ

  • ELB๊ฐ€ ์ œ๊ณตํ•˜๋Š” ์„ธ ๊ฐ€์ง€ Load Balancer๋Š” ๋ชจ๋‘ application์˜ ๋‚ด๊ฒฐํ•จ์„ฑ์— ํ•„์š”ํ•œ HA (High Availability), ์ž๋™ ํ™•์žฅ/์ถ•์†Œ, ๊ฐ•๋ ฅํ•œ ๋ณด์•ˆ์„ ๊ฐ–์ถ”๊ณ  ์žˆ์Œ

Amazon Elastic Load Balancing ์‚ฌ๋ก€

1. Application ๋‚ด๊ฒฐํ•จ์„ฑ ํ–ฅ์ƒ

  • ELB๋Š” ๋Œ€์ƒ (Amazon EC2 instance, container, IP address, Lambda function)๊ณผ ์—ฌ๋Ÿฌ ๊ฐ€์šฉ ์˜์—ญ์— traffic์„ ์ž๋™์œผ๋กœ ๋ถ„์‚ฐ์‹œํ‚ค๋Š” ๋™์‹œ์— ์ •์ƒ ์ƒํƒœ์ธ ๋Œ€์ƒ๋งŒ traffic์„ ์ˆ˜์‹ ํ•˜๋„๋ก ํ•จ์œผ๋กœ์จ application์˜ ๋‚ด๊ฒฐํ•จ์„ฑ์„ ์ œ๊ณตํ•จ

  • ๋‹จ์ผ ๊ฐ€์šฉ ์˜์—ญ์˜ ๋ชจ๋“  ๋Œ€์ƒ์ด ์ •์ƒ ์ƒํƒœ๊ฐ€ ์•„๋‹ ๊ฒฝ์šฐ, ELB๋Š” ๋‹ค๋ฅธ ๊ฐ€์šฉ ์˜์—ญ์— ์žˆ๋Š” ์ •์ƒ ์ƒํƒœ์ธ ๋Œ€์ƒ์œผ๋กœ traffic์„ routing ํ•จ

  • ๋Œ€์ƒ์ด ์ •์ƒ ์ƒํƒœ๋กœ ๋ณต๊ตฌ๋˜๋ฉด Load Balancing์€ ์ž๋™์œผ๋กœ ์›๋ž˜ ๋Œ€์ƒ์œผ๋กœ ์žฌ๊ฐœ๋จ

2. Container์‹ application์˜ ์ž๋™ Load Balancing

  • Elastic Load Balancing์˜ ํ–ฅ์ƒ๋œ Container ์ง€์›์„ ํ†ตํ•ด ๋™์ผํ•œ Amazon EC2 instance์˜ ์—ฌ๋Ÿฌ port์—์„œ Load Balancing์ด ๊ฐ€๋Šฅํ•จ

  • ์™„์ „ ๊ด€๋ฆฌํ˜• container ์ƒํ’ˆ์„ ์ œ๊ณตํ•˜๋Š” Amazon EC2 Container Service (ECS) ์™€์˜ ์™„๋ฒฝํ•œ ํ†ตํ•ฉ๋„ ํ™œ์šฉํ•  ์ˆ˜ ์žˆ์Œ

  • Service๋ฅผ Load Balancer์— ๋“ฑ๋กํ•˜๊ธฐ๋งŒ ํ•˜๋ฉด ECS๋Š” Docker COntainer ์˜ ๋“ฑ๋ก ๋ฐ ๋“ฑ๋ก ์ทจ์†Œ๋ฅผ ํˆฌ๋ช…ํ•˜๊ฒŒ ๊ด€๋ฆฌํ•จ

  • Load Balancer๋Š” port๋ฅผ ์ž๋™์œผ๋กœ ํƒ์ง€ํ•˜์—ฌ ๋™์ ์œผ๋กœ ์Šค์Šค๋กœ๋ฅผ ์žฌ๊ตฌ์„ฑํ•จ

3. Application ์ž๋™ ์กฐ์ •

  • Elastic Load Balancing์€ ๊ณ ๊ฐ์˜ ์ˆ˜์š”์— ๋งž์ถฐ application์ด ํ™•์žฅ/์ถ•์†Œ ํ•  ์ˆ˜ ์žˆ๋‹ค๋Š” ํ™•์‹ ์„ ์ œ๊ณตํ•จ

  • Amazon EC2 instance ์ค‘ ํ•˜๋‚˜์˜ ์ง€์—ฐ ์‹œ๊ฐ„์ด ์‚ฌ์ „ ์ •์˜๋œ ์ž„๊ณ„์น˜๋ฅผ ์ดˆ๊ณผํ•˜๋ฉด Amazon Ec2 instance์˜ Auto Scaling ์„ trigger ํ•˜๋Š” ๊ธฐ๋Šฅ์„ ํ†ตํ•ด application์ด ํ•ญ์ƒ ๋‹ค์Œ ๊ณ ๊ฐ ์š”์ฒญ์„ ์ฒ˜๋ฆฌํ•  ์ค€๋น„๋ฅผ ๊ฐ–์ถ”๊ฒŒ ๋จ

4. Amazon Virtual Private Cloud (Amazon VPC)์—์„œ์˜ Elastic Load Balancing ์‚ฌ์šฉ

  • Elastic Load Balancing์„ ์‚ฌ์šฉํ•˜๋ฉด ์†์‰ฝ๊ฒŒ VPC๋กœ ๊ฐ€๋Š” ์ธํ„ฐ๋„ท ์—ฐ๊ฒฐ ์ง„์ž…์ ์„ ๋งŒ๋“ค๊ฑฐ๋‚˜ VPC ๋‚ด application tier ๊ฐ„์— ์š”์ฒญ traffic์„ routing์„ ํ•  ์ˆ˜ ์žˆ์Œ

  • Load Balancer์— ๋ณด์•ˆ ๊ทธ๋ฃน์„ ํ• ๋‹นํ•ด ํ—ˆ์šฉ๋œ source ๋ชฉ๋ก์— ๋Œ€ํ•ด ์–ด๋–ค port๋ฅผ ์—ด ๊ฒƒ์ธ์ง€ ์ œ์–ดํ•  ์ˆ˜ ์žˆ์Œ

  • Elastic Load Balancing์€ VPC์™€ ํ†ตํ•ฉ๋˜๋ฏ€๋กœ ๊ธฐ์กด์˜ ๋ชจ๋“  Network ACL (Access Control List)์™€ routing table์ด ์ถ”๊ฐ€ Network ์ œ์–ด๋ฅผ ๊ณ„์† ์ œ๊ณตํ•จ

  • VPC์—์„œ Load Balancer๋ฅผ ๋งŒ๋“ค ๋•Œ Load Balancer๋ฅผ Internet์— ์—ฐ๊ฒฐํ• ์ง€ (์ด๊ฒŒ ๊ธฐ๋ณธ๊ฐ’) or ๋‚ด๋ถ€์—์„œ ์‚ฌ์šฉํ• ์ง€ ์ง€์ • ๊ฐ€๋Šฅ

    • ๋‚ด๋ถ€์—์„œ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ์„ ์„ ํƒํ•˜๋ฉด Load Balancer์— ์—ฐ๊ฒฐํ•˜๊ธฐ ์œ„ํ•œ Internet gateway๊ฐ€ ํ•„์š”ํ•˜์ง€ ์•Š์œผ๋ฉฐ Load Balancer์˜ DNS(Domain Name System) record์—์„œ Load Balancer์˜ ์‚ฌ์„ค IP ์ฃผ์†Œ๊ฐ€ ์‚ฌ์šฉ๋จ

5. Elastic Load Balancing์„ ์‚ฌ์šฉํ•œ Hybrid Load Balancing

  • Elastic Load Balancing์€ ๊ฐ™์€ Load Balancer๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ AWS์™€ On-premise resource ์ „์ฒด์— Load Balancing์„ ํ•  ์ˆ˜ ์žˆ๋Š” ๊ธฐ๋Šฅ์„ ์ œ๊ณตํ•จ

  • ex) AWS์™€ On-premise resource ๋ชจ๋‘์— application traffic์„ ๋ถ„์‚ฐ์‹œ์ผœ์•ผ ํ•˜๋Š” ๊ฒฝ์šฐ, ๋ชจ๋“  resource๋ฅผ ๊ฐ™์€ ๋Œ€์ƒ ๊ทธ๋ฃน์— ๋“ฑ๋กํ•˜๊ณ  ํ•ด๋‹น ๋Œ€์ƒ ๊ทธ๋ฃน์„ Load Balancer์— ์—ฐ๊ฒฐํ•˜๋ฉด ๋จ

  • AWS์— ํ•˜๋‚˜์˜ Load Balancer์™€ On-premise resource์— ๋‹ค๋ฅธ Load Balancer, ์ฆ‰ ๋‘ ๊ฐœ์˜ Load Balancer๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ AWS ์™€ On-premise resource ์ „์ฒด์—์„œ DNS ๊ธฐ๋ฐ˜ ๊ฐ€์ค‘์น˜ Load Balancing์„ ์‚ฌ์šฉํ•  ์ˆ˜๋„ ์žˆ์Œ

  • Hybrid Load Balancing์„ ์‚ฌ์šฉํ•˜์—ฌ ํ•˜๋‚˜๋Š” VPC์— ์žˆ๊ณ  ๋‹ค๋ฅธ ํ•˜๋‚˜๋Š” On-premise ์œ„์น˜์— ์žˆ๋Š” ๋ณ„๊ฐœ์˜ application์„ ํ™œ์šฉํ•  ์ˆ˜๋„ ์žˆ์Œ

  • VPC ๋Œ€์ƒ์„ ํ•˜๋‚˜์˜ ๋Œ€์ƒ ๊ทธ๋ฃน์— ๋„ฃ๊ณ  On-premise ๋Œ€์ƒ์„ ๋˜ ๋‹ค๋ฅธ ๋Œ€์ƒ ๊ทธ๋ฃน์— ๋„ฃ์€ ํ›„ content based routing ์„ ์‚ฌ์šฉํ•˜์—ฌ traffic์„ ๊ฐ ๋Œ€์ƒ ๊ทธ๋ฃน์œผ๋กœ routing ํ•  ์ˆ˜ ์žˆ์Œ

6. HTTP(S)๋ฅผ ํ†ตํ•ด Lambda function ํ˜ธ์ถœ

  • Elastic Load Balancing์€ HTTP(S)์š”์ฒญ ์„œ๋น„์Šค๋ฅผ ์œ„ํ•œ Lambda function ํ˜ธ์ถœ์„ ์ง€์›ํ•จ

    • ์‚ฌ์šฉ์ž๋Š” web browser๋ฅผ ํฌํ•จํ•˜์—ฌ HTTP client์—์„œ serverless application์— access ํ•  ์ˆ˜ ์žˆ์Œ

  • Lambda function์„ ๋Œ€์ƒ์œผ๋กœ ๋“ฑ๋กํ•˜๊ณ  Application Load Balancer์˜ content based routing ๊ทœ์น™์— ๋Œ€ํ•œ ์ง€์›์„ ํ™œ์šฉํ•˜์—ฌ ์š”์ฒญ์„ ๋‹ค๋ฅธ lambda function์œผ๋กœ routing ํ•  ์ˆ˜ ์žˆ์Œ

  • Server or Serverless application์„ ์‚ฌ์šฉํ•˜๋Š” application์— ๋Œ€ํ•ด Application Load Balancer๋ฅผ ๊ณตํ†ต HTTP End Point๋กœ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Œ

  • Lambda function์„ ์‚ฌ์šฉํ•˜์—ฌ web site ์ „์ฒด๋ฅผ ๊ตฌ์ถ•ํ•˜๊ฑฐ๋‚˜ EC2 instance, container, On-premise server ๋ฐ Lambda function์„ ๊ฒฐํ•ฉํ•˜์—ฌ application์„ ๋งŒ๋“ค ์ˆ˜ ์žˆ์Œ

Amazon Elastic Load Balancing ๊ธฐ๋Šฅ

  1. ๊ณ ๊ฐ€์šฉ์„ฑ

    : ELB๋Š” traffic์„ ๋‹จ์ผ ๊ฐ€์šฉ ์˜์—ญ ๋˜๋Š” ์—ฌ๋Ÿฌ ๊ฐ€์šฉ ์˜์—ญ์— ์žˆ๋Š” ์—ฌ๋Ÿฌ ๋Œ€์ƒ(Amazon EC2 instance, container, IP address) ์— ์ž๋™์œผ๋กœ ๋ถ„์‚ฐํ•จ

  2. ์ƒํƒœ ํ™•์ธ

    : ELB๋Š” ๋น„์ •์ƒ ๋Œ€์ƒ์„ ๊ฐ์ง€ํ•˜๊ณ , ํ•ด๋‹น ๋Œ€์ƒ์œผ๋กœ traffic ์ „์†ก์„ ์ค‘๋‹จํ•œ ๋‹ค์Œ, ๋‚˜๋จธ์ง€ ์ •์ƒ ๋Œ€์ƒ์œผ๋กœ load๋ฅผ ๋ถ„์‚ฐ ํ•  ์ˆ˜ ์žˆ์Œ

  3. ๋ณด์•ˆ ๊ธฐ๋Šฅ

    • Amazon Virtual Private Cloud(VPC)๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด Load Balancer์™€ ์—ฐ๊ฒฐ๋œ ๋ณด์•ˆ ๊ทธ๋ฃน์„ ์ƒ์„ฑ ๋ฐ ๊ด€๋ฆฌํ•˜์—ฌ ์ถ”๊ฐ€ ๋„คํŠธ์›Œํ‚น ๋ฐ ๋ณด์•ˆ option์„ ์ œ๊ณตํ•  ์ˆ˜ ์žˆ์Œ

    • ์ธํ„ฐ๋„ท์„ ์‚ฌ์šฉํ•˜์ง€ ์•Š๊ณ  ๋‚ด๋ถ€ Load Balancer๋ฅผ ์ƒ์„ฑ ํ•  ์ˆ˜๋„ ์žˆ์Œ

  4. TLS (Transport Layer Security) ์ข…๋ฃŒ

    : ELB๋Š” ํ†ตํ•ฉ ์ธ์ฆ์„œ ๊ด€๋ฆฌ ๋ฐ SSL (Secure Socket Layer) ์™€ TLS ๋ณตํ˜ธํ™”๋ฅผ ์ง€์›ํ•˜๋ฏ€๋กœ ์œ ์—ฐํ•˜๊ฒŒ Load Balancer์˜ SSL ์„ค์ •์„ ์ค‘์•™์—์„œ ๊ด€๋ฆฌํ•˜๊ณ  application์˜ CPU ์ง‘์•ฝ์ ์ธ ์ž‘์—…์„ ์ค„์ผ ์ˆ˜ ์žˆ์Œ

  5. Layer 4 or Layer 7 Load Balancing

    : Layer 7 ์ „์šฉ ๊ธฐ๋Šฅ์— ๋Œ€ํ•ด HTTP/HTTPS application์„ Load Balancing ํ•˜๊ฑฐ๋‚˜ TCP (Transmission Control Protocol) or UDP (User Datagram Protocol) ๋ฅผ ํ™œ์šฉํ•˜๋Š” application์— ๋Œ€ํ•ด ์—„๊ฒฉํ•œ Layer 4 balancing์„ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Œ

  6. Monitoring

    : ELB๋Š” application ์„ฑ๋Šฅ์„ ์‹ค์‹œ๊ฐ„์œผ๋กœ monitoring ํ•  ์ˆ˜ ์žˆ๋„๋ก Amazon CloudWatch ์ง€ํ‘œ ๋ฐ ์š”์ฒญ ์ถ”์ ๊ณผ ํ†ตํ•ฉ์„ ์ œ๊ณตํ•จ

ELB ์ œํ’ˆ

Application ์š”๊ตฌ ์‚ฌํ•ญ์— ๋”ฐ๋ผ ์ ์ ˆํ•œ Load Balancer๋ฅผ ์„ ํƒ ํ•  ์ˆ˜ ์žˆ์Œ

  • Application Load Balancer

    : ์œ ์—ฐํ•œ application ๊ด€๋ฆฌ๊ฐ€ ํ•„์š”ํ•œ ๊ฒฝ์šฐ

    • ์š”์ฒญ ์ˆ˜์ค€ (Layer 7)์—์„œ ์ž‘๋™ํ•˜๋Š” Application Load Balancer๋Š” ์š”์ฒญ์˜ content์— ๋”ฐ๋ผ EC2 instance, container, IP address, Lambda function ๋“ฑ์˜ ๋Œ€์ƒ์œผ๋กœ traffic์„ routing ํ•จ

    • HTTP ๋ฐ HTTPS traffic์˜ ๊ณ ๊ธ‰ Load Balancing์— ์ ํ•ฉํ•œ Application Load Balancer๋Š” Micro service์™€ container based application์„ ๋น„๋กฏํ•œ ์ตœ์‹  application architecture ์ „๋‹ฌ์„ ์œ„ํ•œ ๊ณ ๊ธ‰ ์š”์ฒญ ๋ผ์šฐํŒ… ๊ธฐ๋Šฅ์„ ์ œ๊ณตํ•จ

      • Application Load Balancer๋Š” client์™€ load balancer ๊ฐ„ HTTPS ์ข…๋ฃŒ๋ฅผ ์ง€์›ํ•จ

      • AWS Identity and Access Management(IAM) ๋ฐ AWS Certificate Manager์˜ ์‚ฌ์ „ ์ •์˜๋œ ๋ณด์•ˆ ์ •์ฑ…์„ ํ†ตํ•ด SSL ์ธ์ฆ์„œ ๊ด€๋ฆฌ๋„ ์ œ๊ณตํ•จ

    • Application Load Balancer๋Š” ํ•ญ์ƒ ์ตœ์‹  SSL/TLS ์•”ํ˜ธ ๋ฐ protocol์ด ์‚ฌ์šฉ๋˜๋„๋ก ํ•˜์—ฌ application์˜ ๋ณด์•ˆ์„ ๊ฐ„์†Œํ™”ํ•˜๊ณ  ๊ฐœ์„ ํ•จ

    • SNI (์„œ๋ฒ„ ์ด๋ฆ„ ํ‘œ์‹œ)

      • SNI๋Š” TLS handshake ์‹œ์ž‘ ์‹œ client๊ฐ€ ์—ฐ๊ฒฐํ•  host ์ด๋ฆ„์„ ํ‘œ์‹œํ•˜๋Š” TLS protocol์— ๋Œ€ํ•œ ํ™•์žฅ ํ”„๋กœ๊ทธ๋žจ์ด๋‹ค

      • Load Balancer๋Š” ๊ฐ™์€ ๋ณด์•ˆ listener๋ฅผ ํ†ตํ•ด ์—ฌ๋Ÿฌ ๊ฐœ์˜ ์ธ์ฆ์„œ๋ฅผ ์ œ์‹œํ•  ์ˆ˜ ์žˆ์œผ๋ฏ€๋กœ ๋‹จ์ผ ๋ณด์•ˆ listener๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์—ฌ๋Ÿฌ๊ฐœ์˜ ๋ณด์•ˆ web site๋ฅผ ์ง€์›ํ•˜๋„๋ก ํ•  ์ˆ˜ ์žˆ์Œ

      • Application Load Balancer๊ฐ€ SNI๋ฅผ ์‚ฌ์šฉํ•œ ์Šค๋งˆํŠธ ์ธ์ฆ์„œ ์„ ํƒ ์•Œ๊ณ ๋ฆฌ์ฆ˜์„ ์ง€์›ํ•จ

      • Client๊ฐ€ ํ‘œ์‹œํ•˜๋Š” host ์ด๋ฆ„์ด ์—ฌ๋Ÿฌ ์ธ์ฆ์„œ์™€ ์ผ์น˜ํ•  ๊ฒฝ์šฐ Load Balancer๊ฐ€ client์˜ ๊ธฐ๋Šฅ์„ ํฌํ•จํ•œ ์—ฌ๋Ÿฌ ์š”์†Œ๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœ ์‚ฌ์šฉํ•  ์ตœ์ ์˜ ์ธ์ฆ์„œ๋ฅผ ๊ฒฐ์ •ํ•จ

    • IP์ฃผ์†Œ๋ฅผ ๋Œ€์ƒ์œผ๋กœ ์‚ฌ์šฉ

      • Application back-end์˜ IP ์ฃผ์†Œ๋ฅผ ๋Œ€์ƒ์œผ๋กœ ์‚ฌ์šฉํ•˜์—ฌ AWS ๋˜๋Š” On-premise์— hosting ๋œ application์„ load balancing ํ•  ์ˆ˜ ์žˆ์Œ

        • => Instance์˜ ๋ชจ๋“  IP ์ฃผ์†Œ ๋ฐ interface์— hosting ๋œ application back-end๋กœ load balancing ํ•  ์ˆ˜ ์žˆ์Œ

      • ๊ฐ™์€ instance์— hosting ๋œ ๊ฐ application์€ ์—ฐ๊ฒฐ๋œ ๋ณด์•ˆ ๊ทธ๋ฃน์„ ๊ฐ€์งˆ ์ˆ˜ ์žˆ๊ณ , ๊ฐ™์€ port๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Œ

      • IP ์ฃผ์†Œ๋ฅผ ๋Œ€์ƒ์œผ๋กœ ์‚ฌ์šฉํ•˜์—ฌ On-premise (Direct Connect or VPN), pairing ๋œ VPC ๋ฐ EC2-Classic (ClassicLink ์‚ฌ์šฉ)์— hosting ๋œ application์„ load balancing ํ•  ์ˆ˜ ์žˆ์Œ

      • AWS์™€ On-premise resource์— ๊ฑธ์ณ load balancing ํ•  ์ˆ˜ ์žˆ๋Š” ๊ธฐ๋Šฅ์€ Cloud๋กœ migration ๋˜๋Š” cloud๋กœ busting ํ•˜๊ฑฐ๋‚˜ cloud๋กœ ์žฅ์•  ์กฐ์น˜ํ•˜๋Š”๋ฐ ๋„์›€์ด ๋จ

    • Lambda ํ•จ์ˆ˜๋ฅผ ๋Œ€์ƒ์œผ๋กœ ์‚ฌ์šฉ

      • Application Load Balancer์—์„œ HTTP request๋ฅผ ์ฒ˜๋ฆฌํ•˜๋Š” Lambda function์„ ํ˜ธ์ถœํ•˜์—ฌ web browser๋ฅผ ํฌํ•จํ•œ ๋ชจ๋“  HTTP client์—์„œ serverless application์— ๋Œ€ํ•œ ์‚ฌ์šฉ์ž access๋ฅผ ์ œ๊ณต ํ•  ์ˆ˜ ์žˆ์Œ

      • Lambda function์„ Load balancer์˜ ๋Œ€์ƒ์œผ๋กœ ๋“ฑ๋กํ•˜๊ณ  content ๊ธฐ๋ฐ˜ routing ๊ทœ์น™์— ๋Œ€ํ•œ ์ง€์›์„ ํ†ตํ•˜์—ฌ ์š”์ฒญ์„ ๋‹ค๋ฅธ Lambda ํ•จ์ˆ˜๋กœ routing ํ•  ์ˆ˜ ์žˆ์Œ

      • Server ๋ฐ serverless computing์„ ์‚ฌ์šฉํ•˜๋Š” application์— ๋Œ€ํ•ด application load balancer๋ฅผ ๊ณตํ†ต HTTP end point๋กœ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Œ

  • Network Load Balancer

    : Application์— ํƒ์›”ํ•œ ์„ฑ๋Šฅ ๋ฐ ๊ณ ์ • IP๊ฐ€ ํ•„์š”ํ•œ ๊ฒฝ์šฐ

    • ์—ฐ๊ฒฐ ์ˆ˜์ค€(Layer 4)์—์„œ ์ž‘๋™ํ•˜๋Š” Network Load Balancer๋Š” IP ํ”„๋กœํ† ์ฝœ ๋ฐ์ดํ„ฐ๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœ Amazon Virtual Private Cloud(VPC) ๋‚ด์˜ ๋Œ€์ƒ์œผ๋กœ ์—ฐ๊ฒฐ์„ routing ํ•จ

    • TCP ๋ฐ UDP traffic ๋ชจ๋‘์˜ Load balancing์— ์ ํ•ฉํ•œ Network Load Balancer๋Š” ๋งค์šฐ ์งง์€ ์ง€์—ฐ์‹œ๊ฐ„์„ ์œ ์ง€ํ•˜๋ฉด์„œ ์ดˆ๋‹น ์ˆ˜๋ฐฑ๋งŒ๊ฐœ์˜ ์š”์ฒญ์„ ์ฒ˜๋ฆฌํ•  ์ˆ˜ ์žˆ์Œ

    • Network Load Balancer๋Š” ๊ฐ€์šฉ ์˜์—ญ๋‹น ํ•˜๋‚˜์˜ ์ •์  IP address๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด์„œ ๊ฐ‘์ž‘์Šค๋Ÿฝ๊ณ  ๋ณ€๋™์ด ์‹ฌํ•œ traffic pattern์„ ์ฒ˜๋ฆฌํ•˜๋Š”๋ฐ ์ตœ์ ํ™” ๋˜์—ˆ์Œ

    • Auto Scaling, Amazon EC2 Container Service(ECS), Amazon CloudFormation, ๋ฐ AWS Certificate Manager(ACM) ๊ณผ ๊ฐ™์€ ๋‹ค๋ฅธ AWS service์™€ ํ†ตํ•ฉ๋จ

    • ๊ณ ๊ฐ€์šฉ์„ฑ

      • Load Balancer๋Š” ๋“ฑ๋ก๋œ ๋Œ€์ƒ์˜ ์ƒํƒœ๋ฅผ monitoringํ•˜๊ณ  ์ •์ƒ ๋Œ€์ƒ์œผ๋กœ๋งŒ traffic์„ routing ํ•จ

    • ๋†’์€ ์ฒ˜๋ฆฌ๋Ÿ‰

      • Network Load Balancer๋Š” traffic ์ฆ๊ฐ€๋ฅผ ์ฒ˜๋ฆฌํ•  ์ˆ˜ ์žˆ๋„๋ก ์„ค๊ณ„๋˜์—ˆ์œผ๋ฉฐ ์ดˆ๋‹น ์ˆ˜๋ฐฑ๋งŒ ๊ฐœ์˜ ์š”์ฒญ์„ load balancing ํ•  ์ˆ˜ ์žˆ์Œ

      • ๊ฐ‘์ž‘์Šค๋กญ๊ณ  ๋ณ€๋™์ด ์‹ฌํ•œ traffic pattern ๋„ ์ฒ˜๋ฆฌํ•  ์ˆ˜ ์žˆ์Œ

    • ์งง์€ ์ง€์—ฐ์‹œ๊ฐ„

    • Source IP address์œ ์ง€

      • Client ์ธก source IP๋ฅผ ์œ ์ง€ํ•˜๋ฏ€๋กœ back-end๊ฐ€ client์˜ IP ์ฃผ์†Œ๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Œ

      • ๊ทธ๋Ÿฐ ๋‹ค์Œ ์ถ”๊ฐ€ ์ฒ˜๋ฆฌ๋ฅผ ์œ„ํ•ด application์—์„œ ์ด๋ฅผ ์‚ฌ์šฉ ํ•  ์ˆ˜ ์žˆ์Œ

    • ์ •์  IP ์ง€์›

      • Application์ด load balancer์˜ front-end IP๋กœ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋Š” ๊ฐ€์šฉ ์˜์—ญ (subnet)๋ณ„๋กœ ์ •์  IP๋ฅผ ์ž๋™์œผ๋กœ ์ œ๊ณตํ•จ

    • ํƒ„๋ ฅ์  IP ์ง€์›

      • ๊ฐ€์šฉ ์˜์—ญ(subnet) ๋ณ„๋กœ ํƒ„๋ ฅ์  IP๋ฅผ ์ง€์ •ํ•˜์—ฌ ์ž์ฒด ๊ณ ์ • IP๋ฅผ ์ œ๊ณตํ•  ์ˆ˜ ์žˆ๋Š” option์ด ์ œ๊ณต๋จ

    • TLS (Transport Layer Security) Offload

      • Client์™€ Load balancer ๊ฐ„ TLS ์ข…๋ฃŒ๋ฅผ ์ง€์›

      • Network Load Balancer์—์„œ TLS๊ฐ€ ์ข…๋ฃŒ๋˜๋”๋ผ๋„ ์›๋ณธ IP๋Š” ๊ณ„์† back-end application์— ๋ณด์กด๋จ

    • ์ƒํƒœ ํ™•์ธ

      • Network ๋ฐ application ๋Œ€์ƒ ๋‘˜ ๋‹ค์— ๋Œ€ํ•œ ์ƒํƒœ ํ™•์ธ์„ ์ง€์›ํ•จ

      • ๋น ๋ฅธ ์ง„๋‹จ๊ณผ ๊ฐ•๋ ฅํ•œ debugging์„ ์œ„ํ•ด ์ƒํƒœ ํ™•์ธ์— ๋Œ€ํ•œ ์™„์ „ํ•œ ๊ฐ€์‹œ์„ฑ๊ณผ ์žฅ์• ๊ฐ€ ๋ฐœ์ƒํ•˜๋Š” ์ด์œ ๊ฐ€ Network Load Balancer API์˜ 'reason codes' ๊ณผ ๋Œ€์ƒ ์ƒํƒœ ํ™•์ธ์— ์—ฐ๊ฒฐ๋œ Amazon CloudWatch ์ง€ํ‘œ๋ฅผ ํ†ตํ•ด ์ œ๊ณต๋จ

    • DNS ์žฅ์•  ์กฐ์น˜

      • Network Load Balancer์— ๋“ฑ๋ก๋œ ์ •์ƒ ๋Œ€์ƒ์ด ์—†๊ฑฐ๋‚˜ ํ•ด๋‹น ์˜์—ญ์˜ Network Load Balancer Node๊ฐ€ ๋น„์ •์ƒ์ธ ๊ฒฝ์šฐ, Amazon Route 53์ด ๋‹ค๋ฅธ ๊ฐ€์šฉ ์˜์—ญ์— ์žˆ๋Š” Load Balancer node๋กœ traffic์„ ๋ณด๋ƒ„

    • Amazon Route 53๊ณผ์˜ ํ†ตํ•ฉ

      • Network Load Balancer๊ฐ€ ์‘๋‹ตํ•˜์ง€ ์•Š๋Š” ๊ฒฝ์šฐ, Route 53๊ณผ์˜ ํ†ตํ•ฉ์ด server์—์„œ ์‚ฌ์šฉํ•  ์ˆ˜ ์—†๋Š” Load Balancer IP ์ฃผ์†Œ๋ฅผ ์ œ๊ฑฐํ•˜๊ณ  traffic์„ ๋‹ค๋ฅธ region์— ์žˆ๋Š” ๋Œ€์ฒด Load Balancer๋กœ ๋ณด๋ƒ„

    • AWS service์™€ ํ†ตํ•ฉ

    • ์ˆ˜๋ช…์ด ๊ธด TCP ์—ฐ๊ฒฐ

      • Network Load Balancer๋Š” WebSocket ์œ ํ˜•์˜ application์— ์ ํ•ฉํ•œ ์ˆ˜๋ช…์ด ๊ธด TCP ์—ฐ๊ฒฐ์„ ์ง€์›ํ•จ

  • Classic Load Balancer

    : ๊ธฐ์กด application์ด EC2-Classic Network ๋‚ด์— ๊ตฌ์ถ•๋˜์–ด ์žˆ๋Š” ๊ฒฝ์šฐ

    • Classic Load Balancer๋Š” ์—ฌ๋Ÿฌ Amazon EC2 instance์—์„œ ๊ธฐ๋ณธ์ ์ธ load balancing์„ ์ œ๊ณตํ•˜๋ฉฐ, ์š”์ฒญ ์ˆ˜์ค€ ๋ฐ ์—ฐ๊ฒฐ ์ˆ˜์ค€์—์„œ ์ž‘๋™ํ•จ

    • EC2-Classic Network ๋‚ด์— ๊ตฌ์ถ•๋œ application ์šฉ

    • Virtual Private Cloud(VPC) ๋ฅผ ์‚ฌ์šฉํ•  ๋•Œ

      • Layer 7 - Application Load Balancer

      • Layer 4 - Network Load Balancer

    • ๊ณ ๊ฐ€์šฉ์„ฑ

      • ์ˆ˜์‹ ๋˜๋Š” application traffic์— ๋Œ€์‘ํ•˜์—ฌ ์š”์ฒญ ์ฒ˜๋ฆฌ ์šฉ๋Ÿ‰์„ ์ž๋™์œผ๋กœ ์กฐ์ •ํ•จ

    • ์ƒํƒœ ํ™•์ธ (Monitoring)

      • Classic Load Balancer๋Š” Amazon EC2 instance์˜ ์ƒํƒœ๋ฅผ ๊ฐ์ง€ ํ•  ์ˆ˜ ์žˆ์Œ

      • ๋น„์ •์ƒ EC2 instance๋ฅผ ๊ฐ์ง€ํ•œ ๊ฒฝ์šฐ, ๋” ์ด์ƒ ํ•ด๋‹น instance๋กœ traffic์„ routing ํ•˜์ง€ ์•Š๊ณ  ์ •์ƒ instance ์ „์ฒด๋กœ load ๋ฅผ ๋ถ„๋ฐฐํ•จ

    • ๋ณด์•ˆ ๊ธฐ๋Šฅ

      • Amazon Virtual Private Cloud (VPC)๋ฅผ ์‚ฌ์šฉํ•  ๊ฒฝ์šฐ Classic Load Balancer์™€ ์—ฐ๊ฒฐ๋œ ๋ณด์•ˆ ๊ทธ๋ฃน์„ ์ƒ์„ฑ ๋ฐ ๊ด€๋ฆฌํ•˜์—ฌ ์ถ”๊ฐ€ Networking ๋ฐ ๋ณด์•ˆ ์˜ต์…˜์„ ์ œ๊ณตํ•  ์ˆ˜ ์žˆ์Œ

      • Public IP address ์—†์ด Classic Load Balancer๋ฅผ ์ƒ์„ฑํ•˜์—ฌ Internet์— ์—ฐ๊ฒฐ๋˜์ง€ ์•Š์€ ๋‚ด๋ถ€ Load Balancer๋กœ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Œ

    • SSL (Secure Socket Layer) Off Load

      • SSL ๋ณตํ˜ธํ™” off load

      • ์ค‘์•™ ์ง‘์ค‘์‹ SSL ์ธ์ฆ์„œ ๊ด€๋ฆฌ

      • Public key ์ธ์ฆ์„ ์‚ฌ์šฉํ•œ back-end instance ์•”ํ˜ธํ™”

      • ์œ ์—ฐํ•œ ์•”ํ˜ธ ์ง€์›์„ ์‚ฌ์šฉํ•˜๋ฉด load balancer๊ฐ€ client์—๊ฒŒ ์ œ๊ณตํ•˜๋Š” ์•”ํ˜ธ ๋ฐ protocol์„ ์ œ์–ดํ•  ์ˆ˜ ์žˆ์Œ

    • ๊ณ ์ • ์„ธ์…˜

      • ์ฟ ํ‚ค๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์‚ฌ์šฉ์ž session์„ ํŠน์ • EC2 instance์— ๊ณ ์ •์‹œํ‚ค๋Š” ๊ธฐ๋Šฅ ์ง€์›

      • ์‚ฌ์šฉ์ž๊ฐ€ application์— accessํ•˜๋Š” ๋™์•ˆ traffic์€ ๋™์ผํ•œ instance๋กœ routing ๋จ

    • IPv6 ์ง€์›

      • Classic Load Balancer๋Š” EC2-Classic Network์—์„œ Internet protocol version 4 & 6 ๋ชจ๋‘ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋„๋ก ์ง€์›ํ•จ

    • Layer 4 & Layer 7 Load Balancing

      • HTTP/HTTPS application์„ load balancing ํ•˜๊ณ  X-Forwarded ๋ฐ ๊ณ ์ • session ๊ณผ ๊ฐ™์€ Layer 7 ์ „์šฉ ๊ธฐ๋Šฅ์„ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Œ

      • TCP protocol ๋งŒ ์‚ฌ์šฉํ•˜๋Š” application์— ๋Œ€ํ•ด ์—„๊ฒฉํ•œ Layer 4 load balancing์„ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Œ

    • ์šด์˜ Monitoring

    • Logging

      • Access log ๊ธฐ๋Šฅ์„ ์‚ฌ์šฉํ•˜์—ฌ load balancer๋กœ ์ „์†ก๋œ ์š”์ฒญ์„ ๋ชจ๋‘ ๊ธฐ๋กํ•˜๊ณ  ์ดํ›„ ๋ถ„์„์„ ์œ„ํ•ด Amazon S3์— log๋ฅผ ์ €์žฅํ•จ

      • Log๋Š” application ์žฅ์•  ์ง„๋‹จ ๋ฐ web traffic ๋ถ„์„์— ์œ ์šฉํ•จ

      • AWS CloudTrail ์„ ์‚ฌ์šฉํ•˜์—ฌ ์‚ฌ์šฉ์ž ๊ณ„์ •์— ๋Œ€ํ•œ Classic Load Balancer API ํ˜ธ์ถœ์„ ๊ธฐ๋กํ•˜๊ณ  log ํŒŒ์ผ์„ ์ „๋‹ฌํ•  ์ˆ˜ ์žˆ์Œ

      • API ํ˜ธ์ถœ ๊ธฐ๋ก์„ ์‚ฌ์šฉํ•˜๋ฉด ๋ณด์•ˆ ๋ถ„์„ resource ๋ณ€๊ฒฝ ์‚ฌํ•ญ ์ถ”์ , ๊ทœ์ • ์ค€์ˆ˜ ๊ฐ์‚ฌ๋ฅผ ์ˆ˜ํ–‰ํ•  ์ˆ˜ ์žˆ์Œ

ELB Services

Elastic Load Balancing์€ ๋‹ค์Œ ์„œ๋น„์Šค๋ฅผ ํ†ตํ•ด application์˜ ๊ฐ€์šฉ์„ฑ ๋ฐ ํ™•์žฅ์„ฑ์„ ๊ฐœ์„ ํ•จ

1. Amazon EC2

: Cloud ์—์„œ application์„ ์‹คํ–‰ํ•˜๋Š” ๊ฐ€์ƒ ์„œ๋ฒ„

  • Load Balancer ๋ฅผ ๊ตฌ์„ฑํ•˜์—ฌ EC2 instance traffic์„ routing ํ•  ์ˆ˜ ์žˆ์Œ

2. Amazon EC2 Auto Scaling

: Instance์— ์žฅ์• ๊ฐ€ ๋ฐœ์ƒํ•˜๋”๋ผ๋„ ์›ํ•˜๋Š” ์ˆ˜์˜ instance๋ฅผ ์‹คํ–‰ํ•˜๊ณ  instance์˜ ์ˆ˜์š”๊ฐ€ ๋ณ€๊ฒฝ๋˜๋ฉด ์ž๋™์œผ๋กœ instance ์ˆ˜๋ฅผ ๋Š˜๋ฆฌ๊ฑฐ๋‚˜ ์ค„์ผ ์ˆ˜ ์žˆ๊ฒŒ ํ•ด์คŒ

  • ELB์™€ ํ•จ๊ป˜ Auto Scaling์„ ํ™œ์„ฑํ™”ํ•˜๋Š” ๊ฒฝ์šฐ,

    • Auto Scaling์ด ์‹œ์ž‘ํ•œ instance๋Š” ์ž๋™์œผ๋กœ load balancer์— ๋“ฑ๋ก๋จ

    • Auto Scaling์ด ์ข…๋ฃŒํ•˜๋Š” instance๋Š” ์ž๋™์œผ๋กœ load balancer์—์„œ ๋“ฑ๋ก ์ทจ์†Œ๋จ

3. AWS Certificate Manager

: HTTP listener๋ฅผ ์ƒ์„ฑํ•  ๋•Œ ACM์—์„œ ์ œ๊ณตํ•œ ์ธ์ฆ์„œ๋ฅผ ์ง€์ •ํ•  ์ˆ˜ ์žˆ์Œ

  • Load Balancer๋Š” ์ธ์ฆ์„œ๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์—ฐ๊ฒฐ์„ ์ข…๋ฃŒํ•˜๊ณ  client์˜ ์š”์ฒญ์„ ์•”ํ˜ธํ™” ํ•ด์ œํ•จ

4. Amazon CloudWatch

: Load Balancer๋ฅผ Monitoringํ•˜๊ณ  ํ•„์š”์— ๋”ฐ๋ผ ์กฐ์น˜๋ฅผ ์ทจํ•  ์ˆ˜ ์žˆ๊ฒŒ ํ•ด์คŒ

5. Amazon EC2

  • EC2 instance cluster์—์„œ Docker container๋ฅผ ์‹คํ–‰, ์ค‘๋‹จ ๋ฐ ๊ด€๋ฆฌ ๊ฐ€๋Šฅํ•จ

  • Load Balancer๋ฅผ ๊ตฌ์„ฑํ•˜์—ฌ container์— traffic์„ routing ํ•  ์ˆ˜ ์žˆ์Œ

6. Route 53

  • ๋„๋ฉ”์ธ ์ด๋ฆ„ (ex. <www.example.com)์„> computer๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์„œ๋กœ ์—ฐ๊ฒฐํ•ด์ฃผ๋Š” ์ˆซ์ž๋กœ ๋œ IP ์ฃผ์†Œ (ex. 192.0.2.1) ๋กœ ๋ณ€ํ™˜ํ•˜์—ฌ ๋ฐฉ๋ฌธ์ž๋ฅผ ์•ˆ์ •์ ์ด๋ฉฐ, ๋น„์šฉ ํšจ์œจ์ ์œผ๋กœ web site๋กœ routing ํ•˜๋„๋ก ํ•จ

  • AWS๋Š” load balancer์™€ ๊ฐ™์€ ์‚ฌ์šฉ์ž์˜ AWS resource์— URL์„ ๋ฐฐ์ •ํ•จ

7. AWS WAF

: Application Load Balancer์™€ ํ•จ๊ป˜ AWS WAF๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ Web ACL (Access Control List)์˜ ๊ทœ์น™์— ๋”ฐ๋ผ ์š”์ฒญ์„ ํ—ˆ์šฉํ•˜๊ฑฐ๋‚˜ ์ฐจ๋‹จํ•  ์ˆ˜ ์žˆ์Œ

Amazon Auto Scaling

  • Amazon EC2 Auto Scaling์„ ํ†ตํ•ด application์˜ load๋ฅผ ์ฒ˜๋ฆฌํ•  ์ˆ˜ ์žˆ๋Š” ์ •ํ™•ํ•œ ์ˆ˜์˜ Amazon EC2 instance๋ฅผ ๋ณด์œ ํ•˜๋„๋ก ๋ณด์žฅํ•  ์ˆ˜ ์žˆ์Œ

  • Auto Scaling Group ์ด๋ผ๋Š” EC2 instance ๋ชจ์Œ์„ ์ƒ์„ฑํ•จ

  • ๊ฐ Auto Scaling Group์˜ ์ตœ์†Œ/์ตœ๋Œ€ instance ์ˆ˜๋ฅผ ์ง€์ •ํ•  ์ˆ˜ ์žˆ์Œ

  • ์›ํ•˜๋Š” ์šฉ๋Ÿ‰์„ ์ง€์ •ํ•œ ๊ฒฝ์šฐ group์„ ์ƒ์„ฑํ•œ ๋‹ค์Œ์—๋Š” ์–ธ์ œ๋“ ์ง€ Amazon EC2 Auto Scaling์—์„œ ํ•ด๋‹น ๊ทธ๋ฃน์—์„œ ์ด๋งŒํผ์˜ instance๋ฅผ ๋ณด์œ ํ•  ์ˆ˜ ์žˆ์Œ

  • ์กฐ์ • ์ •์ฑ…์„ ์ง€์ •ํ–ˆ๋‹ค๋ฉด Amazon EC2 Auto Scaling์—์„œ๋Š” application ์˜ ๋Š˜์–ด๋‚˜๊ฑฐ๋‚˜ ์ค„์–ด๋“œ๋Š” ์ˆ˜์š”์— ๋”ฐ๋ผ instance๋ฅผ ์‹œ์ž‘ํ•˜๊ฑฐ๋‚˜ ์ข…๋ฃŒํ•  ์ˆ˜ ์žˆ์Œ

Amazon Auto Scaling ํ•ต์‹ฌ ๊ตฌ์„ฑ ์š”์†Œ

1. Group

  • EC2 instance๋Š” group์— ์ •๋ฆฌ๋˜์–ด ์กฐ์ • ๋ฐ ๊ด€๋ฆฌ ๋ชฉ์ €๊ทธ์ด ๋…ผ๋ฆฌ์  ๋‹จ์œ„๋กœ ์ฒ˜๋ฆฌํ•  ์ˆ˜ ์žˆ์Œ

  • Group์„ ์ƒ์„ฑํ•  ๋•Œ EC2 instance ์˜ ์ตœ์†Œ ๋ฐ ์ตœ๋Œ€ instance ์ˆ˜์™€ ์›ํ•˜๋Š” instance ์ˆ˜๋ฅผ ์ง€์ •ํ•  ์ˆ˜ ์žˆ์Œ

2. ๊ตฌ์„ฑ ๋ฐ Template

  • Group์€ ์‹œ์ž‘ template ๋˜๋Š” ์‹œ์ž‘ ๊ตฌ์„ฑ์„ EC2 instance์— ๋Œ€ํ•œ ๊ตฌ์„ฑ template์œผ๋กœ ์‚ฌ์šฉํ•จ

  • Instance์˜ AMI (Amazon Machine Image) ID, Instance ์œ ํ˜•, key pair, security group, block device mapping ๋“ฑ์˜ ์ •๋ณด๋ฅผ ์ง€์ •ํ•  ์ˆ˜ ์žˆ์Œ

3. ์กฐ์ • Option

  • ex) ์ง€์ •ํ•œ ์กฐ๊ฑด์˜ ๋ฐœ์ƒ (๋™์  ํ™•์žฅ) ๋˜๋Š” ์ผ์ •์— ๋”ฐ๋ผ ์กฐ์ •ํ•˜๋„๋ก group์„ ๊ตฌ์„ฑ ํ•  ์ˆ˜ ์žˆ์Œ

ELB ๋ฐ Auto Scaling ๊ตฌ์ถ•ํ•˜๊ธฐ

  1. VPC ๊ตฌ์ถ•

  2. ELB Target Group ์ƒ์„ฑ

  3. Auto Scaling ์‹œ์ž‘ ๊ตฌ์„ฑ ์ƒ์„ฑ

  4. Auto Scaling Group ์ƒ์„ฑ

  5. ELB ์ƒ์„ฑ

Summary

: Amazon ELB (Elastic Load Balancing) ์ด ์ œ๊ณตํ•˜๋Š” ์„ธ ๊ฐ€์ง€ load balancer์ธ Application Load Balancer, Network Load Balancer, Classic Load Balancer๋Š” ๋ชจ๋‘ application์˜ ๋‚ด๊ฒฐํ•จ์„ฑ์— ํ•„์š”ํ•œ ๊ณ ๊ฐ€์šฉ์„ฑ, ์ž๋™ ํ™•์žฅ/์ถ•์†Œ, ๊ฐ•๋ ฅํ•œ ๋ณด์•ˆ ์„ ๊ฐ–์ถ”๊ณ  ์žˆ๋‹ค.

Last updated