[Hyper-V] [Open Stack] [Controller Node] โ‘ฃ Memcached ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ

2023. 9. 29. 06:00ใ†System ์ž‘์—…์‹ค/Server ๊ด€๋ จ

728x90
๋ฐ˜์‘ํ˜•

 

 

 

 

 

 

 

 

OpenStack for Architects - Second Edition Paperback

COUPANG

www.coupang.com

"์ด ํฌ์ŠคํŒ…์€ ์ฟ ํŒก ํŒŒํŠธ๋„ˆ์Šค ํ™œ๋™์˜ ์ผํ™˜์œผ๋กœ, ์ด์— ๋”ฐ๋ฅธ ์ผ์ •์•ก์˜ ์ˆ˜์ˆ˜๋ฃŒ๋ฅผ ์ œ๊ณต๋ฐ›์Šต๋‹ˆ๋‹ค."

 

 




๐Ÿ—‚ ๋ชฉ์ฐจ

1. [Hyper-V] [Open Stack] Open Stack์ด๋ž€?
2. [Hyper-V] [Open Stack] [Controller Node] Hyper-V ๊ตฌ์„ฑ ๋ฐ Ubuntu 22.04.3 LTS Server ์„ค์น˜
3. [Hyper-V] [Open Stack] [Controller Node] โ‘  ์˜คํ”ˆ์Šคํƒ ํŒจํ‚ค์ง€ ์„ค์น˜
4. [Hyper-V] [Open Stack] [Controller Node] โ‘ก NTP Server ๊ตฌ์„ฑ
5. [Hyper-V] [Open Stack] [Controller Node] โ‘ข RabbitMQ - Message Queue ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ
6. [Hyper-V] [Open Stack] [Controller Node] โ‘ฃ Memcached ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ
7. [Hyper-V] [Open Stack] [Controller Node] โ‘ค Etcd ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ
8. [Hyper-V] [Open Stack] [Controller Node] โ‘ฅ Keystone - Identity ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ
9. [Hyper-V] [Open Stack] [Controller Node] โ‘ฆ Image Service - Glance ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ  
10. [Hyper-V] [Open Stack] [Controller Node] โ‘ง Compute Service - Nova ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ
11. [Hyper-V] [Open Stack] [Contoller Node] โ‘จ Neutron - Network ์„œ๋น„์Šค ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ
12. [Hyper-V] [Open Stack] [Controller Node] โ‘ โ“ช Horizon - Dashboard ์„œ๋น„์Šค ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ

11. [Hyper-V] [Open Stack] [Compute Node] ์ค€๋น„์ค‘

 

 

 

 

๐Ÿš€ Controller Node ๊ตฌ์„ฑ

    ๐Ÿ”ฝ ๊ฐœ์š”

์ฃผ๋‹ˆ์˜ ์˜คํ”ˆ์Šคํƒ ๊ตฌ์„ฑ๋„

 

        ๐Ÿ“ฆ ์†Œ๊ฐœ

์ด๋ฒˆ์—๋Š” Memcached๋ผ๋Š” ๊ฒƒ์„ ์„ค์น˜ํ•˜๊ณ , ๊ตฌ์„ฑํ•ด ๋ณด๋ ค๊ณ  ํ•ด์š”.

์„œ๋น„์Šค๋ฅผ ์œ„ํ•œ Identity ์„œ๋น„์Šค ์ธ์ฆ Mechanism(๋ฉ”์ปค๋‹ˆ์ฆ˜)์—์„œ๋Š” Token(ํ† ํฐ) Caching(์บ์‹ฑ)ํ•˜๊ธฐ ์œ„ํ•ด Memcached๋ฅผ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ์–ด์š”.

Memcached ์„œ๋น„์Šค๋Š” ๋ณดํ†ต ์ปจํŠธ๋กค๋Ÿฌ ๋…ธ๋“œ์—์„œ ๋™์ž‘ํ•˜๊ฒŒ ๋œ๋‹ต๋‹ˆ๋‹ค. ํ”„๋กœ๋•์…˜ ๋ฐฐํฌ์—์„œ๋Š” ํ•ด๋‹น ๊ตฌ์„ฑ ์š”์†Œ์— ๋Œ€ํ•œ ๋ณด์•ˆ์„ ์œ„ํ•ด ๋ฐฉํ™”๋ฒฝ, ์ธ์ฆ ๋ฐ ์•”ํ˜ธํ™”์˜ ์กฐํ•ฉ์„ ํ™œ์„ฑํ™”ํ•˜๋Š” ๊ฒƒ์ด ์ข‹์•„์š”.

 

 

    ๐Ÿ”ฝ ๊ตฌ์„ฑ ์š”์†Œ ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ

       ๐Ÿ“ฆ ๊ตฌ์„ฑ ์š”์†Œ ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ

apt install memcached python3-memcache

728x90


์ตœ์ดˆ ์œ„ ๋ช…๋ น์–ด๋ฅผ ํ†ตํ•ด ํŒจํ‚ค์ง€ ์„ค์น˜๋ฅผ ์ง„ํ–‰ํ•ด ์ค๋‹ˆ๋‹ค.


vim /etc/memcached.conf ๋ณ€๊ฒฝ ์ „


35๋ฒˆ์งธ ์ค„์— ๋‚ด์šฉ์„ ์ปจํŠธ๋กค๋Ÿฌ ๋…ธ๋“œ์—์„œ ๋‚ด๋ถ€ ํ†ต์‹  ์šฉ๋„๋กœ ์‚ฌ์šฉํ•˜๋Š” IP์ฃผ์†Œ๋ฅผ ์ž‘์„ฑํ•ด ์ฃผ์–ด์•ผ ํ•ด์š”.
์ด๋ฅผ ํ†ตํ•ด ๊ด€๋ฆฌ ๋„คํŠธ์›Œํฌ๋ฅผ ํ†ตํ•ด ๋‹ค๋ฅธ ๋…ธ๋“œ์— ๋Œ€ํ•œ ์ ‘๊ทผ ํ™œ์„ฑํ™”๋ฅผ ๊ตฌ์„ฑํ•  ์ˆ˜ ์žˆ์–ด์š”.

vim /etc/memcached.conf ๋ณ€๊ฒฝ ๋’ค


์œ„์™€ ๊ฐ™์ด ๋ณ€๊ฒฝํ•ด ์ฃผ์—ˆ์–ด์š”.

์ €์žฅํ•˜๊ณ , ๋‚˜์™€์ค๋‹ˆ๋‹ค.


unlink /etc/nginx/sites-enabled/default


๊ทธ๋Ÿฐ ๋’ค ์œ„ ๋ช…๋ น์–ด๋กœ Nginx ๊ธฐ๋ณธ ์‚ฌ์ดํŠธ๋ฅผ ํ•ด์ œํ•ด ์ฃผ์—ˆ์–ด์š”.


docker restart {Docker ID}


์ฃผ๋‹ˆ๋Š” Mariadb๋ฅผ ๋”ฐ๋กœ ๊ตฌ์„ฑํ–ˆ๊ณ , ๋„์ปค๋ฅผ ์ด์šฉํ•ด์„œ ๊ตฌ์„ฑํ–ˆ๊ธฐ ๋•Œ๋ฌธ์— ์œ„์™€ ๊ฐ™์ด ์žฌ ์‹œ์ž‘ํ•ด ์ฃผ์—ˆ์–ด์š”.


systemctl restart rabbitmq-server memcached nginx; systemctl enable rabbitmq-server memcached nginx

๋ฐ˜์‘ํ˜•


์œ„์™€ ๊ฐ™์ด ์„œ๋น„์Šค๋ฅผ ์žฌ์‹œ์ž‘ ํ•ด์ค๋‹ˆ๋‹ค.

 

 

 

 

Openstack Essentials Second Edition Paperback

COUPANG

www.coupang.com

"์ด ํฌ์ŠคํŒ…์€ ์ฟ ํŒก ํŒŒํŠธ๋„ˆ์Šค ํ™œ๋™์˜ ์ผํ™˜์œผ๋กœ, ์ด์— ๋”ฐ๋ฅธ ์ผ์ •์•ก์˜ ์ˆ˜์ˆ˜๋ฃŒ๋ฅผ ์ œ๊ณต๋ฐ›์Šต๋‹ˆ๋‹ค."

 

 

 

 

๐Ÿง ์ฐธ๊ณ  ์ž๋ฃŒ

 

OpenStack Docs: Memcached

Memcached ์„œ๋น„์Šค๋ฅผ ์œ„ํ•œ Identity ์„œ๋น„์Šค ์ธ์ฆ ๋ฉ”์ปค๋‹ˆ์ฆ˜์—์„œ๋Š” ํ† ํฐ์„ ์บ์‹ฑํ•˜๊ธฐ ์œ„ํ•ด Memcached๋ฅผ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค. Memcached ์„œ๋น„์Šค๋Š” ๋ณดํ†ต ์ปจํŠธ๋กค๋Ÿฌ ๋…ธ๋“œ์—์„œ ๋™์ž‘ํ•ฉ๋‹ˆ๋‹ค. ํ”„๋กœ๋•์…˜ ๋ฐฐํฌ์—์„œ๋Š” ํ•ด๋‹น ๊ตฌ์„ฑ์š”

docs.openstack.org

 

 

 

 

728x90
๋ฐ˜์‘ํ˜•