Banner

My Tech Blog (์„œ๋ฒ„)

์˜ค๋Š˜์˜ ๋ช…์–ธ
ยท AWS
1. Cross-Zone Load Balancing๊ต์ฐจ ์˜์—ญ ๋กœ๋“œ ๋ฐธ๋Ÿฐ์‹ฑ์€ ๋กœ๋“œ ๋ฐธ๋Ÿฐ์„œ๊ฐ€ ๊ฐ€์šฉ ์˜์—ญ(AZ)์— ์ƒ๊ด€์—†์ด ๋ชจ๋“  ์ธ์Šคํ„ด์Šค์— ํŠธ๋ž˜ํ”ฝ์„ ๊ท ๋“ฑํ•˜๊ฒŒ ๋ถ„๋ฐฐํ•˜๋Š” ๊ธฐ๋Šฅ์ด๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด, ํ•œ์ชฝ ๊ฐ€์šฉ ์˜์—ญ์— EC2 ์ธ์Šคํ„ด์Šค 2๊ฐœ, ๋‹ค๋ฅธ ์ชฝ ๊ฐ€์šฉ ์˜์—ญ์— 8๊ฐœ๊ฐ€ ์žˆ๋‹ค๋ฉด, ์ผ๋ฐ˜์ ์œผ๋กœ ํŠธ๋ž˜ํ”ฝ์€ ์ธ์Šคํ„ด์Šค ๊ฐœ์ˆ˜์— ๋”ฐ๋ผ ๋‚˜๋‰œ๋‹ค. ํ•˜์ง€๋งŒ ๊ต์ฐจ ์˜์—ญ ๋กœ๋“œ ๋ฐธ๋Ÿฐ์‹ฑ์„ ์‚ฌ์šฉํ•˜๋ฉด, ๋ชจ๋“  ์ธ์Šคํ„ด์Šค๊ฐ€ ๋™์ผํ•œ ์–‘์˜ ํŠธ๋ž˜ํ”ฝ์„ ๋ฐ›๋Š”๋‹ค.With Cross Zone Load Balancing:each load balancer instance distributes evenly  across all registered instances in all AZ์ž‘๋™ ๋ฐฉ์‹ํด๋ผ์ด์–ธํŠธ๊ฐ€ ๋กœ๋“œ ๋ฐธ๋Ÿฐ์„œ(ALB)์— ํŠธ๋ž˜ํ”ฝ์„ ๋ณด๋‚ธ๋‹ค.๊ฐ ๋กœ๋“œ ๋ฐธ๋Ÿฐ์„œ ์ธ์Šคํ„ด์Šค๋Š” ๋ชจ๋“  ๊ฐ€์šฉ..
ยท AWS
1. Sticky Sessions (Session Affinity)๊ณ ์ • ์„ธ์…˜ ๋˜๋Š” ์„ธ์…˜ ๋ฐ€์ ‘์„ฑIt is possible to implement stickiness so that the same client is alwyas redirected to the same instance behind a load balancerThis works for Classic Load Balancers & Application Load BalancersThe "cookie" used for stickiness has an expiration date you control Use case: make sure the user doesn't lose his session dataEnabling stickiness may bri..
ยท AWS
1. Gateway Load Balancerโ–  deploy, scale, and manage a fleet of 3rd party network virtual appliances in AWS๋ฐฐํฌ ๋ฐ ํ™•์žฅ๊ณผ AWS์˜ ํƒ€์‚ฌ ๋„คํŠธ์›Œํฌ์˜ ๊ฐ€์ƒ ์–ดํ”Œ๋ผ์ด์–ธ์Šค ํ”Œ๋ฆฟ ๊ด€๋ฆฌ์— ์‚ฌ์šฉ๋œ๋‹ค.โ–  Example: Firewalls, Intrusion Detection and Prevention Systems, Deep Packet Inspection Systems, payload manipulationGWLB์˜ ์—ญํ• ์€ ํŠธ๋ž˜ํ”ฝ์„ ๋ฐฉํ™”๋ฒฝ์ด๋‚˜ ์นจ์ž… ํƒ์ง€ ์‹œ์Šคํ…œ(์–ดํ”Œ๋ผ์ด์–ธ์Šค)๋กœ ์ „๋‹ฌํ•˜๋Š” ๊ฒƒ์ด๋‹ค.โ–  Operates at Layer 3 (Network Layer) - IP Packets ๋ชจ๋“  ๋กœ๋“œ ๋ฐธ๋Ÿฐ์„œ๋ณด๋‹ค ๋‚ฎ์€ ์ˆ˜์ค€์—์„œ ์‹คํ–‰๋œ๋‹ค. - I..
1. ์„œ๋ฒ„ ์ด์ค‘ํ™”(Duplication, Duplex) ์„œ๋ฒ„ ์ด์ค‘ํ™”๋Š” ๊ณ ๊ฐ€์šฉ์„ฑ(High Availability, HA)์„ ํ™•๋ณดํ•˜๊ธฐ ์œ„ํ•ด ๋‘ ๋Œ€ ์ด์ƒ์˜ ์„œ๋ฒ„๋ฅผ ๋ฌผ๋ฆฌ์  ๋˜๋Š” ๋…ผ๋ฆฌ์ ์œผ๋กœ ๊ตฌ์„ฑํ•˜๋Š” ๊ธฐ์ˆ ์ด๋‹ค. ์ด๋Š” ์‹œ์Šคํ…œ ์žฅ์•  ๋ฐœ์ƒ ์‹œ, ์„œ๋น„์Šค์˜ ์ค‘๋‹จ ์—†์ด ์ง€์†์ ์ธ ์šด์˜์„ ๋ณด์žฅํ•˜๊ธฐ ์œ„ํ•œ ์ „๋žต์œผ๋กœ, ์ฃผ๋กœ ํด๋Ÿฌ์Šคํ„ฐ๋ง, ๋กœ๋“œ ๋ฐธ๋Ÿฐ์‹ฑ, ๋˜๋Š” ๋ฆฌ๋˜๋˜์‹œ(์ค‘๋ณต ๊ตฌ์„ฑ) ๋ฐฉ์‹์œผ๋กœ ๊ตฌํ˜„๋œ๋‹ค. ์ด์ค‘ํ™” ๋ฐฉ์‹์€ ์ผ๋ฐ˜์ ์œผ๋กœ ํ•œ์ชฝ๋งŒ์ด ๋™์ž‘ํ•˜๋‹ค๊ฐ€ ์žฅ์•  ๋ฐœ์ƒ ์‹œ ๋‹ค๋ฅธ ํ•œ ์ชฝ์ด ๋™์ž‘์„ ์ด์–ด๊ฐ€๋Š” ํ˜•ํƒœ์ด๋‹ค. ๋‹จ, ์ค‘์š”๋„๊ฐ€ ๋‚ฎ์€ ํŠธ๋ž˜ํ”ฝ์ด ํ๋ฅด๋Š” ์žฅ๋น„๋Š” ์ด์ค‘ํ™”๋กœ ์ถฉ๋ถ„ํ•˜์ง€๋งŒ, ์ค‘์š”ํ•œ ๋ฐ์ดํ„ฐ๋ฅผ ์ €์žฅํ•ด์•ผ ํ•˜๋Š” ์„œ๋ฒ„๋‚˜ ์Šคํ† ๋ฆฌ์ง€๋ผ๋ฉด ์‚ผ์ค‘ํ™”, ์‚ฌ์ค‘ํ™”(๋‹ค์ค‘ํ™”)์‹œํ‚ค๊ธฐ๋„ ํ•œ๋‹ค. (์˜ˆ: ์€ํ–‰ ์‹œ์Šคํ…œ ๋“ฑ) ๋ฌผ๋ฆฌ์  ์„œ๋ฒ„ ์ด์ค‘ํ™”๋Š” ๋‘ ๊ฐœ ์ด์ƒ์˜ ๋ฌผ๋ฆฌ์  ์„œ๋ฒ„๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์žฅ์• ๊ฐ€..
์„œ๋ฒ„ ์ด์ค‘ํ™”์™€ ๋ถ„์‚ฐ ์ฒ˜๋ฆฌ๋Š” ๊ณ ๊ฐ€์šฉ์„ฑ๊ณผ ์•ˆ์ •์„ฑ์„ ํ™•๋ณดํ•˜๊ธฐ ์œ„ํ•ด ํ•„์ˆ˜์ ์ด๋‹ค. ๋‹จ์ผ ์„œ๋ฒ„๋กœ๋Š” ๋Œ€๋Ÿ‰์˜ ํŠธ๋ž˜ํ”ฝ๊ณผ ์žฅ์•  ๋ฐœ์ƒ ์‹œ ๋ณต๊ตฌ๋ฅผ ๊ฐ๋‹นํ•  ์ˆ˜ ์—†๊ธฐ ๋•Œ๋ฌธ์—, ๋‹ค์ˆ˜์˜ ์„œ๋ฒ„๋กœ ๋ถ€ํ•˜๋ฅผ ๋ถ„์‚ฐํ•˜๊ณ  ๋ฐฑ์—… ์‹œ์Šคํ…œ์„ ๋งˆ๋ จํ•ด์•ผ ํ•œ๋‹ค. ํŠนํžˆ, ์ด์ปค๋จธ์Šค๋‚˜ ๊ธˆ์œต ์„œ๋น„์Šค์ฒ˜๋Ÿผ ์‹ค์‹œ๊ฐ„ ์ฒ˜๋ฆฌ๊ฐ€ ์ค‘์š”ํ•œ ํ™˜๊ฒฝ์—์„œ๋Š” ์ž๋™ ํ™•์žฅ(Auto Scaling)๊ณผ ๋ฌด์ค‘๋‹จ ์šด์˜์ด ํ•„์ˆ˜์ ์ด๋‹ค.1. ์„œ๋ฒ„ ์ด์ค‘ํ™” (Server Redundancy)์„œ๋ฒ„ ์ด์ค‘ํ™”๋Š” ์žฅ์•  ๋Œ€๋น„(High Availability, HA - ๊ณ ๊ฐ€์šฉ์„ฑ)๋ฅผ ์œ„ํ•œ ๊ฐœ๋…์ด๋‹ค.ํ•˜๋‚˜์˜ ์„œ๋ฒ„๊ฐ€ ๋‹ค์šด๋˜๋”๋ผ๋„ ๋‹ค๋ฅธ ์„œ๋ฒ„๊ฐ€ ๋Œ€์‹  ์—ญํ• ์„ ์ˆ˜ํ–‰ํ•  ์ˆ˜ ์žˆ๋„๋ก ๋ฐฑ์—… ์„œ๋ฒ„๋ฅผ ์ค€๋น„ํ•˜๋Š” ๋ฐฉ์‹์ด๋‹ค.  โœ”๏ธ ์˜ˆ๋ฅผ ๋“ค๋ฉด?DB ์„œ๋ฒ„ ์ด์ค‘ํ™”: Master-Slave ๊ตฌ์กฐ์›น ์„œ๋ฒ„ ์ด์ค‘ํ™”: ๋กœ๋“œ๋ฐธ๋Ÿฐ์„œ + ๋‘ ๊ฐœ์˜ ๋™์ผํ•œ ์›น ์„œ๋ฒ„ โœ”..
ยท AWS
1. Network Load Balancer (v2)Network load balancers (Layer 4) allow to:- Forward TCP & UDP traffic to your instances  - Handle millions of request per seconds- Less latency ~100 ms (vs 400 ms for ALB)NLB has one static IP per AZ, and supports assigning Elastic IP(helpful for whitelisting specific IP)NLB are used for extreme performance, TCP or UDP trafficNot included in the AWS free tier์‹œํ—˜๋ฌธ์ œ์— ๊ณ ์„ฑ..
โš ๏ธ ๋ฌธ์ œ๊ณต์œ ํด๋” ์ ‘์†์ด ์•ˆ ๋˜๋Š” ๋ฌธ์ œ (๋ณ„๋„์˜ ์—๋Ÿฌ๋ฉ”์„ธ์ง€๋Š” ๋œจ์ง€ ์•Š๊ณ  ๊ทธ๋ƒฅ ๋นˆ ์ฐฝ์ด ์—ด๋ฆฌ๋ฉฐ ๋กœ๋”ฉ ์ƒํƒœ๊ฐ€ ๊ณ„์† ๋˜๋Š” ํ˜„์ƒ)๐Ÿง ์›์ธํ•˜๋“œ๋””์Šคํฌ/SSD ์†์ƒ โ†’ ๊ณต์œ  ํด๋”๊ฐ€ ์žˆ๋Š” ๋“œ๋ผ์ด๋ธŒ๊ฐ€ ์†์ƒ๋˜์—ˆ์„ ๊ฐ€๋Šฅ์„ฑ์ด ํผํŒŒ์ผ ์‹œ์Šคํ…œ ์˜ค๋ฅ˜ โ†’ ๊ฐ•์ œ ์ข…๋ฃŒ๋‚˜ ์ „์› ๋ฌธ์ œ๋กœ ์ธํ•ด ํŒŒ์ผ ์‹œ์Šคํ…œ์ด ์†์ƒ๋˜์—ˆ์„ ๊ฐ€๋Šฅ์„ฑ๋„คํŠธ์›Œํฌ ๋“œ๋ผ์ด๋ธŒ ๋ฌธ์ œ โ†’ ๊ณต์œ  ํด๋” ์ ‘๊ทผ ์‹œ ๊ณ„์† ๋กœ๋”ฉ๋œ๋‹ค๋ฉด ๋„คํŠธ์›Œํฌ ์˜ค๋ฅ˜์ผ ์ˆ˜๋„ ์žˆ์Œโšก ํ•ด๊ฒฐ๋ฒ• โœ… 1) ํŒŒ์ผ ํƒ์ƒ‰๊ธฐ ๊ฐ•์ œ ์ข…๋ฃŒ & ์žฌ์‹คํ–‰\Ctrl + Shift + Esc โ†’ ์ž‘์—… ๊ด€๋ฆฌ์ž ์—ด๊ธฐ"Windows ํƒ์ƒ‰๊ธฐ(Explorer)"๋ฅผ ์ฐพ์•„ "์ž‘์—… ๋๋‚ด๊ธฐ"์ž‘์—… ๊ด€๋ฆฌ์ž์—์„œ "ํŒŒ์ผ > ์ƒˆ ์ž‘์—… ์‹คํ–‰" ํด๋ฆญexplorer.exe ์ž…๋ ฅ ํ›„ ์‹คํ–‰โœ” ๋งŒ์•ฝ ํŒŒ์ผ ํƒ์ƒ‰๊ธฐ๊ฐ€ ๋‹ค์‹œ ์—ด๋ฆฌ๋ฉด์„œ ๊ณต์œ  ํด๋” ๋ฌธ์ œ๊ฐ€ ์ง€์†๋œ๋‹ค๋ฉด, ๋””์Šคํฌ ์ƒํƒœ๋ฅผ..
โš ๏ธ ๋ฌธ์ œ(PC ๊ฐ•์ œ ์ข…๋ฃŒ ํ›„ ๋˜๋Š” ์‚ฌ์šฉ์ž ๊ณ„์ • ์•”ํ˜ธ ์„ค์ • ํ›„ - ์ถ”์ •)  ๊ณต์œ  ํด๋” ์„œ๋ฒ„์— ์ ‘์†ํ•  ์ˆ˜ ์—†๋Š” ๋ฌธ์ œํšŒ์‚ฌ์—์„œ ์œˆ๋„์šฐ ํ‚ค๊ฐ€ ์•ˆ ๋ˆŒ๋ ค PC๋ฅผ ๊ฐ•์ œ ์žฌ๋ถ€ํŒ…ํ•œ ํ›„ ๊ณต์œ  ํด๋” ์„œ๋ฒ„์— ์ ‘์†์ด ๋˜์ง€ ์•Š๋Š” ํ˜„์ƒ ์œˆ๋„์šฐ ํ™˜๊ฒฝ์—์„œ ๋„คํŠธ์›Œํฌ ๊ณต์œ ๋ฅผ ํ†ตํ•ด ๋˜๋Š” NAS์™€ ๊ฐ™์€ ๋„คํŠธ์›Œํฌ ๋“œ๋ผ์ด๋ธŒ ํด๋”์— ์ ‘๊ทผํ•˜๋ ค๊ณ  ํ•  ๋•Œ ์•„๋ž˜์™€ ๊ฐ™์€ ๋ฉ”์„ธ์ง€๊ฐ€ ๋œธ    ๐Ÿง ์›์ธ ์ฒ˜์Œ์—๋Š” Windows ๊ณ„์ •์ด๋‚˜ ์•”ํ˜ธ ๋ฌธ์ œ๋ผ๊ณ  ์ƒ๊ฐํ•ด์„œ Microsoft ๋ฉ”์ผ์ฃผ์†Œ๋กœ ์—ฐ๊ฒฐ๋œ ๊ณ„์ •์„ ํ•ด์ œํ–ˆ์œผ๋‚˜ ํšจ๊ณผ ์—†์Œ์—…์ฒด์—์„œ ์ถœ์žฅ์ด๋ผ ์˜คํ›„ ๋Šฆ๊ฒŒ ๊ณ ์ณ์ค„ ์ˆ˜ ์žˆ๋‹ค๊ณ  ํ•ด์„œ ๊ตฌ๊ธ€์—์„œ ์—ด์‹ฌํžˆ ๊ฒ€์ƒ‰ํ•ด์„œ ๊ณ ์น˜๊ฒŒ ๋˜์—ˆ๋‹ค ์œˆ๋„์šฐ ์‹œ์Šคํ…œ์ด ๋ณด์•ˆ์ด ์ทจ์•ฝํ•˜๋‹ค๊ณ  ํŒ๋‹จ๋˜๋Š” ํด๋” ๊ณต์œ ์— ๋Œ€ํ•ด ๊ธฐ๋ณธ์ ์œผ๋กœ ์ฐจ๋‹จ์ด ๋˜์–ด ์žˆ๋Š” ์ƒํƒœ์ด๊ธฐ ๋•Œ๋ฌธ์— ์ด๋Ÿฐ ๊ฒฝ๊ณ ๋ฅผ ๋„์šฐ๊ฒŒ ๋œ๋‹ค. โšก ํ•ด๊ฒฐ๋ฒ•์ ‘์†์ด ๋˜์ง€..
์ƒ๋‹จ์œผ๋กœ