零基础入门学习语言bbk tuxedo_第1页
零基础入门学习语言bbk tuxedo_第2页
零基础入门学习语言bbk tuxedo_第3页
零基础入门学习语言bbk tuxedo_第4页
零基础入门学习语言bbk tuxedo_第5页
已阅读5页,还剩40页未读 继续免费阅读

下载本文档

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

文档简介

AdministrationandAdditionalConfigurationObjectivesAftercompletingthislesson,youshouldbeabletodothefollowing:IdentifytheTuxedoadministrationtools.Usethetmadminadministrationutility.ConfigureadditionalparametersforServersandServices.Usesomeadditionaladministrationtools.AdministrationTools–AnOverallViewTheAdministrationAPIsTheAPIsprovidedirectaccesstorun-timeinformationintheBulletinBoard(moreformallycalledTuxedoManagementInformationBasesorMIBs).UseoftheAPItypicallyrequiresdevelopmentofaMIBapplicationoracommandscript.TheAdministrationAPIcanbeusedtoautomatecertainadministrativetasks.monitorlogfiles.dynamicallyreconfigureapplications.WewilldiscussMIBsinmoredetailintheMIBSmodule.AdministrationCommand-LineUtilityUsetmadminto:Monitorarunningsystem–somecommands.printserver(psr),printservice(psc)printqueue(pq),printclient(pclt)Dynamicallymodifysystem.Suspend/resume,Advertise/unadvertiseservices.ChangeservicepriorityandloadparametersPerformadministrativetasks.Bootandshutdowntheapplication,stopandrestartservers.ActivatethebackuptotheMasternodeasthenewMaster.Migrateconfiguredserverstoabackupmachine.TheAdministrationConsoleTheTuxedoAdministrationConsoleisaGUI(graphicaluserinterface)foradministrationofTuxedoapplications.TheAdministrationConsoleutilityisimplementedasaJavaappletthatisexecutedwithinawebbrowsersuchasIE/Firefox.TheAdministrationConsoleprovidescapabilitiesequivalenttotmadminAdministrationConsole–ScreenViewStartingaTuxedoApplicationUsetmboottoboottheentireTuxedoapplicationorpartsoftheapplication:mustberunontheMasternode.options Description------- --------------------------------A bootalladmin(DBBL,BBL,Bridge)servers-l<lmid>bootallserversonthelogicalmachine-g<group>GeneralAdministrativeTasksOnlytheTuxedosystemadministratorcanperformthetaskslistedbelow:Bootandshutdownservers.Cleanupandrestartservers.SendUnsolicitedNotificationmessagestoclients(butapplicationalsocan).Performservermigration.Switchthemasternodetothebackup.Reconnectapartitionedmachine.PerformTuxedosystemfilemaintenance.Abortorcommittransactions.tmadminCommandAvailabilityOnlyoneTuxedoadministratoratatimecanruntmadmintocontroltheapplication(shutdown,..),butotheruserscanruntmadmintoviewinformation(psr,…).tmadminCommandstofacilitatetmadminusageare:Command Description-------- --------------------------------------echo Echocommandstooutput(scripts)help Printlistofcommandsandhelpinfo.verbose Morefromsomeinformationalcommands.paginate Turnpaginationofoutputon/off.!,!! Shellescape,repeatlastshellescape.<CR> Repeatlastcommand.SettingtmadminDefaultsAllowsoptionstobesetbydefault.Exception:boot,stop/shutdown.Ifoptionsarenotgiven,printsdefaults.ForanMPconfiguration,toviewstatisticsforallmachinessetthefollowing:d–malldefault(d)[-cclientname][-ggroupname][-isrvid][-mmachine][-qqueuename][-sservice][-uusername][-bblocks][-ooffset][-zpath][-a{0|1|2}]SyntaxSomeAdditionaltmadminCommandsCleanUpandRestartServersThebbcleancommand:Cleansupresourcesattachedtodeadprocesses(forexample,queues)andremovesanyassociatedIPCresources.Restartsanydeadserversthataremarkedasrestartable.DoesdirectlywhatisnormallydoneattheSANITYSCANinterval.bbclean(bbc)[machine]SyntaxNormalandVerbosemodes–

tmadminPrintQueue(pq)PrintClientInformation:pclttmadminScripts-Unix(tmadmin2>&1<<!pqq!)awk‘BEGIN{print“tmadmin<<!\necho”}{if($1==“TOUPPER”}print“susp–q”,$2,“-S‘$1’”}END{print“q\n!”}’}|/bin/shOnUnix,suspendallTOUPPERservicesintheapplicationtmadminScripts-WindowsTheAdministratorcandeveloptmadminscriptstoobtaininformationonaregularbasis.ExampleofaWindowsscripttoprintallserver/service/queueinformation:PRINSTALL.CMD: echo“echo” > %TEMP%\tmadmin.txt echo“verbose”>> %TEMP%\tmadmin.txt echo“psr” >> %TEMP%\tmadmin.txt echo“psc” >> %TEMP%\tmadmin.txt echo“pq” >> %TEMP%\tmadmin.txt echo“q” >> %TEMP%\tmadmin.txt type%TEMP%\tmadmin.txt|tmadminSERVERSSectionParametersTheSERVERSsectioncontainsserverentrieswiththefollowingparameters(onlycommonlyusedparametersshown):CommandLineOptionsParameterCLOPTisusedtopassoptionstotheserver:Syntax:CLOPT=“<left>--<right>”.The<left>partisparsedbytheTuxedo-suppliedcodeintheserverprocess.The<right>partisprocessedbytheuser-writtenapplicationcodeintheserver.SomeCLOPTOptionFlagsCLOPTsupportsthefollowingflagsinterpretedbytheServerprocessmain()function:Tuxedoserveroptionsaredefinedinservopts;Wewilldiscussotheroptionssuchas(-r,-p)inlaterModules.Flags Description------- ----------------------------------------A advertiseallservicesintheserver-efile redirectsstandarderrortofile-ofile redirectsstandardoutputtofileSERVICEAliasingThebuildserverisusedtobuildservers;aservercansupportmultipleservices;servicenamescanbealiasedtofunctions:Syntaxforbuildserver:SomeoftheFlagsandDescriptionarehere:buildserver–f<source_files>-o<executable_file>-s<service>[,<service>...][:<function>]Flags Description------- ----------------------------------------ss1,s2,…ConfiguringMultipleSERVERInstancesSpecifiedinaSERVERSsectionentryforaServerMIN:settotheminimumnumberofinstances(processes)ofthisServerthatwillbestartedwhentheapplicationisbooted.MAX:settothemaximumnumberofinstances(processes)ofthisServerthatcanbestarted.ProcessFailuresAServerprocessmayfailasaresultofapplicationbugsorconfiguredoperatingsystemresource(IPC)limitsthatareexceededwhiletheapplicationisrunning.TheBBLeitherreportsafailureonly,orreportsafailureandrestartsthefailedServerprocessautomatically.TheautomaticrestartfunctioncanbeconfiguredforaServerusingRESTART=Y,MAXGEN,andGRACEparametersintheSERVERSsectionofUBBCONFIGConfigureServerstobeRestartableSetforaSERVERSsectionentry:RESTART:SettoYtoallowserverrestartafterfailure.MAXGEN:maximumnumberoflivesinspecificinterval;defaultis1;maximumis256.GRACE:thespecificintervalusedbyMAXGEN;0meansunlimitedrestart(notmended).RCMD:anyexecutableprogramorscripttoberunatrestarttime.MultithreadedServer(notin6.5)TuxedosupportsmultithreadedclientsandserversinTuxedo7.1,8.0andlaterversion.Threadsinaprocessareanalogoustoprocessesinanoperatingsystem–“parallel”execution.Multithreadedserversarebuiltwith–tbuildserver–f…-o…-s…-t*SERVERSserverconfigurationparametersMINDISPATCHTHREADSMAXDISPATCHTHREADSTHREADSTACKSIZESERVERSSectionExampleAnexampleSERVERSsectionshowingconfigurationentriesfor2applicationservers:...*SERVERSmyDBserver SRVGRP=ORA_GRP SRVID=1 CLOPT=“-A” RESTART=Y MAXGEN=10 GRACE=300myAPPserver SRVGRP=APP_GRPSRVID=1 CLOPT=“-A–omyApp.out–emyAPP.err\---xmyApp.audit”...ConfiguringtheSERVICESSectionTheSERVICESsectionisusedtosetparametervaluesforaservice:LOAD,PRIORITY,SVCTIMEOUT,BUFTYPE,…SERVICESisanoptionalsectiontmloadcfgeneratesawarningifnotdefined;defaultvaluesforLOAD,…areused.Serviceparametersareusedtoindicatedthatdata-dependentrouting(DDR)istobeperformedforaservice**DDRiscoveredinaseparateModuleSERVICESLOADParamterTheLOADparameterisusedtosetaloadfactorforaservice.Tuxedokeepscountofthetotalloadforeachserverrequestqueue(onequeueperserverprocess)andforservicerequestssenttoserversonothermachines.TheLOADfactorforaserviceisrelativetovaluesforotherservices.ThedefaultLOADvalueforaserviceis50LoadBalancingTheLoadBalancingfeatureisusedtodistributeservicerequeststotheServer/sbestabletocopewithprocessingtheservice.SetinRESOURCES:LDBALYWhenloadbalancingisenabled:selectalocal(onthismachine)serverthatisnotbusy.selecttheserverwiththeleastload,ifalllocalserversarebusy.LoadBalancingExampleLoadfactorisaddedtoserver’stotalload:LoadBalancingCanbeusedtooptimizeservicerequestthroughputand/orresponsetime.Severalcriteriaonwhichtobaseloadon(forexample,numberofdatabaseaccesses,totalservicetime).Generally,servicestakinglongertimesshouldbeconfiguredwith(relatively)higherloads.Servicestakingshortertimesshouldbeconfiguredwith(relatively)lowerloads.ServicePriority–PRIOParameterPrioritySetwiththePRIOparameter;determinespriorityoftheservicerequestinaqueue.HigherpriorityrequestsaredequeuedfirstbuteverytenthrequestisdequeuedFIFO.Preferredservicesmaybeappropriateforinfrequentbutmoreurgentrequests:assingahigherprioritywiththePRIOparameterfortheseservices.SERVICESConfigurationExampleAnexampleoftheSERVICESsectionshowingtheuseoftheLOAD,PRIO,SVCTIMEOUT,andBUFTYPEparameters:...*SERVICESACCTBALANCE LOAD=30 PRIO=70 SVCTIMEOUT=30 BUFTYPE=“VIEW32:account”...AdministrationofServicestmadmincommandsareprovidedto:advertiseaServiceinaserver.unadvertiseaService.changetheLOADvalueforaService.chagnethePRIO(RITY)valueforaService.suspendaService.resumeaService.UserLogFile,ULOGReview:ULOGislocatedbydefaultinAPPDIR.AloggedTuxedomessageincludesamessagecatalognameandnumber–theTuxedoSystemMessagereferencesectioncontainsdetailedinformationonthemessageincludinganactionforproblemresolution.TheULOGfilecanbelocatedelsewhere:RESOURCES:ULOGPFXparameterExample:Unix: ULOGPFX /app/files/gumbyWindows:ULOGPFX C:\apps\files\GUMBYAnalyzingtheULOGAnalysisofULOGistypicallyperformedbytheApplicationAdministrator–findingsareprovidedtoDevelopersforresolutionwhenappropriate:Oneproblemmaygenerateseveralmessages:Messagesappearingwhenaproblemfirstoccursusuallyreflecttherealoriginoftheproblem.ConsulttheTuxedoSystemMessagesreferencedocumentationformendation/sonproblemresolution.AnalyzingtheULOG-ExampleExample–ThesecondmessageindentifiedthesemaphoreproblembutthesymptomisthattheBBLfailedtostart:...151550.gumby!BBL...TracingATMIcallsTuxedoprovidesthefacilitytotraceexecutionwithintheclientandserver:Allowstheapplicationdeveloper(orAdministrator)totracetheflowofexecutionofaTuxedoapplication.CanbeveryusefulasitcanbeusedtotracetheATMIexecutionflowofarequestoriginatingintheclient,totheserveroradditionalservers,andbacktotheclient.TracedataincludesentryandexittimestampsandiswrittentotheULOGfile.UsingthetmtraceFaciltiySystem-SpecificDiagnosticToolsUnix/LinuxSystem:UseUnixSystemutilitiessuchassar,top–sometoolsarespecifictothesystemplatformandareprovidedbythesystemvendor.Windows:EventViewerTaskManagerPerformanceMonitorIPCResourcesTuxedousesOSIPCresources:NativetoUnix;emulatedonWindows.MonitorIPCresourceusagewithipcs:Unix:ipcscom

温馨提示

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

评论

0/150

提交评论