설문조사
PostgreSQL/PPAS 관련 듣고 싶은 교육은


총 게시물 73건, 최근 0 건
   

EPAS 와 repmgr 작동 여부

글쓴이 : PostgresDBA 날짜 : 2016-05-26 (목) 18:09 조회 : 6152
pgboucner 와 pgpool 은 EPAS 에서도 잘 작동합니다. EPAS 설치할때 같이 설치할수 있죠.

하지만 replication 관리 프로그램인 repmgr 은 제공되지 않습니다.
(EDB 에는 repmgr 과 비슷한 기능의 EDB Failover Manager 라는 제품이 따로 있습니다.
개인적으로, 자바기반의 제품이라서 테스트욕구가 별로 안생기네요.
요 EDB 제품은 pgpool 의 watchdog 기능과도 겹치는 부분이 있습니다.)

repmgr 은 커뮤니티 버전에는 많이 쓰는 유틸이라서 EPAS 와도 잘 동작하는지 확인하기 위해 직접 설치해봤습니다.
(사실 안될 이유는 없지만 --; 확인차..)

rpm 이 아닌 소스를 직접 다운로드하여 아래와 같이 설치해봤는데, 잘 됩니다.
환경: CENTOS6.5 + EPAS 9.5 + repmgr 3.1.3 

$ tar xvfz repmgr-3.1.3.tar.gz
$ cd repmgr-3.1.3
$  make USE_PGXS=1 install
make -C sql
make[1]: Entering directory `/archive/download/pg/repmgr-3.1.3/sql'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/archive/download/pg/repmgr-3.1.3/sql'
/bin/mkdir -p '/ppas/PostgresPlus/9.5AS/share/contrib'
mkdir -p '/ppas/PostgresPlus/9.5AS/bin'
/usr/bin/install -c  repmgrd '/ppas/PostgresPlus/9.5AS/bin/'
/usr/bin/install -c  repmgr '/ppas/PostgresPlus/9.5AS/bin/'
make -C sql install
make[1]: Entering directory `/archive/download/pg/repmgr-3.1.3/sql'
/bin/mkdir -p '/ppas/PostgresPlus/9.5AS/lib'
/bin/mkdir -p '/ppas/PostgresPlus/9.5AS/share/contrib'
/usr/bin/install -c -m 755  repmgr_funcs.so '/ppas/PostgresPlus/9.5AS/lib/repmgr_funcs.so'
/usr/bin/install -c -m 644 .//uninstall_repmgr_funcs.sql repmgr_funcs.sql '/ppas/PostgresPlus/9.5AS/share/contrib/'
make[1]: Leaving directory `/archive/download/pg/repmgr-3.1.3/sql'
/usr/bin/install -c -m 644 .//repmgr.sql .//uninstall_repmgr.sql  '/ppas/PostgresPlus/9.5AS/share/contrib/'

# find /ppas -name *repmgr*   # 9.5AS 설치디렉토리에 이것저것 설치되는군요.
/ppas/PostgresPlus/9.5AS/share/contrib/uninstall_repmgr.sql
/ppas/PostgresPlus/9.5AS/share/contrib/uninstall_repmgr_funcs.sql
/ppas/PostgresPlus/9.5AS/share/contrib/repmgr.sql
/ppas/PostgresPlus/9.5AS/share/contrib/repmgr_funcs.sql
/ppas/PostgresPlus/9.5AS/lib/repmgr_funcs.so
/ppas/PostgresPlus/9.5AS/bin/repmgrd
/ppas/PostgresPlus/9.5AS/bin/repmgr

여기서는 간단히 설치 정보만 게재했으며, 설정및 작동 부분은 링크를 참조해서 직접 공부해보시기 바랍니다. 익히는 재미가 솔솔합니다.

암튼, 매뉴얼보고 이것저것 테스트중인데, 아주 잘되네요~


   

postgresdba.com