더북(TheBook)

앞에서 MariaDB Galera 클러스터링을 구성해 보고, HAProxy도 설치해 보았습니다. 이번에는 Keepalived를 설치해 보겠습니다.

1. ubuntu01 노드와 ubuntu02 노드에 apt-get install 명령어를 이용해 Keepalived를 다음과 같이 설치합니다.

root@ubuntu01:~# apt-get install keepalived
Reading package lists… Done
Building dependency tree
Reading state information… Done The following additional packages will be installed: ipvsadm libsensors4 libsnmp-base libsnmp30 Suggested packages: heartbeat ldirectord lm-sensors snmp-mibs-downloader The following NEW packages will be installed: ipvsadm keepalived libsensors4 libsnmp-base libsnmp30 0 upgraded, 5 newly installed, 0 to remove and 104 not upgraded. Need to get 1,250 kB of archives. After this operation, 4,900 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 libsensors4 amd64 1:3.4.0-2 [28.4 kB] Get:2 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 libsnmp-base all 5.7.3+dfsg-1ubuntu4 [224 kB] … Setting up keepalived (1:1.2.19-1) … Setting up ipvsadm (1:1.28-3) … Processing triggers for libc-bin (2.23-0ubuntu3) … Processing triggers for ureadahead (0.100.0-19) … Processing triggers for systemd (229-4ubuntu4) …

신간 소식 구독하기
뉴스레터에 가입하시고 이메일로 신간 소식을 받아 보세요.