반응형
Openstack에서 서비스의 ID인증 매커니즘은 Memcached를 사용하여 토큰을 캐시한다. 주로 Controller에 설치 되어 운영된다.
PKG Install
[root@controller ~]# yum install memcached python-memcached -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: data.aonenetworks.kr
* centos-ceph-nautilus: data.aonenetworks.kr
* centos-nfs-ganesha28: data.aonenetworks.kr
* centos-openstack-train: data.aonenetworks.kr
* centos-qemu-ev: data.aonenetworks.kr
* extras: data.aonenetworks.kr
* updates: ftp.riken.jp
Resolving Dependencies
--> Running transaction check
---> Package memcached.x86_64 0:1.5.6-1.el7 will be installed
--> Processing Dependency: libevent-2.0.so.5()(64bit) for package: memcached-1.5.6-1.el7.x86_64
---> Package python-memcached.noarch 0:1.58-1.el7 will be installed
--> Running transaction check
---> Package libevent.x86_64 0:2.0.21-4.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==================================================================================================================================================
Package Arch Version Repository Size
==================================================================================================================================================
Installing:
memcached x86_64 1.5.6-1.el7 centos-openstack-train 124 k
python-memcached noarch 1.58-1.el7 centos-openstack-train 38 k
Installing for dependencies:
libevent x86_64 2.0.21-4.el7 base 214 k
Transaction Summary
==================================================================================================================================================
Install 2 Packages (+1 Dependent package)
Total download size: 376 k
Installed size: 1.1 M
Downloading packages:
(1/3): python-memcached-1.58-1.el7.noarch.rpm | 38 kB 00:00:00
(2/3): memcached-1.5.6-1.el7.x86_64.rpm | 124 kB 00:00:00
(3/3): libevent-2.0.21-4.el7.x86_64.rpm | 214 kB 00:00:00
--------------------------------------------------------------------------------------------------------------------------------------------------
Total 554 kB/s | 376 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : libevent-2.0.21-4.el7.x86_64 1/3
Installing : memcached-1.5.6-1.el7.x86_64 2/3
Installing : python-memcached-1.58-1.el7.noarch 3/3
Verifying : python-memcached-1.58-1.el7.noarch 1/3
Verifying : libevent-2.0.21-4.el7.x86_64 2/3
Verifying : memcached-1.5.6-1.el7.x86_64 3/3
Installed:
memcached.x86_64 0:1.5.6-1.el7 python-memcached.noarch 0:1.58-1.el7
Dependency Installed:
libevent.x86_64 0:2.0.21-4.el7
Complete!
Config 수정
[root@controller ~]# vi /etc/sysconfig/memcached
PORT="11211"
USER="memcached"
MAXCONN="1024"
CACHESIZE="64"
#OPTIONS="-l 127.0.0.1,::1" ##아래와 같이 추가 또는 변경한다.
OPTIONS="-l 127.0.0.1,::1,controller"
Daemon 시작
[root@controller ~]# systemctl enable memcached.service
Created symlink from /etc/systemd/system/multi-user.target.wants/memcached.service to /usr/lib/systemd/system/memcached.service.
[root@controller ~]# systemctl restart memcached.service
[root@controller ~]# systemctl status memcached.service
● memcached.service - memcached daemon
Loaded: loaded (/usr/lib/systemd/system/memcached.service; enabled; vendor preset: disabled)
Active: active (running) since 목 2019-10-31 17:30:44 KST; 4s ago
Main PID: 7810 (memcached)
CGroup: /system.slice/memcached.service
└─7810 /usr/bin/memcached -p 11211 -u memcached -m 64 -c 1024 -l 127.0.0.1,::1,ibcontroller
10월 31 17:30:44 ibcontroller systemd[1]: Started memcached daemon.
반응형
'IT > Openstack' 카테고리의 다른 글
[Openstack - Train] Centos에 설치하기(2) - Keystone (0) | 2019.11.01 |
---|---|
[Openstack - Train] Centos에 설치하기(1) - etcd설정 (0) | 2019.10.31 |
[Openstack - Train] Centos에 설치하기(1) - Rabbitmq 설정 (0) | 2019.10.31 |
[Openstack - Train] Centos에 설치하기(1) - SQL Database Install (0) | 2019.10.31 |
[Openstack - Train] Centos에 설치하기(1) - Repository 설정 (0) | 2019.10.31 |