websphere_集群与负载均衡_第1页
websphere_集群与负载均衡_第2页
websphere_集群与负载均衡_第3页
websphere_集群与负载均衡_第4页
websphere_集群与负载均衡_第5页
已阅读5页,还剩29页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、Websphere集群与负载均衡1 配豐集群说明:口常使用中为了保证websphere系统町用性,提岛系统性能,一般处理方 法为配置集样,本文将记录我创建、配置集群的整个过程1) 集群系统架构操作系统:linux as4Websphere版本 was6.12) 系统整体架构为了保证高可用性环境.一般使用如卜拓扑:本例中的部署如下所示:Db和一个应用安装在主机itat«p3(22. 5. 232.195)个应用放独安装主机名为itatmp4(22. 5. 232.196),组 成-个集群,然后通过-个IHS來完成负载均衡,HIS也安装在主机itatap3 (22. 5. 232.195

2、)±注意自己在配盍请用根据自己的情况用自己的主机名与IP替换上面红色的部分3) 检査程序包及其版本仃两个程序。C88STML. tar. gz为application server1 jDeployment manager的安装包 C88T0ML_VAS61ND_Supplenents_Linux32B. tar. gz 包仃IB* http Server1J插件的安装程序4) 安襄集群以下安装在itatip3(22.5. 232.195)主机上安装:获得的VEBSFHERE的女装包町能为C88STMLtar. gz先将氏解氐解压缩后的文件运行./launchpad, sh。laun

3、chpad. sh启动安装界而注意:假如没window-x.就安装一个Xnanager软件安装界面如卜:首先安装:WebSphere Application Server Network DeployvnentLaunch the installation wizard tor WebSphere application SErver Network Deploymgnt.安装后会启动向导.提示接受协议等,并选择安装路径.选择默认路径后, 进行安装,安装时会提示创建的类型me;/ weDpnere Mppiicaiiun server nciwotk uepiuymem - viozma nr

4、eiuxO Mozila Firefox is free and open sottware from the non-proft Mozilla Foundation.WebSphereApplication ServerwelcomeKnow your nghts.斤npiiRg wActionilApplicaiion CliontoCxkIns'allaiian DiagrarnsIBM HTTP Server InstallWeb Server nluG-ins InstIBM Support Assistant InLaunch th。inctnllntion wizard

5、 fcr Applicator) Cl洽ntc.IRM Update Installer for V/obSphoro Software IncAppiicailan Server Toolki InsrallaiionIBM Install alien Faciixy f V/ebSphere App i cation iV/obSphoro Application S Ncvock Deployincni I115'AnolEntion Server Toolkit注意,此处选择None 稍后我们会单独创建概要文件。直到安装完成。(3)安装完成后,我们开始创建概要文件。概要文件是I

6、EBSPHERE的匝要概念.相十于一个独立的配置文件,每个应用都必 须右一个单独的概題文件。创建槪要文件的方法:因为我们是默认安装,所以我们此处给出路径:/opt/IBM/VebSphere/AppServer执行以卜命令创建概要文件/opt/IBM/VebSphere/AppServer/bin/ProfileManagement/pat sh会弹出以卜界而:Wokcm- to t»w Profile Managpmnt toolImportant information for Version 6.1This wizard creates run-time environmerr

7、s that are referred to as profiles At least one orcfi»e must exist io have a functional installation.An initial profile is created during (he insiallaiion process Use ihis wizard io c eaie additional profiles ihai each coniain a sei of commands, configuraiion files, loq files, deployable applic

8、ations and other infamaiion that defines a single apolicadon server environment.See the online information center for more information about the Profile Managefnenl too or about netting up typical topologies for appfication serve.< BackNext>FinishCancelOnline informarion center I nk接着选择创建概耍文件的

9、类型。 注意,此处我们选择的是创建一个d«选择Deployment manager创建个da然后便用选择便用的典型概要文件Piufile Creation OptkxibChoose me profile creaticn process that meets your needs. Pick the rypical oprior to allow the Profile Managemenr tool to ass<jn a set of default con figuration values to the profile Pick rhe Advanced opton

10、to specify yan own configuranon values for the profile.Typcal profile creationCrpate a dpploympnt manager profile that u<es dpfault configuranon “ttingv The Profile Managpnvnt tooliimqupnamM to thp profile, node, ho«t, and cell Tha tool aKo a<igns unique port valuer. The adm nistrarive co

11、n<rip will hp in<tal>pd and you can optionally spct whPthpr to pnaNp adminitfaheTbp tool might create asprvicp to run thpdepl cement manager depending on the ooeraring system of your machine and the privileges assigned to your user account.O Advanced profile creationCreate a deployment mana

12、ger using default configuration settings cr specify your own values fcr settings such as the location of the profile and names of the profile, node, host, and cell. You can assign your own port values. You can optionally choose whether to depky the admm strative console. You might have the option to

13、 run the deployment manager as a system service depending on the operating system of your machine and the pnvdege a gned to your user account.< iackNext >EinishCancel提示创建的概要文件的情况.(注意:此步中需要你确定管理交全性,強烈建议 选择管理安全并输入密码)如F图所示:Choose whether to enable administrative security To enable secunty, supply

14、 a user name and password for logging into administrative tools This administrative user is created in a repository* within the application server. After profile creation finishes, you can add more users, groups, or exteiral repositones.E Epatk admin scratixe security User name:See Ihu rifomiatian c

15、enter fat more infoinidtion about ddruiritralive security. Onl no information center link< BackNext >FinishCancel请记住这个dm的用户名与密码Profile Management loolProfile Cieation SummaryReview the information in the summary for correctness. If the information Back to change values on the previous panels.A

16、pplicator server environment to create: Deployment manager I ocariof /opt/IRM/WPbSnhPre/AppSprver/profilPS/DmgrOl Disk space required 30 MBProfile name: DmgrVl Make this profile the default TrueCell name: itarmp3Cell01Node name: itatmp3CdlManagcr01Hostname iiaimp3Deploy lhe adminisiratie console (re

17、commended). TrueEndUe adrninbiralive secuniy (recommended): TrueAdmhislrative console port: 9060Admnstrative console secure port: 9043Deployment manager bootstrap port: 9809Dpnl/wmprt mpnAnr OAP rnnnprtnr cnrr RR7Q点击创 11! 创建完成。17 opt /IBM/Web Sphere/AppServer/prof i les/ F 会仃个 DmgrOl 的丨 I录创建单独的应用服务器

18、:仍然缆用上而的方法执行以卜命令/opt/1BM/VebSphere/AppServer/bin/ProfileManagement/put sh 但肚选择创建的爻为uApplication server”如卜T4:Environment SelectionProfile Management ToolSelect thp typ of WpbSphpre Application Server environment to crat. Enviro nnwnts:DescriptionAn appiicarion server erx/ironnprt runs yoir pntprpn ap

19、plications. WbSphpre Appl cation Server is managed from its own administrative consolp and functions indppendenllv from all orher application serversHnishProfile Cration SummaryReview the informaton in the summary for conectness If the information is correct, click Create to start ere at ng a new pi

20、ofile. Click Back to change values on the previous panels.Locaton opt/lBM/WebSphere/AppServer/profies/AppSrvOl Dik rpqunpd 200 MRProfile name AppSrvOlIVake this profile (he defauli. TrueNode name: itatmpSNodeOlHost name: itatmp3Deploy the administrative console (reccxnniended): True Deploy the defau

21、lt application: True匚noble administratrve security (recommended): TrueAdministratve console port: 9060Adminitrativp con<olp “wp port* Q043HTTP transport port. 9060HTTPS transport port #43< BackCreate£inishCancel点创建,K到创建完成JuJri:itatMp3 t机上的 /opt/IBM/febSphere/AppServer/profiles H卜会右一个AppSr

22、vOl如下图所示:LrootiproFilesJtt pud/op t/IBM/WebSph ere/Ap pServ e r- /prof iles 匸rootitatp3 profiles* IsRppSrvOl DwgrOl匸rootitatnp3 profiles*(2)在主机itat>p4(22. 5. 232.196)主机上安装一Application server 发卜为安装步履:注蕊 只需耍安装-个Application server 安装过程如卜:执彳f: /launchDacL sh选择TWebSphere Application Server Network Dep

23、loyment呂 Launch thw installation wizaid for WEbSphEne Applcation SErvwr NwtworX DEploymEnt.安装程序,安装过程选择不安装任何类熨,在卜图中选择"None"O Mozi la Firefox is free and open software from the non-proft Mozilla Foundation.WebSphereApplication SorvorWelcomeme;/ - weopnere MppiiL4iiuri server meiwuni uepiuymn

24、i Muviiid rireiuxLfinpiiaoe selection .7 H J1Know your nqhts.Application ClientsExitInsrallaiion DinorflmIBM HTTP Server In stalkWeb Serverpluo-inslnstIRM Support Assistant InIRM Update Installer fa V/cbSphcroSoftware InsIBM InstalaJai Factofy r WebSphere Application 1WcbSphbO Application S Newcxk D

25、eaioymcnt InsN Launch thQ irutwllation wizard for Applicnton CIMtuAppiicdllui Seivei Tuolki Insiallaiion再安装Application server执行以下命令/opt/IBM/VebSphere/AppServer/bin/ProfileManagejient/pat sh 但是选择创建的类住为MApplication server"如卜图:Profile Management ToolEnvironment SelectkxiSelect thp typ of WpbSphpre

26、 Application Server environment to crat. Enviro nments:DescriptionAn appiication server environnprt runs yoir pnterpnp Applications. WbSphpre Appl cation Server 愼 managed from its own administrative console and functions independently from all orher appl»caiion servers< BackN,ext >HnishCa

27、red直到安装完成.将主机i"tip3与主机itatp4上的AppSrvOl分别添加到主机itat>p3的di中 先启动DK控制台«_在冃录中/opt/IBM/WebSphere/AppServer/profiles/DjugrOl/bin 中执行 /startManager sh会启动管理控制台。注意,需itat«p3(22. 5. 232.195) S/itatapl (22. 5. 232.196)屮配/etc/hosts文件itatmp3 E的/etc/hosts文件如 b :# Do not remove the following line, o

28、r various prograis# that require network functionality will fai 122. 5. 232.19522. 5. 232.196itat«p3 localhostlocaldozainlocalhostitatmplitatmpl上的/etc/hosts文件如 E:# Do not remove the following line, or various prograis# that require network functionality Till fail.96 itatnp4 localhost,

29、 localdoaain localhost22. 5. 232.195 itat»p3在主机itatp3中启动应用服务器,和应用服务器的NODEAGENT (NODEAGENT:作为一个代理程序来和DM控制台交互)。di/opt/IBM/VebSphere/AppServer/profiles/AppSrvOl/bin 执辽如卜【./ st art Node, sh便用如卜命令来增加廿总到主机中 /addNode sh IP 8879 -username usemaae -password password分别 i t a tmp31 j i t 中的 /opt/IBM/IebSp

30、here/AppServer/profiles/AppSrv01/binlP 执行 /addNode sh it at mp3 8879 -usernaae atnv -password atMV执行效果如卜:root0itatMp3 bin# pwd /opt/IBMzlFebSphere/AppServer/profiles/AppSrvOl/binroot0itat>p3 bin* /addNode. sh itatap3 8879 -username atav -password atnv ADMU0116I: Tool information is being logged i

31、n file/opt/IBM/¥ebSphere/AppServer/profiles/AppSrvi)l/logs/addNode. logADMU0128I: Starting tool with the AppSrvOl profileC¥PKI03081: Adding signer alias "CN二ita5p3, O=IBM, OUS" to local keystore C1 i entDef aul t Trus t Store * with the following SHA digest: 86:E7:27:38:09:A4:E8:

32、15:85:DA:99:F5:3C:54:52:DC:19:58:B4:ABC¥PKI03081: Adding signer alias "dmuiycli ent signer" to Local keystore "Cl i entDef aul t Trus t St ore * with the following SHA digest: 0B:3F:C9:E0:70:54:58:F7:FD:81:80:70:83:A6:D0:92:38:7A:54:CDC¥PKI03081: Adding signer alias "du

33、juiyserversignerto Local keystore "Cl i entDef aul tTrus t St ore with the following SHA digest: FB:38:FE:E6:CF:89:BA:01:67:8F:C2:30:74:84:E2:40:2C:B4:B5:65ADMU0001I: Begin federation of node itatjnp3Node01 with Deployment Manager at itatap3:8879ADMU0001I: Begin federation of node itatmp3Node01

34、 with Deployment Manager at itatip3:8879.ADMU00091: Successfully connected to Deployment Manager Server: itatnp3:8879ADMU05051: Servers found in configuration:ADMU05061: Server naae: server1ADMU20101: Stopping all server processes for node itatMp3Node01ADMU0512I: Server server 1 cannot be reached It

35、 appears to be stopped.ADMU00241: Deleting the old backij directory.ADMU00151: Backing up the original cell repository.ADMU0012I:Creating Node Agent configuration for node: ltatnp3Node01ADMU0014I:ADMU0016I:ADMU0018I:Adding node itatmp3Node01 configuration to cell: itatmp3Cell01 Synchronizing configu

36、ration between node and cell.Launching Node Agent process for node: itat>p3Node01ADMU0020I:ADMU0022I:Reading configuration for Node Agent process: nodeagent Node Agent launched. Waiting for initialization statusADMU0030I:Node Agent initialization coapleted successfully. Process id is: 5373ADMU999

37、0I:ADMU0300I:The node itatmp3Node01 was successfully added to the itatmpSCellOl cell.ADMU9990I:ADMU0306I:Note:ADMU0302I:Any cell-level documents froa the standalone itatBp3Cell01 configuration have not been grated to the new cell.ADMU0307I:ADMU0303I:You Might want to:Update the configuration on the

38、itatMp3Cell01 Deployaent Manager with values froa the old cell-level documentsADMU9990I:ADMU0306I:Note:ADMU0304I:Because -includeapps was not specified, applications installed on the standalone node rere not installed on the new cell.ADMU0307I:ADMU0305I:You Might want to:Install applications onto th

39、e itatMp3Cell01 cell using wsadmin $AdminApp or the Administrative ConsoleADMU9990I:ADMU00031: Node itat>p3Node01 has been successfully federated root©itatMp3 bin*瑕后我们生du的管理界1(11 ±mJ以石到如卜图:厂serverlitatmp3Node01ND 1rserverlitatmp4Node01ND 能看到上面的图示说明应用节点已经成功添加到dm中r(4)创建集群进入d

40、m控制台,选择服务器今集群 如卜图:3昭务鴉应用程序服务器一般服务务代理服务器 JMS Server V5 Web眼务器集总巢季拓扑一般服务貓臬辟 WebSphere MQ Server m核心组3应用程冬企业应旳理序T 步H 1: ttA筍入垦木集薛馆息W彳、虫群佑巳集孚名步阴2:创建 肴一个宣霹戌|atmvcl usterP首选本电 指足Enterprise Bean话求王=迂的对俣星否步袅3:创建44» = 155®«尸机的节点.其他集畔.或员r ScS HTTP会泛内存到为存复割步施4:总结1下一步1取消1匸哮希:*以卜是创建成员创達奇集柱垠后两个成员如卜

41、图:T步骤3:创建 其他集群成员步骤4:总结尹择节点|itatmp4Node01(ND ) J半权重P 土或堆一的Http塔2)(0.20)添加成员使电竺毎垂少功娶来纯笼已包含在此歹L衰牛为冥倉或员的逞兰. 使甲除”功能从此列表丰除去集芋成员不允许您淀辑或更 除第一个集鲜成员或已经存芒的黛垂或员。编辑捌除e e1成员名节点版本权童dmappOlitatmp3Node01ND 12厂cluapp02itatmp4Node01ND 2上一步 下一步取消添加集群如下。注意此处的权巫:主»Utatmp3权重为2,主机itatmp4权巫为2 则衣示主柚

42、tatmp3分流四分之的流主 机眾,而主机itatmp4也分流Z分之二的流量 最后创建完后可以传看集群悄况如下了段烤U戏迎)氏务器应用程字服务器一般银务器代理輾务器 JMS Server V5 Wet服务卷笑甘集群拓拎一般毆务希集群 WetSphere MQ Server曰核心组矣群拓扑此丽树略M三二一厂-匸:弐一主圮托扑单元3 它 Btmvcligor s»艺占曰 itatmp3NQde01 (ND 6丄0 21) 曰"臭% cJecodOIB 9 itatmp4NWl (ND 6丄0 0) 迴旦奥鲜喪殳'二 luaGpO2)应用裡序資源-子s-iJS 我n或 &

43、#171;息光兰记页面帮貝注:进入应用服务器nServerr/-> u进程定义"Java虛拟机S记住。应用服务器的所冇的server 都进行如下配置| $或I*茂方工K*14台iicroioft iMeraet riplorer-|fT X I0磁 V ®區I ©才* ” .4)hQp.小W I初 0 16 90E1b"iol“ur/xaf勺场E2翊测注伯BEB1mtested Sautms Cmoia adimn欢迎空0UOD3r说闹权耐沁mt"用显序參擋 set vei l 进&定又 Java «AK7BWW1形”武

44、手&兴如口 . 出去込为轴疔逢狂孚 ywxnw-tr? WS,收务器 WebSphere MQ ServerEJ宅用时10逵持«i63环境 筋叭EJW户:fc殂 bin中便帽亡日0億烈行3 如&3 如决(£ 二心:O *? $ % 15 “其中选项初始堆参数.最大堆参数设置建议设賈整个物理k存的80%,比如物理内存4G.建议设胃为3.2G,通用JVM参数 15SAn-Dibm.stream.nio =true"(如果没设,有可能出现http “quest error错 误码)2.安装HIS注意以卜操作在itatMP3主机上执行Z前的操作仅是部署了一

45、个应用到一个集群上,但是这个时候的负载均衡并 未实现.而我们垃后的I的圧实现负载均衡闵此盂要安装IES由于这里只冇两台机器。一台itatap3> 台是itatjip4所以我们将HIS安装在itatap3上,用itat>p3做负裁均衡。HIS的安装包在 C88T0MyAS61ND_Supplejnents_Linux32B tar. gz 包中解丿 £ 后执 If; ./launchpad. shWelcomestallation Diagrams tebSphere Application Server etwork De p by me nt In stallatonH

46、TTP Server Installationfeb server pug-ns instsilation pplicaticn Clients Installation pplication Server Twlkitotalloti onIM Update Irstaller for tebSphere Software InstallationInsta lation Factory fortebSphere Application Server im suppon Assistant insraiiation xitWelcome to WebSphere Application Se

47、rver Network Deploy mo ntIBM WebSphere Application Server Network Deployment. Version6.1 is an integrated platform that contai an Applic ation Server. Web develop me n: tools a Web se rve r. and additional support!ng software and docunentaton.This launchpad may serve as a single poin t of reference

48、for in stalling your Application Serve re nviron me nt.We recommend viewing the nstallat on d acuams for illustrallo ns of common applicatio n server environments. For full dccumentation visit the on-line WebSphere Information Center.To begin, select an entry from ths list below to mtialize a produc

49、t mstaliaton wizard. Alternatively scIcct a product on the navigotion listto left to read descriptions of the products and browce belpdocumentation and cupport linkc before darting an incta lation wizard WebSphere A pplication Server Network Deployment' Launch the irstallatioa wizarC for WebSphe

50、re Applicatio n Server Netwo rk De ploy me rv-IBM HTTP Server® Launch lhe irslaliaiioa wtzarc Tor li 丨十 berver.Webserver plug-ins用 Launch the irskillation wizard forWeb Serverpluqins.Application ClientsLaunch the istallatior wizard for Applicaion Clierts.Application Server Toolkit选择:IBM HTTP Se

51、rver氏 Launch the installation wiznrcKorlBM HTTP Seiver.如下图:meition Diagramsationition)dateHd I'k Deployment liation Clients Insipport Assistantitiere Softwaret Application Server ToolkitLaunch the installation wizard for ths Application Server Toolkit.安装过程中询问是否创建IHS的组、用户,按照提示创建即町.注意管理用户和密得创建卜。一般

52、安 装过程会比较顺利。安装后可以使川如下命令心动和停止IHS目录:/opt/IBM/HTTPServer/bin./apachectl start stop IHS的启动和停止./adminctl start stop IHS管理控制台的启动和停止注意:假如报httpd: Could not determine the serve" fully qualified domain name, using 9 for ServerName.就要修改最简单的,修改/opUIBM/HTTPServer/conf/httpd.conf文件.修改:ServerName &l

53、t;server name or ip addr>我的改ServerName itatmp3:803.安装web插件注意:以卜操作在itatnp3主机上执彳j:WEB 插件的安装包也在 C88T0ML_WAS61ND.Supplements_Linux32B. tar. gz 包中 执行: /launchpad, sh如卜图:3Application ServerEnglishWebSphereLanguage selectionWelcomeInstallation Diagrams V/eoSphere Applcarion ServerNpM/nrk Opploymrt Instn

54、llnton IBM htt尸serverinuaiiauon V/eo Server plug- ns Installation Applicaton Clients Installation Applicaton Ser/er ToolkitInctallationIBM upaate insraierrorWebSphere S&tware InstallAionIBM Inslalldtion Factury forV/eoSphere ApoItoation ServerIBM Support Assistant Installation ExilWelcome to Web

55、Sphere Application Server Network DeploymentIBM WebSphere Application Serr Network Deployment. Version 6.1 1$ an integraed platorm that co n tai ns an Applic ation Server. Web cfevelopme nt too is .a Web server, and add tional supporting softwaie aixj dcx;u7»crtatiori This lounchpmJ may serve as a single point of reference for installing your Applicaton Serverenyironrnent.Wc necofntncnd viewing tho installation c aqrams for ill"trdtion3 of conmoc application server env ronments. For full docurrentation visit the on-

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论