centos scidb(v14.08) 구축 (cluster)
최신버전이 아닌 14.08은 예전에 다운 받아놓았던 것을 이용해 설치해야 한다.
설치 파일명 : deployment-master
scidb 계정으로 아이디를 생성한다. 계정명은 꼭 scidb로 만들어야 한다.
기존에 회원 가입이 없이 다운로드 받을 수 있었던 14.08을 설치 한다.
*scidb는 ssh를 이용한 cluster 연동을 하기 때문에 각각의 물리적 서버에 대해서 ssh 설정을 해줘야 한다.
$vi /etc/hosts #아이피와 이름을 등록한다.
$ssh-keygen #키를 만들어 사용하고자하는 cluster에게 모두 등록시켜준다.
#unzip deployment-master
#./cluster_install -s config.ini
아래는 config.ini 내용
[cluster]
server-0=SCIDB2,1 -> master scidb(instance 1)
server-1=SCIDB1,2 -> cluster scidb(instance 2)
install_root=/opt/scidb/14.8
metadata=/opt/scidb/14.8/share/scidb/meta.sql
pluginsdir=/opt/scidb/14.8/lib/scidb/plugins
logconf=/opt/scidb/14.8/share/scidb/log4cxx.properties
db_user=pguser
db_passwd=pguserpwd
base-port=1239
base-path=/home/scidb/scidb_data
redundancy=0
execution-threads=1
result-prefetch-threads=1
result-prefetch-queue-size=1
operator-threads=1
*cluster를 기본적으로 여러 대를 사용 하려면 여러 서버에 각각 scidb를 설치할 필요는 없다. 다만 각 서버에 "scidb" 계정이 반드시 존재해야 한다. 그리고나서 master로 사용할 서버쪽에서 위와같은 config.ini를 수정하고 반드시 다시 설치를 해야 정상적으로 돌아간다.
주의할 점 : scidb 추가하면 기본적으로 scidb를 아래와 같은 config.ini 설치하면 된다.
그리고 master scidb에서 ./cluster_install -s config.ini 실행한다.
실행 하면 기존 데이터는 없어진다.
[cluster]
server-0=localhost,1 -> master scidb(instance 1)
install_root=/opt/scidb/14.8
metadata=/opt/scidb/14.8/share/scidb/meta.sql
pluginsdir=/opt/scidb/14.8/lib/scidb/plugins
logconf=/opt/scidb/14.8/share/scidb/log4cxx.properties
db_user=pguser
db_passwd=pguserpwd
base-port=1239
base-path=/home/scidb/scidb_data
redundancy=0
execution-threads=1
result-prefetch-threads=1
result-prefetch-queue-size=1
operator-threads=1
설치 파일명 : deployment-master
scidb 계정으로 아이디를 생성한다. 계정명은 꼭 scidb로 만들어야 한다.
기존에 회원 가입이 없이 다운로드 받을 수 있었던 14.08을 설치 한다.
*scidb는 ssh를 이용한 cluster 연동을 하기 때문에 각각의 물리적 서버에 대해서 ssh 설정을 해줘야 한다.
$vi /etc/hosts #아이피와 이름을 등록한다.
$ssh-keygen #키를 만들어 사용하고자하는 cluster에게 모두 등록시켜준다.
#unzip deployment-master
#./cluster_install -s config.ini
아래는 config.ini 내용
[cluster]
server-0=SCIDB2,1 -> master scidb(instance 1)
server-1=SCIDB1,2 -> cluster scidb(instance 2)
install_root=/opt/scidb/14.8
metadata=/opt/scidb/14.8/share/scidb/meta.sql
pluginsdir=/opt/scidb/14.8/lib/scidb/plugins
logconf=/opt/scidb/14.8/share/scidb/log4cxx.properties
db_user=pguser
db_passwd=pguserpwd
base-port=1239
base-path=/home/scidb/scidb_data
redundancy=0
execution-threads=1
result-prefetch-threads=1
result-prefetch-queue-size=1
operator-threads=1
*cluster를 기본적으로 여러 대를 사용 하려면 여러 서버에 각각 scidb를 설치할 필요는 없다. 다만 각 서버에 "scidb" 계정이 반드시 존재해야 한다. 그리고나서 master로 사용할 서버쪽에서 위와같은 config.ini를 수정하고 반드시 다시 설치를 해야 정상적으로 돌아간다.
주의할 점 : scidb 추가하면 기본적으로 scidb를 아래와 같은 config.ini 설치하면 된다.
그리고 master scidb에서 ./cluster_install -s config.ini 실행한다.
실행 하면 기존 데이터는 없어진다.
[cluster]
server-0=localhost,1 -> master scidb(instance 1)
install_root=/opt/scidb/14.8
metadata=/opt/scidb/14.8/share/scidb/meta.sql
pluginsdir=/opt/scidb/14.8/lib/scidb/plugins
logconf=/opt/scidb/14.8/share/scidb/log4cxx.properties
db_user=pguser
db_passwd=pguserpwd
base-port=1239
base-path=/home/scidb/scidb_data
redundancy=0
execution-threads=1
result-prefetch-threads=1
result-prefetch-queue-size=1
operator-threads=1
정상 구동확인방법
scidb 계정으로 로그인하고 아래 명령어를 사용하여 정상 구동을 확인 한다.
$scidb.py startall cluster
$iquery
scidb 계정으로 로그인하고 아래 명령어를 사용하여 정상 구동을 확인 한다.
$scidb.py startall cluster
$iquery
댓글
댓글 쓰기