{IM構築}2.17.5 JP1/IM - Managerの障害に備えた設定(UNIXの場合)

  • 物理ホスト

(2) プロセス異常終了時の再起動の設定

vim /etc/opt/jp1cons/conf/jp1co_service.conf

evflow||1|3|3|3600|
jcamain||1|3|3|3600|
evtcon|-Xmx512m|1|3|3|3600|
evgen||1|3|3|3600|
jcdmain||1|3|3|3600|
jcsmain||1|3|3|3600|
jcfmain||1|3|3|3600|
jddmain||1|3|3|3600|

/opt/jp1cons/bin/jco_spmd_reload

 

(3) プロセス異常検知時のJP1イベントの発行の設定

vim /etc/opt/jp1cons/conf/jp1co_param_V7.conf

[JP1_DEFAULT\JP1CONSOLEMANAGER]
"SEND_PROCESS_TERMINATED_ABNORMALLY_EVENT"=dword:1
"SEND_PROCESS_RESTART_EVENT"=dword:1

/opt/jp1base/bin/jbssetcnf /etc/opt/jp1cons/conf/jp1co_param_V7.conf


/etc/opt/jp1cons/jco_stop
/opt/jp1base/bin/jbs_spmd_stop
/opt/jp1base/bin/jevstop
/opt/jp1base/bin/jevlogdstop

/opt/jp1base/bin/jbs_spmd
/opt/jp1base/bin/jevstart
/opt/jp1base/bin/jevlogdstart
/etc/opt/jp1cons/jco_start

/opt/jp1base/bin/jbs_spmd_status
/opt/jp1base/bin/jevstat
/opt/jp1base/bin/jevlogdstat
/opt/jp1cons/bin/jco_spmd_status


(4) ヘルスチェック機能の設定

vim /etc/opt/jp1cons/conf/health/jcohc.conf


[HEALTHCHECK]
ENABLE=true
FAILOVER=false
EVENT=true
COMMAND=
[End]

--ヘルスチェック定義ファイル(jcohc.conf)の定義が正しく実行されるかをテスト
/opt/jp1cons/bin/jcohctest

 

/opt/jp1cons/bin/jco_spmd_reload

 

  • 論理ホスト

(2) プロセス異常終了時の再起動の設定

クラスタソフトから実行


(3) プロセス異常検知時のJP1イベントの発行の設定

vim /mnt/sdc2/im/jp1cons/conf/jp1co_param_V7.conf

[mmm190\JP1CONSOLEMANAGER]
"SEND_PROCESS_TERMINATED_ABNORMALLY_EVENT"=dword:1
"SEND_PROCESS_RESTART_EVENT"=dword:1


/opt/jp1base/bin/jbssetcnf /mnt/sdc2/im/jp1cons/conf/jp1co_param_V7.conf


/etc/opt/jp1cons/jco_stop.cluster mmm190
/etc/opt/jp1base/jbs_stop.cluster mmm190

/etc/opt/jp1base/jbs_start.cluster mmm190
/etc/opt/jp1cons/jco_start.cluster mmm190

/opt/jp1base/bin/jbs_spmd_status -h mmm190
/opt/jp1base/bin/jevstat mmm190
/opt/jp1cons/bin/jco_spmd_status -h mmm190


待機系への反映

共通定義情報の出力
/opt/jp1base/bin/jbsgetcnf -h mmm190 > /root/jbscnf.txt
scp /root/jbscnf.txt mmm192:/root

共通定義情報の取り込み
ssh mmm192 "/opt/jp1base/bin/jbssetcnf /root/jbscnf.txt"


(4) ヘルスチェック機能の設定

vim /mnt/sdc2/im/jp1cons/conf/health/jcohc.conf


[HEALTHCHECK]
ENABLE=true
FAILOVER=false
EVENT=true
COMMAND=
[End]

--ヘルスチェック定義ファイル(jcohc.conf)の定義が正しく実行されるかをテスト
/opt/jp1cons/bin/jcohctest -h mmm190

 

/opt/jp1cons/bin/jco_spmd_reload -h mmm190