tuxedo多机方式配置有两个方面
1.启动tlisten
tlisten在tuxedo启动时扮演控制者的角色,在非master机上由tlisten启动bbl和应用服务器,tlisten的启动方法为
tlisten -l //host:ipport
注意这里的ipport必须和ubb文件中NETWORK域NLSADDR一致
tlisten必须在所有的机器上启动,启动后才能运行tmboot.建议操作系统启动时就运行tlisten.
2.ubb文件配置
对于多机模式一般就是指单一domain管理的多台机器,所有机器上仅需要一个ubb文件,以下是ubb文件的模板
*RESOURCES
IPCKEY 80952
MAXACCESSERS 40
MAXSERVERS 35
MAXSERVICES 75
MASTER SITE1,SITE2
OPTIONS LAN,MIGRATE
MODEL MP
*MACHINES
<SITE1's uname> LMID=SITE1
TUXDIR="<TUXDIR1>"
APPDIR="<APPDIR1>"
TUXCONFIG="<APPDIR1>/tuxconfig"
TYPE="<machine type1>"
ULOGPFX="<APPDIR1>/ULOG"
<SITE2's uname> LMID=SITE2
TUXDIR="<TUXDIR2>"
APPDIR="<APPDIR2>"
TLOGDEVICE="<APPDIR2>/TLOG"
TLOGNAME=TLOG
TUXCONFIG="<APPDIR2>/tuxconfig"
TYPE="<machine type2>"
ULOGPFX="<APPDIR2>/ULOG"
#
*GROUPS
*NETWORK
SITE1 NADDR="<network address of SITE1>"
BRIDGE="<device of provider1>"
NLSADDR="<network listener address of SITE1>"
SITE2 NADDR="<network address of SITE2>"
BRIDGE="<device of provider2>"
NLSADDR="<network listener address of SITE2>"
*SERVERS
DEFAULT: RESTART=Y MAXGEN=5 REPLYQ=Y CLOPT="-A"
#
*SERVICES
3. 管理
只能在master机上运行tmadmin进行管理。要获得统计信息在tmadmin中应运行default –m命令。
例如:
tmadmin
>default –m SITE1
>printservice
Sample:
#ident "@(#) samples/atmi/simpapp/ubbmp $Revision: 1.2.8.1 $"
*RESOURCES
IPCKEY 87654
MASTER site1,site2
MAXACCESSERS 40
MAXSERVERS 20
MAXSERVICES 40
UID 0
GID 0
MODEL MP
OPTIONS LAN,MIGRATE
*MACHINES
CHRIS LMID=site1
APPDIR="d:\tuxedo\samples\atmi\simpapp"
TUXCONFIG="d:\tuxedo\samples\atmi\simpapp\tuxconfig"
# TYPE="<Replace with the proper machine type for site1>"
TUXDIR="d:\tuxedo"
chrislinux LMID=site2
APPDIR="/home/tuxedo/samples/atmi/simpapp"
TUXCONFIG="/home/tuxedo/samples/atmi/simpapp/tuxconfig"
# TYPE="<Replace with the proper machine type for site2>"
TUXDIR="/home/tuxedo"
UID=503
GID=503
*GROUPS
GROUP1
LMID=site1 GRPNO=1 OPENINFO=NONE
GROUP2
LMID=site2 GRPNO=2 OPENINFO=NONE
*NETWORK
site1 NADDR="//10.10.10.10:6033"
NLSADDR="//10.10.10.10:6034"
# BRIDGE="<Replace with the network device or omit if there is none>"
site2 NADDR="//10.10.10.11:6033"
NLSADDR="//10.10.10.11:6034"
# BRIDGE="<Replace with the network device or omit if there is none>"
*SERVERS
DEFAULT:
CLOPT="-A"
simpserv SRVGRP=GROUP1 SRVID=3
*SERVICES
TOUPPER