1. 部署方案参考如上图所示,中间件平台主要包括两大部分:●负载分发层⏹包括两台服务器,通过Heartbeat实现HA,提供浮动IP给客户端,保证了系统不存在单点故障问题⏹负载分发软件采用IBM HTTP Server实现⏹通过IBM HTTP Server配置虚拟主机,实现对不同应用的请求进行分发到不同的后台W AS中间件集群。
●WAS中间件集群⏹包括两台4CPU(每CPU 4Core)服务,每个服务器上通过水平扩展可以启动多个W AS服务器。
⏹基于应用部署要求,为每个应用建立一个集群,逻辑上实现应用之间的隔离。
⏹每个集群可以根据应用的负载,动态分配WAS服务器实例数。
如HR应用访问量较大则分配4个WAS实例。
⏹但最小要保证一个集群至少包括2个W AS实现,并且这两个实例分别在不同的物理服务器上,这样才能保证不出现单点故障。
⏹部署管理器,部署在WAS Server1上。
2. WebSphere 7安装及配置此安装配置说明仅供参考,还需要根据现场实现情况进行调整。
2.1.WAS安装一、四台服务器拓朴结构四台机器IP地址,名称与安装内容其中DM控制台管理用户admin,口令两个web服务器的管理用户也是admin,口令二、安装后验收http://**.**.**.**:9060/ibm/console可打开应用服务器主机的控制管理台,管理用户admin,口令******服务器->集群下建有应用集群服务器->应用服务器下建有两个WEB服务节点共有五个,分别是一个控制节点(一个dmgr节点),两个受控节点(两个app节点),两个非受控节点(两个web节点)集群下各受控节点已同步,并启动服务;两个WEB服务已生成插件、传播插件并启动。
在DMGR控制管理台可直接控制两个WEB的启动与停止。
三、安装前系统检查✓群集安装时,确认所有机子的日期要一致✓确认磁盘空间足够两个应用服务器的安装文件放在/was_install两个WEB服务器的安装文件放在/http_install安装目录都是安装于默认的/opt目录下两个应用服务器安装后生成目录/opt/IBM/WebServer/AppServer两个WEB服务器安装后生成目录/opt/IBM/HTTPServer两个WEB服务器的目录/opt/IBM/HTTPServer/plugins放有插件✓确认管理域之内的所有的机器主机名和ip地址相互能够ping通在安装前,要确保四台机的/etc/hosts文件里面增加四台机的ip与主机名,修改如下**.**.**.1 app1**.**.**.2 app2**.**.**.3 web1**.**.**.4 web2(对于初次安装系统后的主机,因为没有在HOSTS文件中增加此类记录,会导致安装失败,现象是安装后生成的profiles不完整,并且startManager.sh执行失败,启动不了管理服务。
另外,安装完W AS后,不能修改主机名,否则W AS的服务启动不了,需要重新安装) ✓确认主机名在生产环境中不会再改变✓四台主机做好设置,能够用xmanager进行图形化安装。
如不能进行图形化安装,则需要修改was或his下的responsefile.txt文件中的各参数,工作量大而且易出错。
✓安装介质已有,was7.0 nd for linux x86-64 bit对于was7.0 ,对于操作系统与硬件空间要求如下:/support/docview.wss?rs=180&uid=swg27012474The following list identifies the products that are supported when WebSphere Application Server runs on the Linux x86-64 operating system. It is not necessary to run these products on the same machine or operating system as WebSphere Application Server.:Operating Systems supported with 64-bit WebSphere Application Server ∙Red Hat Enterprise Linux AS, Version 4 with Update 6∙Red Hat Enterprise Linux ES, Version 4 with Update 6∙Red Hat Enterprise Linux, Version 5Red Hat Enterprise Linux product site∙SUSE Linux Enterprise Server, Version 9 with SP4∙SUSE Linux Enterprise Server, Version 10 with Update 1∙SUSE Linux Enterprise Server, Version 11 (See Required Detail6)∙SUSE Linux Enterprise Server product siteHardware Requirements ∙AMD Opteron and Intel EM64T (64 bit kernel support only) ∙Disk space requirements∙Minimum 1 GB physical memory recommended∙CD-ROM drive四、把安装程序包放到主机/was_install目录下,解压,解包命令gunzip *.gzTar xvf *.tar五、图形化安装过程(用XMANAGER3.0执行安装)1、应用服务器主机36安装was过程如下各步:进入linux环境,打开终端,打开文件系统,在\was_install\was_ins\目录下的launchpad.sh ,双击运行选择左面列表的第一项,进行was安装,进入下一个安装画面选择接受协议系统进行安装前检查,检查版本,软硬件环境,检查通过Sample例程选择,安装(此例程可用来学习参考检验用),两个语言包也选择上,一并安装默认安装到OPT目录下/opt/IBM/WebSphere/AppServerapp1主机是管理控制的主机,选择安装CELL(会安装dmgr01与appsrv01,并且自动联结),app2只安装一个Application Server(APPSRV01),这是两台应用服务器安装过程的唯一区别管理用户与口令分别设为admin,admin, Samples口令也设为sample此步不选择,跳过安装前检查执行权限,因为是用root用户执行安装,权限检查肯定通过权限通过,安装过程总结如下点next后,进行安装安装完成安装后成功,在app1主机下的/opt/IBM/WebServer/AppServer/profiles目录下可看到DMGR01,APPSRV01两个目录。
其中DMGR01是管理台概要文件,只在app1主机上有。
同样,在主机app2机上安装was后,在app2下的/opt/IBM/WebServer/AppServer/profiles目录下可看到APPSRV01一个目录。
在app1主机下的profiles\DMGR01\FIRSTSTEPS目录下,运行firststeps.sh,可进行安装后检测检测结果通过,请注意蓝色字体:Server name is:dmgrProfile name is:Dmgr01Profile home is:/opt/IBM/WebSphere/AppServer/profiles/Dmgr01Profile type is:dmgrCell name is:app1_Cell01Node name is:app1_CellManager01Current encoding is:UTF-8Start running the following command:/opt/IBM/WebSphere/AppServer/profiles/Dmgr01/bin/startManager.sh-profileName Dmgr01>ADMU0116I: Tool information is being logged in file> /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/logs/dmgr/startServer.log>ADMU0128I: Starting tool with the Dmgr01 profile>ADMU3100I: Reading configuration for server: dmgr>ADMU3200I: Server launched. Waiting for initialization status.>ADMU3000I: Server dmgr open for e-business; process id is 32586Server port number is:9060IVTL0010I: Connecting to the APP1 WebSphere Application Server on port: 9060IVTL0015I: WebSphere Application Server APP1 is running on port: 9060 for profile Dmgr01 IVTL0035I: The Installation Verification Tool is scanning the /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/logs/dmgr/SystemOut.log file for errors andwarnings.[11/2/09 23:27:40:343 CST] 00000000 WSKeyStore W CWPKI0041W: One or more key stores are using the default password.[11/2/09 23:27:42:466 CST] 00000000 ThreadPoolMgr W WSVR0626W: The ThreadPool setting on the ObjectRequestBroker service is deprecated.IVTL0040I: 2 errors/warnings are detected in the /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/logs/dmgr/SystemOut.log fileIVTL0070I: The Installation Verification Tool verification succeeded.IVTL0080I: The installation verification is complete.上述显示说明安装正常,DMGR服务可正常启动。