IT/LINUX

오븐스댁 memcached,etcd 설치

송시 2019. 6. 4. 16:09
728x90

컨트롤러 노드에만 설치하면 되는데,

멤캐쉬야 캐쉬를 통해 속도를 향상하겠다는 걸 알겠는데

etcd 는 뭔지 모르겠다

그러나 나는 군대를 만기전역했기에 이번에도 까라면 깔았다.

역시 컨트롤러 노드에만 설치스

 

[root@7controller ~]# yum install memcached python-memcached

Dependencies Resolved

===============================================================================================================
 Package                     Arch              Version                 Repository                         Size
===============================================================================================================
Installing:
 memcached                   x86_64            1.5.6-1.el7             centos-openstack-stein            124 k
 python-memcached            noarch            1.58-1.el7              centos-openstack-stein             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

 

설정 편집

/etc/sysconfig/memcached

OPTIONS="-l 127.0.0.1,::1,7contorller"

내 hostname 은 7controller 니깐!

 

[root@7controller ~]# systemctl enable memcached
Created symlink from /etc/systemd/system/multi-user.target.wants/memcached.service to /usr/lib/systemd/system/memcached.service.
[root@7controller ~]# systemctl start memcached

 

[root@7controller ~]# yum install etcd


Dependencies Resolved

===============================================================================================================
 Package              Arch                   Version                              Repository              Size
===============================================================================================================
Installing:
 etcd                 x86_64                 3.3.11-2.el7.centos                  extras                  10 M

Transaction Summary
===============================================================================================================
Install  1 Package

Total download size: 10 M
Installed size: 45 M

 

[root@7controller ~]# vi /etc/etcd/etcd.conf

#[Member]
#ETCD_CORS=""
ETCD_DATA_DIR="/var/lib/etcd/default.etcd"
#ETCD_WAL_DIR=""
ETCD_LISTEN_PEER_URLS="http://10.0.0.11:2380"
ETCD_LISTEN_CLIENT_URLS="http://10.0.0.11:2379"
#ETCD_MAX_SNAPSHOTS="5"
#ETCD_MAX_WALS="5"
ETCD_NAME="contorller"
#ETCD_SNAPSHOT_COUNT="100000"
#ETCD_HEARTBEAT_INTERVAL="100"
#ETCD_ELECTION_TIMEOUT="1000"
#ETCD_QUOTA_BACKEND_BYTES="0"
#ETCD_MAX_REQUEST_BYTES="1572864"
#ETCD_GRPC_KEEPALIVE_MIN_TIME="5s"
#ETCD_GRPC_KEEPALIVE_INTERVAL="2h0m0s"
#ETCD_GRPC_KEEPALIVE_TIMEOUT="20s"
#
#[Clustering]
ETCD_INITIAL_ADVERTISE_PEER_URLS="http://10.0.0.11:2380"
ETCD_ADVERTISE_CLIENT_URLS="http://10.0.0.11:2379"
#ETCD_DISCOVERY=""
#ETCD_DISCOVERY_FALLBACK="proxy"
#ETCD_DISCOVERY_PROXY=""
#ETCD_DISCOVERY_SRV=""
ETCD_INITIAL_CLUSTER="contorller=http://10.0.0.11:2380"
ETCD_INITIAL_CLUSTER_TOKEN="etcd-cluster-01"
ETCD_INITIAL_CLUSTER_STATE="new"
#ETCD_STRICT_RECONFIG_CHECK="true"
#ETCD_ENABLE_V2="true"

 

[root@7controller ~]# systemctl enable memcached
Created symlink from /etc/systemd/system/multi-user.target.wants/memcached.service to /usr/lib/systemd/system/memcached.service.

[root@7controller ~]# systemctl start etcd

728x90

'IT > LINUX' 카테고리의 다른 글

[Ansible]Centos8 에서 sshpass 설치하기  (0) 2020.06.06
오븐스댁 환경  (0) 2019.06.04
오븐스댁 메시지큐 MQ 설치  (0) 2019.06.04
오븐스댁 SQL 설치  (0) 2019.06.04
오븐스댁 기본 패키지 설치스  (0) 2019.06.04