15E. ElastiCache Memcached ํด๋ฌ์คํฐ์ ์บ์ ๋ ธ๋ ์ถ๊ฐํ๊ธฐ
15E. ElastiCache Memcached ํด๋ฌ์คํฐ์ ์บ์ ๋ ธ๋ ์ถ๊ฐํ๊ธฐ ๊ด๋ จ

์์ฑ๋ Memcached ํด๋ฌ์คํฐ์ ์บ์ ๋ ธ๋๋ฅผ ์ถ๊ฐํด๋ณด๊ฒ ์ต๋๋ค. Memcached ํด๋ฌ์คํฐ์ ์บ์ ๋ ธ๋๋ฅผ ์ถ๊ฐํ๋ฉด ๋ฐ์ดํฐ๋ฅผ ์ ์ฅํ ์ ์๋ ๊ณต๊ฐ์ด ๋์ด๋ฉ๋๋ค.

[Amazon ElastiCache]
โ [Cache Clusters]
)์์ Memcached ํด๋ฌ์คํฐ(examplememcached
)์ 1 nodes ๋งํฌ๋ฅผ ํด๋ฆญํ์ฌ ์บ์ ๋
ธ๋ ๋ชฉ๋ก์ผ๋ก ์ด๋ํฉ๋๋ค.Memcached ํด๋ฌ์คํฐ(examplememcached
)์ ์บ์ ๋
ธ๋ ๋ชฉ๋ก์ด ํ์๋ฉ๋๋ค.

[Add Node]
๋ฒํผ์ ํด๋ฆญํฉ๋๋ค.Memcached ํด๋ฌ์คํฐ์ ์บ์ ๋ ธ๋๋ฅผ ์ถ๊ฐํฉ๋๋ค.
- Number of nodes to add: ์ถ๊ฐํ ์บ์ ๋ ธ๋์ ๊ฐ์์ ๋๋ค. 1๊ฐ๋ฅผ ์ถ๊ฐํ ๊ฒ์ด๋ฏ๋ก 1์ ์ ๋ ฅํฉ๋๋ค.
- Apply immediately: ์บ์ ๋ ธ๋๋ฅผ ์ฆ์ ์ถ๊ฐํ๋ ์ต์ ์ ๋๋ค. ์ด๊ฒ์ ์ฒดํฌํ์ง ์์ผ๋ฉด Maintenance Window์ ์ค์ ํ ์๊ฐ์ ์บ์ ๋ ธ๋๊ฐ ์ถ๊ฐ๋ฉ๋๋ค. ์ฆ์ ์์ฑํ ๊ฒ์ด๋ฏ๋ก ์ฒดํฌํฉ๋๋ค.

[Yes, Add]
๋ฒํผ์ ํด๋ฆญํฉ๋๋ค.
Memcached ํด๋ฌ์คํฐ์ ์บ์ ๋ ธ๋๊ฐ ์์ ํ ์ถ๊ฐ๋์์ต๋๋ค.

์๋ก ์ถ๊ฐํ ์บ์ ๋
ธ๋์ ํ
๋ท์ผ๋ก ์ ์ํ์ฌ stats
๋ช
๋ น์ ์
๋ ฅํฉ๋๋ค.
examplememcached.o5nouc.0002.apne1.cache.amazonaws.com
๋ ์ ๊ฐ ์์ฑํ ์บ์ ๋
ธ๋ ์๋ํฌ์ธํธ ์ฃผ์์
๋๋ค. ์ฌ๋ฌ๋ถ๋ค์ด ์์ฑํ ์บ์ ๋
ธ๋์ ์๋ํฌ์ธํธ ์ฃผ์๋ฅผ ์
๋ ฅํ๊ธฐ ๋ฐ๋๋๋ค.telnet examplememcached.o5nouc.0002.apne1.cache.amazonaws.com 11211
#
# stats
# STAT pid 1
# STAT uptime 1593
# STAT time 1399985143
# STAT version 1.4.14
# STAT libevent 1.4.13-stable
# STAT pointer_size 64
# STAT rusage_user 0.000000
# STAT rusage_system 0.008000
# STAT curr_connections 5
# STAT total_connections 33
# STAT connection_structures 6
# STAT reserved_fds 5
# ์๋ต...
์ ์์ด ๋์ง ์๋๋ค๋ฉด Security Group์ ํฌํธ ๋ฒํธ๋ฅผ ์ ์์ ์ผ๋ก ์ ๋ ฅํ์๋์ง, '15.4 ElastiCache Memcached ํด๋ฌ์คํฐ Security Group ์์ฑ ๋ฐ ์ค์ ํ๊ธฐ'์์ Security Group์ ์์ฑํ๊ณ ์ฌ์ฉํ๋๋ก ์ค์ ํ์๋์ง, ํ ๋ท ์ ์์์ ์๋ํฌ์ธํธ ์ฃผ์์ ํฌํธ ๋ฒํธ๋ฅผ ์ ํํ๊ฒ ์ ๋ ฅํ์๋์ง, EC2 ์ธ์คํด์ค๊ฐ ๊ฐ์ VPC์ ์ํด ์๋์ง ํ์ธํฉ๋๋ค. ์์์ ์ค๋ช ํ ๊ฒ์ฒ๋ผ ElastiCache์ ์บ์ ๋ ธ๋๋ AWS ์ธ๋ถ์์ ์ ์ํ ์ ์์ต๋๋ค.