serverindexnslookup
nslookup 时间:2021-04-18 阅读:(
)
CopyrightIBMCorporation2006TrademarksMakeaquickerandeasierrecoveryfromanunplanneddeploymentmanagerfailoverPage1of7MakeaquickerandeasierrecoveryfromanunplanneddeploymentmanagerfailoverRohithAshokNovember22,2006Fewthingsaremorestressfulandfrustratingthananunplannedoutage.
ThisisespeciallytruewhentheunplannedoutageisthedeploymentmanagerofalargeNetworkDeploymentcell.
ThisarticlewalksthroughexamplesofsomefeaturesavailableinIBMWebSphereApplicationServerNetworkDeploymenttohelpyouprepareforaneasyrecoveryfromsuchanoutage.
IntroductionByitsverynature,WebSphereApplicationServerNetworkDeploymentisadistributedsystemrangingacrossmanymachines.
Whilefewthingsaremorestressfulandfrustratingthananunplannedoutage,therearewaysyoucanlessentheimpact.
Thegoalofthisarticleistoshowhowyoucanharnessthissystemandmakerecoveryaquickandsimpletask.
ThisarticleassumesyouhaveagoodunderstandingofWebSphereApplicationServerNetworkDeploymentandsomeknowledgeofnetworkconfiguration.
SamplecellForthepurposesofthisarticle,let'sassumewehaveacellwithfivenodes(Figure1).
Thenodecountisn'tsignificant,butthemorenodesyouhave,thegreatertheimpactwhenthedeploymentmanagerislost.
Figure1.
SamplecelldeveloperWorksibm.
com/developerWorks/MakeaquickerandeasierrecoveryfromanunplanneddeploymentmanagerfailoverPage2of7Thiscellisspreadacrossfivedifferentsystems:System1:Node1(1NodeAgent/20applicationservers)Host:node1.
samplecompany.
com(10.
10.
0.
1)System2:Node2(1NodeAgent/20applicationservers)Host:node2.
samplecompany.
com(10.
10.
0.
2)System3:Node3(1NodeAgent/20applicationservers)Host:node3.
samplecompany.
com(10.
10.
0.
3)System4:Node4(1NodeAgent/20applicationservers)Host:node4.
samplecompany.
com(10.
10.
0.
4)System5:DeploymentManagernodeHost:dmgr.
samplecompany.
com(10.
10.
0.
5)Oneachcluster,asingleapplicationisinstalledforatotalof20applications.
Ifthiswasaproductioncell,andthedeploymentmanager'smachinesimplydiedandwascompletelyunrecoverable,itwouldbeverydifficulttoreconstitutethiscellquickly.
Yourbestbetwouldbetotryandrestorethedeploymentmanagerfromsomebackup,assumingonewastaken.
Thedeploymentmanagerholdstheconfiguration--themasterrepository--fortheentirecell.
Ifyoulookatthefilesystemonthedeploymentmanager,youwillseeallfournodesdefined,aswellasthedeploymentmanagernode.
Thisconfigurationmakesuptheentirecell.
Listing1.
System5/WebSphere/AppServer/profiles/Dmgr01/config/cells/productionCell/nodes/dmgrNode/.
.
.
/WebSphere/AppServer/profiles/Dmgr01/config/cells/productionCell/nodes/node1/.
.
.
/WebSphere/AppServer/profiles/Dmgr01/config/cells/productionCell/nodes/node2/.
.
.
/WebSphere/AppServer/profiles/Dmgr01/config/cells/productionCell/nodes/node3/.
.
.
/WebSphere/AppServer/profiles/Dmgr01/config/cells/productionCell/nodes/node4/.
.
.
Theapplicationservernodes,however,donotneedtheentirecellconfiguration;rather,theyneedonlythesubsetoftheconfigurationthattheythemselvesrequire.
Eachindividualnodehastheentireconfigurationpertainingtoitsownnodeandjusttheserverindex.
xmloftheothernodes.
Listing2.
System1/WebSphere/AppServer/profiles/Dmgr01/config/cells/productionCell/nodes/node1/.
.
.
/WebSphere/AppServer/profiles/Dmgr01/config/cells/productionCell/nodes/node2/serverindex.
xml/WebSphere/AppServer/profiles/Dmgr01/config/cells/productionCell/nodes/node3/serverindex.
xml/WebSphere/AppServer/profiles/Dmgr01/config/cells/productionCell/nodes/node4/serverindex.
xml/WebSphere/AppServer/profiles/Dmgr01/config/cells/productionCell/nodes/dmgrNode/serverindex.
xmlMethod1:SetupthebackupnodeTheplanhereistouseanapplicationservernodeasabackup.
Byreplicatingtheentireconfigurationtreefromtheactualdeploymentmanagernodetoanotherapplicationservernode,ibm.
com/developerWorks/developerWorksMakeaquickerandeasierrecoveryfromanunplanneddeploymentmanagerfailoverPage3of7thedeploymentmanagercanbequicklyrestartedonthebackupnode.
Tobegintheprocess,youfirstneedanapplicationservernode.
Inaproductionenvironment,itisbestnottouseanodethatservesapplications,butrathertochooseanewnodededicatedasabackup.
A.
Createbackupnode1.
WewillfirstinstallWebSphereApplicationServeronanewsystem:System6.
Wheninstallingtheproduct,installitintothesamelocationonthefilesystemasthedeploymentmanagersystem.
IfyouinstalledWebSphereApplicationServerinthe/WebSphere/AppServerdirectoryonthedeploymentmanagersystem,makesureitisinstalledonthebackupsysteminthesameplace.
2.
CreateanewCustomorStandaloneprofile.
ThenodenamewewillgiveisbackupNode.
Then,federatethenewnodeintotheexistingcell.
Listing3.
System6/WebSphere/AppServer/profiles/Dmgr01/config/cells/productionCell/nodes/backupNode/.
.
.
System6:BackupnodeHost:backup.
samplecompany.
com(10.
10.
0.
6)Thisnode'spurposeisstrictlyforbackup/failover,notforhostinganyapplicationservers.
Whenthebackupdeploymentmanagerisrunning,itwillcreateitslogsintheexactsameplaceasdoesthedeploymentmanagersystem.
Eventhough/WebSphere/AppServer/profiles/Dmgr01/logshasnotbeencreatedbytheprofilemanagementtools,itwillbecreatedbytherunningserver.
B.
ConfigurebackupnodeRightnow,thebackupNodeisjustlikeanyothernode;itonlymanagesitsownconfigurationandasmallsubset(serverindex.
xml)fortheothernodes.
Tosetupthisnodeasabackup,youneedtoautomaticallyreplicatethedeploymentmanager'scell-wideconfiguration.
Todothis,youneedtosetupacustompropertyonthebackupNode'snodeagent,eitherusingtheadministrativeconsoleorbyusingasimplejythonscript.
Tousetheadministrativeconsole:3.
Thecustompropertycanbesetontheadministrativeconsole(Figure2)bynavigatingtoSystemAdministration=>NodeAgents=>nodeagent=>FileSynchronizationService=>CustomProperties=>New.
developerWorksibm.
com/developerWorks/MakeaquickerandeasierrecoveryfromanunplanneddeploymentmanagerfailoverPage4of7Figure2.
AddcustompropertyusingadministrativeconsoleThenewpropertytocreateis:Name:recoveryNodeValue:trueDescription:(optional)4.
Oncethispropertyisset,thenodeagentmustberestarted.
Thenexttimethenodeagentissynchronized,itwillextracttheentirecellconfiguration,notjustitsown.
Anytimeaconfigurationchangeismadeonthedeploymentmanagerandsynchronized,thisbackupNodewillalsodownloadthenewchange,regardlessofthenodethechangewasactuallydirectedto.
5.
YoudonotneedtocreateanyapplicationserversonthebackupNode.
Youonlyneedthenodeagentupandrunningtokeeptheconfigurationcurrent.
Alternatively,youcanuseajythonscripttosetthecustomproperty.
BelowisasimplescriptthatillustrateshowtosetthecustompropertyonthebackupNode'snodeagent.
(Beforerunning,changealloccurrencesofinthescripttotheactualnodename.
)Listing4.
Jythonscripttosetacustomproperty#ScripttocreatetherecoveryNodecustomproperty#Step1:Getahandletothenodeagentnodeagent=AdminConfig.
getid('/Node:/Server:nodeagent/')printnodeagent#Step2:GetahandletotheConfigSynchronizationServicesyncservice=AdminConfig.
list('ConfigSynchronizationService',nodeagent)printsyncservice#Step3:CreatethecustompropertyAdminConfig.
create("Property",syncservice,[["name","recoveryNode"],["value","true"]])#Step4:SaveAdminConfig.
saveibm.
com/developerWorks/developerWorksMakeaquickerandeasierrecoveryfromanunplanneddeploymentmanagerfailoverPage5of7C.
CreateascripttostartthedeploymentmanagerNowthatyouhavethedeploymentmanagerconfigurationautomaticallyreplicatedonthebackupNode,youneedawaytostartit.
YoucannotusethestandardStartServer.
shscript,asthescriptmakessomeassumptionsaboutrunningonthelocalnode.
StartServer[.
sh|.
bat]/startManager[.
sh|.
bat]worksbyreadingtheconfigurationofthelocalnodeandstartingaserveronthatnode.
IfyoutrytorunstartManager[.
sh|.
bat]onthebackupNode,itwillnotletyoutostartthedeploymentmanager;thedeploymentmanagerdoesnothavebackupNodeasitsnodename,butratherdmgrNode.
SinceyoucannotusetheexistingstartManagerscript,youmustcreateanotherscripttostarttheserver:6.
Run.
/startNode.
[sh|.
bat]-script.
Thiscommandwillgenerate:start_nodeagent.
sh(or.
batifWindows).
Youmusttheneditthescripttopointtothedeploymentmanagerconfigurationratherthanthenodeagent.
7.
Renamethescripttostart_backup_dmgr.
sh.
8.
Changethecontentsofthefile;thekeychangeisattheendofthefileintheexeccall:Listing5.
Modifystart_backup_dmgr.
shexec"/build/websphere/WASX/u0622.
06.
wasx/AppServer/java/bin/java".
.
.
"/build/websphere/WASX/u0622.
06.
wasx/AppServer/profiles/AppSrv01/config""productionCell""backupNode""nodeagent"""9.
Changethe"backupNode"todmgrNodeand"nodeagent"todmgrtoread:Listing6.
Modifystart_backup_dmgr.
shexec"/build/websphere/WASX/u0622.
06.
wasx/AppServer/java/bin/java".
.
.
"/build/websphere/WASX/u0622.
06.
wasx/AppServer/profiles/AppSrv01/config""productionCell""dmgrNode""dmgr"""Theoutputofyournewstart_backup_dmgr.
shisverydifferentthantheexpectedstartManager[.
sh|.
bat]output.
Thebackupdeploymentmanagershouldonlybeusedforoperationalcontrol,sinceanychangesmadetothesystemarenotreflectedbacktotheoriginaldeploymentmanager.
Method2:SharedfilesystemAsecondoptionisuseafilesystemthatissharedbetweentheprimarydeploymentmanagersystemandabackupsystem.
Youcansetupasecondsystemtosharethedeploymentmanagerprofileitself,andstartthedeploymentmanageronthatsecondsystem.
IfyouexamineaV6.
0.
XorV6.
1installation,allthedatapertainingtoadeploymentmanager(oranyprofileforthatmatter)isstoredundertheWAS_HOME/profiles/directory.
ConsidertheearlierexamplewherethedeploymentmanagerisinstalledonSystem5undertheHFS:/WebSphere/AppServer/profiles/Dmgr01/config/cells/productionCell/nodes/dmgrNode/.
.
.
Again,youneedtoinstallWebSphereApplicationServeronSystem6.
However,thistimeyoudonotneedtocreateanyprofiles,youcaninsteadsharethedeploymentmanager'sprofiledirectory.
developerWorksibm.
com/developerWorks/MakeaquickerandeasierrecoveryfromanunplanneddeploymentmanagerfailoverPage6of7BymountingtheshareddirectoryinexactlythesameplaceonSystem6,youhaveessentiallyduplicatedthesystem.
Theduplicationoftheprofileenablesthesamedeploymentmanagertobestartedontheothersystem.
Oncethisdirectoryisshared,youcanrunstartManager[.
sh|.
bat]fromthebackupsystem.
Thedownsidetothismethodisthesharedfilesystemmustbemaintainedbyyou.
Therecanalsobesomeconsiderableperformancecoststousingasharedfilesystem,bothonthemastersystemandonthebackupsystem.
Onemajoradvantageofthissystemisthatanychangesmadetothedeploymentmanager'smasterrepositorywhileusingthebackupsystemarecommitted.
Oncetheprimarydeploymentmanagermachineisrebuilt,thechangeswillnotbelostwhenthefilesystemisremounted.
ConfiguringDNSformulti-homedhostsOnceyouhavefoundawaytostartadeploymentmanageronaremotesystem,youstillmayhavesomeissuestoresolve.
Whenyouoriginallyconfiguredthatdeploymentmanager,aspecifichostthatresolvedtoaspecificIPwasgiven.
Inourexample,thehostnamedmgr.
samplecompany.
comresolvedto10.
0.
0.
5.
Toenablethedeploymentmanagertobelocatedonthebackupsystem(10.
0.
0.
6)weneedtosetupwhat'scalledamulti-homeDNSentry.
Inourexample,weareusingmultipleinterfacesacrossmultiplemachines,eachwithasingleIPaddresspermachine.
HereisanexampleofourDNSentry:Listing7.
DNSentryADMIN:SYSTEM6:/u/ADMIN>nslookupdmgr.
samplecompany.
comDefaultingtonslookupversion4Startingnslookupversion4Server:dnsserver.
samplecompany.
comAddress:10.
0.
0.
100Name:dmgr.
samplecompany.
comAddresses:10.
0.
0.
5,10.
0.
0.
6ByconfiguringtheDNSentryfortwohosts,itenablesaneasytransitionbetweenthemsincenore-configurationisneeded.
Aslongasonlyonesystemoneitherhostisrunningatanygiventime,onlyonedeploymentmanagerwillbeused.
Thenodeagentsandclientswillautomaticallytrythefirst(primary)addressandthenfailovertotrythesecond(backup)address.
Onceacellhasbeensetupinthisway,thedeploymentmanagerandallnodeagentsmustberestartedtore-readtheconfiguration.
Bydefault,theJVMcachesDNSentriesandtherestartisneededtorefreshthem.
ConclusionThisarticlediscussedonewayofbuildingamorefaulttolerantdeploymentmanagerusingfeaturesthatexistinWebSphereApplicationServerNetworkDeploymentV6.
x,anddescribedhowtouseeitheraWebSphereApplicationServerconfigurationoptionorasharedfilesystemtoautomaticallyreplicatetheentirecell-wideconfigurationtoabackupsystem.
ThisbackupsystemthenusesapreconfiguredDNSentrytostartupandreplacethefaileddeploymentmanager.
Thelossofadeploymentmanagerisagreatblowtoaproductioncell,andsoitiscriticalthatthisserverremainrunningandfunctionaltoensureahighlyavailabletopology.
ibm.
com/developerWorks/developerWorksMakeaquickerandeasierrecoveryfromanunplanneddeploymentmanagerfailoverPage7of7RelatedtopicsWebSphereApplicationServerInformationCenterSettingtherecoveryNodepropertyCopyrightIBMCorporation2006(www.
ibm.
com/legal/copytrade.
shtml)Trademarks(www.
ibm.
com/developerworks/ibm/trademarks/)
TmhHost是一家国内正规公司,具备ISP\ICP等资质,主营国内外云服务器及独立服务器租用业务,目前,商家新上香港三网CN2 GIA线路VPS及国内镇江BGP高防云主机,其中香港三网CN2 GIA线路最低每月45元起;同时对美国洛杉矶CN2 GIA线路高防及普通VPS进行优惠促销,优惠后美国洛杉矶Cera机房CN2 GIA线路高防VPS季付99元起。香港CN2 GIA安畅机房,三网回程CN2 ...
Pia云是一家2018的开办的国人商家,原名叫哔哔云,目前整合到了魔方云平台上,商家主要销售VPS服务,采用KVM虚拟架构 ,机房有美国洛杉矶、中国香港和深圳地区,洛杉矶为crea机房,三网回程CN2 GIA,带20G防御,常看我测评的朋友应该知道,一般带防御去程都是骨干线路,香港的线路也是CN2直连大陆,目前商家重新开业,价格非常美丽,性价比较非常高,有需要的朋友可以关注一下。活动方案...
官方网站:点击访问星梦云活动官网活动方案:机房CPU内存硬盘带宽IP防护流量原价活动价开通方式成都电信优化线路4vCPU4G40G+50G10Mbps1个100G不限流量210元/月 99元/月点击自助购买成都电信优化线路8vCPU8G40G+100G15Mbps1个100G不限流量370元/月 160元/月点击自助购买成都电信优化线路16vCPU16G40G+100G20Mb...
nslookup为你推荐
experiencedto操作httpphpweb破解wifi破解黑科技中国企业在线中金在线和中金公司有关系吗支付宝是什么什么是支付宝? 请详细介绍.flashfxp下载怎样用FlashFXP从服务器下载到电脑上?北京大学cuteftp加多宝和王老吉王老吉和加多宝谁好喝点?piaonimai跪求朴妮唛的的韩文歌,不知道是哪一部的,第一首放的是Girl's Day《Oh! My God》。求第三首韩文歌曲,一男一女唱的。腾讯公司电话腾讯公司总部电话多少
kvmla godaddy续费优惠码 wordpress技巧 win8.1企业版升级win10 512m内存 铁通流量查询 193邮箱 炎黄盛世 中国电信测网速 网游服务器 常州联通宽带 华为云服务登录 114dns 金主 免费php空间 购买空间 国外网页代理 重庆服务器 cdn服务 双11促销 更多