# 테스트환경
IBM AIX 7.2 (서버1) / IBM AIX 7.2 (서버2) / Oracle Linux 6.6 (클라이언트)
AIX는 각각 1번서버와 2번서버로 구분.
linux는 클라이언트로 구분.
# 구성
서버1
TOUPPER 서비스만 가지고 있음
서버2
TOLOWER 서비스만 가지고 있음
# 로직구상
1. 서버1과 서버2를 domain통신을 설정한다.
2. Client가 서버1의 WSL과 WSH를 통해서 TOLOWER 서비스를 request하게 되면
서버1은 TOLOWER 서비스를 서버2에서 가져와서 클라이언트에게 서비스를 reply 해준다.
1. Tuxedo 서버 1번
ubbconfig 환경변수 파일 설정
*SERVER 그룹에 DMADM, GWADM, GWTDOMAIN 설정
# vi ubbsimple
"ubbsimple" 130 lines, 3871 characters
*RESOURCES
IPCKEY 123554
PERM 0600
DOMAINID simpapp
MASTER simple2
MAXACCESSERS 1000
MAXSERVERS 100
MAXSERVICES 500
MAXGROUPS 100
MAXCONV 10
MAXGTT 100
#SCANUNIT 5
#SANITYSCAN 24
#BLOCKTIME 6
MODEL SHM
DBBLWAIT 2
LDBAL N
*MACHINES
DEFAULT:
APPDIR="/ofm/jwchoi/sw2/tp/tuxedo12.2.2.0.0/samples/atmi/simpapp"
TUXCONFIG="/ofm/jwchoi/sw2/tp/tuxedo12.2.2.0.0/samples/atmi/simpapp/tuxconfig"
TUXDIR="/ofm/jwchoi/sw2/tp/tuxedo12.2.2.0.0"
MAXWSCLIENTS=800
SPINCOUNT=5000
node1 LMID=simple2
*GROUPS
WSLGRP1
LMID=simple2 GRPNO=1 OPENINFO=NONE
WSLGRP2
LMID=simple2 GRPNO=2 OPENINFO=NONE
WSLGRP3
LMID=simple2 GRPNO=3 OPENINFO=NONE
WSLGRP4
LMID=simple2 GRPNO=4 OPENINFO=NONE
DOMGRP
LMID=simple2 GRPNO=30 OPENINFO=NONE
GROUP1
LMID=simple2 GRPNO=5 OPENINFO=NONE
GROUP2
LMID=simple2 GRPNO=6 OPENINFO=NONE
GROUP3
LMID=simple2 GRPNO=7 OPENINFO=NONE
GROUP4
LMID=simple2 GRPNO=8 OPENINFO=NONE
*SERVERS
DEFAULT: RESTART=Y REPLYQ=Y
CLOPT="-A"
# Workstation Listener Server-----------------------------------------------------------------------------------
WSL SRVGRP=WSLGRP1 SRVID=2000
MAXGEN=255 GRACE=86400
CLOPT="-A -- -n //211.110.82.131:6000 -p 6001 -P 6099 -w WSH -t 15 -m 3 -M 10 -x 10"
WSL SRVGRP=WSLGRP2 SRVID=3000
MAXGEN=255 GRACE=86400
CLOPT="-A -- -n //211.110.82.131:6100 -p 6101 -P 6199 -w WSH -t 15 -m 3 -M 10 -x 10"
WSL SRVGRP=WSLGRP3 SRVID=4000
MAXGEN=255 GRACE=86400
CLOPT="-A -- -n //211.110.82.131:6200 -p 6201 -P 6299 -w WSH -t 15 -m 3 -M 10 -x 10"
WSL SRVGRP=WSLGRP4 SRVID=5000
WSL SRVGRP=WSLGRP4 SRVID=5000
MAXGEN=255 GRACE=86400
CLOPT="-A -- -n //211.110.82.131:6300 -p 6301 -P 6399 -w WSH -t 15 -m 3 -M 10 -x 10"
# WTC Server -------------------------------------------------------------------------------------------------
DMADM SRVGRP=DOMGRP SRVID=300 MAXGEN=255
GWADM SRVGRP=DOMGRP SRVID=310 MAXGEN=255
GWTDOMAIN SRVGRP=DOMGRP SRVID=320 MAXGEN=255
# AP Server --------------------------------------------------------------------------------------------------
#simpserv SRVGRP=GROUP1 SRVID=100
# CLOPT="-A -- -r -o -i 211.110.82.131 -t 6000 /ofm/jwchoi/sw2/tp/tuxedo12.2.2.0.0/samples/atmi/simpapp/stdout -e /ofm/jwchoi/sw2/tp/tuxedo12.2.2.0.0/samples/atmi/simpap
p /stderr"
# RQADDR="test"
# RQPERM=0600 MIN=2 MAX=30 REPLYQ=Y CONV=N
# MAXGEN=255 GRACE=86400
#simpserv2 SRVGRP=GROUP2 SRVID=200
# CLOPT="-A -r -o /ofm/jwchoi/sw2/tp/tuxedo12.2.2.0.0/samples/atmi/simpapp/stdout2 -e /ofm/jwchoi/sw2/tp/tuxedo12.2.2.0.0/samples/atmi/simpapp/stderr2"
# RQADDR="test2"
# RQPERM=0600 MIN=3 MAX=30 REPLYQ=Y CONV=N
# MAXGEN=255 GRACE=86400
simpserv3 SRVGRP=GROUP3 SRVID=300
CLOPT="-A -r -o /ofm/jwchoi/sw2/tp/tuxedo12.2.2.0.0/samples/atmi/simpapp/stdout3 -e /ofm/jwchoi/sw2/tp/tuxedo12.2.2.0.0/samples/atmi/simpapp/stderr3"
RQADDR="test3"
RQPERM=0600 MIN=3 MAX=30 REPLYQ=Y CONV=N
MAXGEN=255 GRACE=86400
simpserv4 SRVGRP=GROUP4 SRVID=400
CLOPT="-A -r -o /ofm/jwchoi/sw2/tp/tuxedo12.2.2.0.0/samples/atmi/simpapp/stdout4 -e /ofm/jwchoi/sw2/tp/tuxedo12.2.2.0.0/samples/atmi/simpapp/stderr4"
RQADDR="test4"
RQPERM=0600 MIN=3 MAX=30 REPLYQ=Y CONV=N
MAXGEN=255 GRACE=86400
*SERVICES
#TOUPPER SVCTIMEOUT=21
#TOLOWER SVCTIMEOUT=21
2. Tuxedo 서버1
dmconfig 환경변수 설정
*DM_RESOURCES
VERSION="U22"
*DM_LOCAL_DOMAINS
DEFAULT :
TYPE=TDOMAIN
BLOCKTIME=30
CONNECTION_POLICY=ON_STARTUP
TUXDOM1
GWGRP=DOMGRP
DOMAINID="TUXDOM1"
DMTLOGNAME="TUXDOM1"
*DM_REMOTE_DOMAINS
WLSDOM1 TYPE=TDOMAIN DOMAINID="WLSDOM1"
*DM_TDOMAIN
TUXDOM1 NWADDR="//211.110.82.131:2000"
WLSDOM1 NWADDR="//211.110.82.132:3000"
*DM_REMOTE_SERVICES
DEFAULT: RDOM=WLSDOM1
TOLOWER
*DM_LOCAL_SERVICES
TOUPPER
3. Tuxedo 서버2
ubbconfig 환경변수 설정
# vi ubbsimple
"ubbsimple" 51 lines, 1099 characters
*RESOURCES
IPCKEY 123456
DOMAINID simpapp
MASTER simple
MAXACCESSERS 1000
MAXSERVERS 100
MAXSERVICES 500
MAXGROUPS 100
MAXGTT 100
MAXCONV 10
MODEL SHM
LDBAL N
*MACHINES
DEFAULT:
APPDIR="/ofm/jwchoi/sw/tp/tuxedo12.2.2.0.0/samples/atmi/simpapp"
TUXCONFIG="/ofm/jwchoi/sw/tp/tuxedo12.2.2.0.0/samples/atmi/simpapp/tuxconfig"
TUXDIR="/ofm/jwchoi/sw/tp/tuxedo12.2.2.0.0/"
MAXWSCLIENTS=800
node2 LMID=simple
*GROUPS
GROUP1
LMID=simple GRPNO=1 OPENINFO=NONE
DOMGRP
LMID=simple GRPNO=2 OPENINFO=NONE
*SERVERS
DEFAULT: RESTART=Y REPLYQ=Y
CLOPT="-A"
# WTC Server -------------------------------------------------------------------------------------------------
DMADM SRVGRP=DOMGRP SRVID=300 MAXGEN=255
GWADM SRVGRP=DOMGRP SRVID=310 MAXGEN=255
GWTDOMAIN SRVGRP=DOMGRP SRVID=320 MAXGEN=255
# AP server --------------------------------------------------------------------------------------------------
simpserv SRVGRP=GROUP1 SRVID=1
RQPERM=0600 MIN=3 MAX=30 REPLYQ=Y CONV=N
MAXGEN=255
*SERVICES
TOUPPER
TOLOWER
4. Tuxedo 서버2
dmconfig 환경변수 설정
*DM_RESOURCES
VERSION="U22"
*DM_LOCAL_DOMAINS
DEFAULT :
TYPE=TDOMAIN
BLOCKTIME=30
CONNECTION_POLICY=ON_STARTUP
WLSDOM1
GWGRP=DOMGRP
DOMAINID="WLSDOM1"
DMTLOGNAME="WLSDOM1"
*DM_REMOTE_DOMAINS
TUXDOM1 TYPE=TDOMAIN DOMAINID="TUXDOM1"
*DM_TDOMAIN
TUXDOM1 NWADDR="//211.110.82.131:2000"
WLSDOM1 NWADDR="//211.110.82.132:3000"
*DM_REMOTE_SERVICES
DEFAULT: RDOM=TUXDOM1
TOUPPER
*DM_LOCAL_SERVICES
TOLOWER
5. 각 서버에서 dmconfig의 Binary 파일의 이름과 경로를 설정
export BDMCONFIG=/ofm/jwchoi/sw/tp/tuxedo12.2.2.0.0/samples/atmi/simpapp/domconfig
6. 도메인 통신을 위한 구성이 모두 완료되었다.
각각의 서버에서
# tmloadcf -y ubbsimple
# dmloadcf -y domsimple
# tmboot -y
순서대로 tuxedo 를 기동한다.
정상적으로 DMADM, GWADM, GWTDOMAIN 이 started 면 성공.
7. tuxedo admin으로 접속
# tmadmin -r
8. psc 로 서비스를 확인한다.
> psc
서버1번에서 Domain통신에 의해 서버2번의 TOLOWER 서비스가 나타난다.
서버1번 psc
> psc
Service Name Routine Name Prog Name Grp Name ID Machine # Done Status
------------ ------------ --------- -------- -- ------- ------ ------
TOUPPER TOUPPER simpserv4 GROUP4 400 simple2 0 AVAIL
TOUPPER TOUPPER simpserv4 GROUP4 401 simple2 0 AVAIL
TOUPPER TOUPPER simpserv4 GROUP4 402 simple2 0 AVAIL
TOUPPER TOUPPER simpserv3 GROUP3 300 simple2 0 AVAIL
DMADMIN DMADMIN DMADM DOMGRP 300 simple2 0 AVAIL
TOUPPER TOUPPER simpserv3 GROUP3 301 simple2 0 AVAIL
TOUPPER TOUPPER simpserv3 GROUP3 302 simple2 0 AVAIL
TUXDOM1 GWS GWADM DOMGRP 310 simple2 0 AVAIL
TOLOWER GWS GWTDOMAIN DOMGRP 320 simple2 0 AVAIL
서버2번에서 Domain통신에 의해 서버2번의 TOUPPER 서비스가 나타난다.
서버2번 psc
> psc
Service Name Routine Name Prog Name Grp Name ID Machine # Done Status
------------ ------------ --------- -------- -- ------- ------ ------
TOLOWER TOLOWER simpserv GROUP1 1 simple 0 AVAIL
TOLOWER TOLOWER simpserv GROUP1 2 simple 0 AVAIL
TOLOWER TOLOWER simpserv GROUP1 3 simple 0 AVAIL
DMADMIN DMADMIN DMADM DOMGRP 300 simple 0 AVAIL
WLSDOM1 GWS GWADM DOMGRP 310 simple 0 AVAIL
TOUPPER GWS GWTDOMAIN DOMGRP 320 simple 0 AVAIL
9. 서비스 호출하기
'Middleware > Tuxedo' 카테고리의 다른 글
[TUXEDO] tmloadrepos command (0) | 2022.10.05 |
---|---|
[TUXEDO] TMMETADATA *SERVERS (0) | 2022.10.05 |
[Tuxedo] DOMAIN 통신을 위한 환경변수파일 dmconfig (0) | 2022.09.27 |
[Tuxedo] DOMAIN 통신 (0) | 2022.09.27 |
[Tuxedo] server에서 매개변수(argument) 사용하기 (0) | 2022.09.22 |