Using Multiple Web Servers With Different PeopleTools Versions on a Single Windows Serve
description
Transcript of Using Multiple Web Servers With Different PeopleTools Versions on a Single Windows Serve
©NERC & ©Go-Faster Consultancy Ltd.
Using Multiple Web Servers
With Different PeopleTools
Versions
on a Single Windows ServeJohn Morrish, NERC, [email protected]
David Kurtz, Go-Faster Consultancy. www.go-faster.co.uk
Session 615
October, 20th 16:00 to 16:45
Page 2 ©NERC & ©Go-Faster Consultancy Ltd.
Natural Environment Research Council
• 4 Research Centres
• British Antartic Survey• British Geological Survey• Centre for Ecology and Hydrology
• Proudman Oceanographic Laboratory
• 22 Collaborative Centres
Page 3 ©NERC & ©Go-Faster Consultancy Ltd.
Natural Environment Research Council
• Directly employed staff 2,500+
• Fellows, PHDs,Master Students, Higher education institutes 2,400+
•Funding £220 m (2002/3)
Page 4 ©NERC & ©Go-Faster Consultancy Ltd.
Initial Hardware Setup
• Logical server setup
• 40 users & low concurrent usage
• Database/Application Servers• Sun single cpu 750mhz 1 GB Mem• Solaris and Oracle
• Web Server • Intel P3 600mhz 640 M Mem• Linux Red Hat
Page 5 ©NERC & ©Go-Faster Consultancy Ltd.
Unix Database Server
DataBase Instances
Application and Batch Servers (User PRD)
Production
SupportUAT
Configuration - Old
LinuxWeb Server
Apache
DMO
Production
SYS
DEV
Training
UAT
Support
DMO
Production
SYS
DEV
Training
UAT
Support
Application and Batch Servers (User DEV)
TrainingDEV
SYS
DMO
Win 2000Report Server
DMO
Production
SYS
DEV
Training
UAT
Support
Page 6 ©NERC & ©Go-Faster Consultancy Ltd.
Web Server as delivered – with some important directories
D:\….Weblogic
myserver
clientclasses
psftdocs
HR80PRD
HR80UAT
Peoplesoft8
public_html
HR80PRD
HR80UAT
serverclasses
servletclasses
Weblogic.properties for everything
Applies to all myserver sites
configuration.properties per site
signon.html per site
Applies to all myserver sites
Applies to all myserver sites
Page 7 ©NERC & ©Go-Faster Consultancy Ltd.
Application Servers as Delivered
D:\... Psoft8\HR8SP1 ActiveX api appserv HR80PRD HR80UAT prcs HR80PRD HR80UAT bin cblbin class crw
all software under the one directory
Page 8 ©NERC & ©Go-Faster Consultancy Ltd.
Why Change?
• Delivered structure for servers does not lend itself to easy PeopleTools upgrade
• Initial logical server structure too unpredictable
• Early tests, indicated system failure with the proposed increase
• Increased user base 40+ to 2500+ requires substantial increase in flexibility and robustness
Page 9 ©NERC & ©Go-Faster Consultancy Ltd.
And the GSC?
• Also the technique appears to be officially supported• 717563: WebLogic: How do I install multiple
instances of WebLogic 5.1 • 200731212: How to Start Multiple WebLogic 5.1
Instances on Windows 2000/NT as Services (SP9)• 714889 - Installing and Removing the Multiple
WebLogic NT Services • Partially correct – but use beasrv.exe
• 720177 - How to configure Weblogic for multiple NICs?
Page 10 ©NERC & ©Go-Faster Consultancy Ltd.
The Hardware Change - Physical Server setup
• Database Server• 2 cpu 750mgz – 3GB Mem
• Application Server
• 2 cpu Xeon 2.4 ghz – 1 GB Mem
• Web Server• 2 cpu 1.4 ghz – 2 GB Mem
• Report Server• 1 cpu Xeon 2.4 ghz – 1GB Mem
Page 11 ©NERC & ©Go-Faster Consultancy Ltd.
The Software
• Database – Oracle 8.1.7.4 on Solaris 8• All other servers Windows 2000• PeopleSoft HRMS 8.0 SP1• PeopleTools 8.18• SQR 8.18• Crystal 8.0
Page 12 ©NERC & ©Go-Faster Consultancy Ltd.
Configuration - New
Win 2000 Application Server
Production
Support
UAT
Win 2000 Application Server
DMO
Training
SYS
DEV
Test
Win 2000Web Server
DMO
Production
SYS
DEV
Test
Training
UAT
Support
Win 2000 Report Server
DMO
Training
SYS
Test
DEV
Win 2000 Report Server
Production
Support
UAT
Unix Database Server
DMO
Production
SYS
DEV
Test
Training
UAT
Support
Page 13 ©NERC & ©Go-Faster Consultancy Ltd.
Web Server Changed
D:\..Weblogic
myserver
myserverHR80PRD
clientclasses
psftdocs
HR80PRD
public_html
HR80PRD
serverclasses
servletclasses
myserverHR80UAT
has Weblogic.propertiesunique to this myserverHR80PRD
has configuration.properties
has signon.htmlunique to this myserverHR80PRDunique to this myserverHR80PRD
Page 14 ©NERC & ©Go-Faster Consultancy Ltd.
Application Servers Changed
D:\... Psoft8 HR8SP1PRD ActiveX …… HR8SP1UAT ActiveX api appserv HR80UAT prcs HR80UAT bin cblbin class crw ……
Each instance has all the software
Each instance has all the software
Page 15 ©NERC & ©Go-Faster Consultancy Ltd.
Perceived Benefits
• Allowed us to progressively upgrade PeopleTools 8.14.10 to 8.18.x
• Different Tools versions in different environments. Permitting testing of tools versions through chain of environments.
• Substantial increase in system stability & scalability with the new structure
• Reviewed several physical/logical combinations
Page 16 ©NERC & ©Go-Faster Consultancy Ltd.
Configuration - Considerations
• Tuxedo
• Application Servers
• Weblogic webserver
Page 17 ©NERC & ©Go-Faster Consultancy Ltd.
Tuxedo
• Install on each server• One Important Configuration Consideration
• Some possible tuning opportunities
Page 18 ©NERC & ©Go-Faster Consultancy Ltd.
Queue and Maximum Message Size
• Typical Tuxedo Message ~100Kb• If message > ¾ of message queue/max
message size then written to disk• This is slow
• Provide room for queuing• Recommend at least 256Kb
• See 8.4 Red Paper for on-line performance
Page 19 ©NERC & ©Go-Faster Consultancy Ltd.
Number of Message Queues
• Number of queues =
2 * (
PSAPPSRV + PSQCKSRV + PSQRYSRV + PSSAMSRV + PSDBGSRV + PSPUB*)
+ 7
• (More server types in 8.4).
Page 20 ©NERC & ©Go-Faster Consultancy Ltd.
Tuxedo – IPC settings
Page 21 ©NERC & ©Go-Faster Consultancy Ltd.
Weblogic Issues
• Only one Windows Webserver• Used for Dev, Test and Production
• On Windows, only one Weblogic installation per Weblogic version.
• Want to run different PeopleTools versions on same Weblogic installation – how to upgrade?
Page 22 ©NERC & ©Go-Faster Consultancy Ltd.
Weblogic Server
• Only one Weblogic server per physical windows server because of use of registry.
• These would be environmental variables on Unix.
Page 23 ©NERC & ©Go-Faster Consultancy Ltd.
How to create a copy of myserver – part 1
• Copy the entire myserver directory to myserver_newserver
• Amend the Weblogic.properties for the new server
• Rename the directory in \psftdocs to the new server (say newserver)
• Amend the configuration.properties within this directory
Page 24 ©NERC & ©Go-Faster Consultancy Ltd.
How to create a copy of myserver – part 2
• Rename the directory under public_html to the new server (say newserver)
• Amend the signon.html within this directory• Delete access.log & other log files from
myserver_newserver directory
Page 25 ©NERC & ©Go-Faster Consultancy Ltd.
Weblogic SP9
• Required in order to support multiple NT services.
• BEA Documentation uncharacteristically contradictory• beasvc.exe instead of install.exe and remove.exe
Page 26 ©NERC & ©Go-Faster Consultancy Ltd.
Multiple Application Servers
• Two new servers for Application Servers.• Still need different PeopleTools versions on
each servers• Multiple %PS_HOME%
• Only one Tuxedo installation per Windows server• One configuration to support all domains
•Application Servers and Process Schedulers under Tuxedo
Page 27 ©NERC & ©Go-Faster Consultancy Ltd.
Multiple Application Servers
• One PeopleTools version per %PS_HOME%• Need to set this variable before running
psadmin
Page 28 ©NERC & ©Go-Faster Consultancy Ltd.
PIA Install quirks
• PIA Location
• Weblogic NT Services
Page 29 ©NERC & ©Go-Faster Consultancy Ltd.
Weblogic NT Services
• PeopleSoft PIA Installation process only creates service that runs default myserver
• Don’t run myserver, use it as a template only
Page 30 ©NERC & ©Go-Faster Consultancy Ltd.
Create NT Service per Web Server
• Used beasvc.exe to create and delete NT services for each Weblogic server.• Introduced at SP9• Do not use install.exe and remove.exe (up
to SP8)• If you have to delete a service you will
probably have to reboot the Windows server because the service table will lock.
Page 31 ©NERC & ©Go-Faster Consultancy Ltd.
First, do it without a service
• Get the various web servers starting from just an ordinary batch script.• Get the environmental variables for the
JVM right.• The put those variables into script to create
service.
Page 32 ©NERC & ©Go-Faster Consultancy Ltd.
installNtServiceXXXX.cmd Part 1 of 3
set MYSERVER=myserverXXXXset JAVA_HOME=C:\PROGRA~1\JavaSoft\
JRE\132DB1~1.1_0set WEBLOGICHOME=d:\ps\weblogic51set CLASSPATH=%WEBLOGICHOME%\lib\
weblogic510spboot.jar;%WEBLOGICHOME%\classes\boot;%WEBLOGICHOME%\eval\cloudscape\lib\cloudscape.jar
…
Page 33 ©NERC & ©Go-Faster Consultancy Ltd.
installNtServiceXXXX.cmd Part 2 of 3
• This is variable comes from the batch script.
…
set WEBLOGICCLASSPATH=%WEBLOGICHOME%\lib\weblogic510sp.jar;%WEBLOGICHOME%\%MYSERVER%\servletclasses\entbase.jar;%WEBLOGICHOME%\%MYSERVER%\servletclasses\entssl.jar;%WEBLOGICHOME%\%MYSERVER%\servletclasses\gnu-regexp-1.0.8.jar;%WEBLOGICHOME%\%MYSERVER%\servletclasses\enthttp.jar;%WEBLOGICHOME%\%MYSERVER%\servletclasses;%WEBLOGICHOME%\license;%WEBLOGICHOME%\classes;%WEBLOGICHOME%\lib\weblogicaux.jar;%WEBLOGICHOME%\%MYSERVER%\serverclasses
…
Page 34 ©NERC & ©Go-Faster Consultancy Ltd.
installNtServiceXXXX.cmd Part 3 of 3
…
set CMDLINE="-ms64m -mx64m -classpath \"%CLASSPATH%\" -Dweblogic.class.path=\"%WEBLOGICCLASSPATH%\" -Djava.security.policy==\"%WEBLOGICHOME%\weblogic.policy\" -Dweblogic.system.name=%MYSERVER% -Xrs PSweblogic"
%WEBLOGICHOME%\bin\beasvc.exe -install -svcname:"Weblogic Server 5.1.0 - %MYSERVER%" -javahome:%JAVA_HOME% -execdir:%WEBLOGICHOME% -extrapath:%WEBLOGICHOME%\bin -cmdline:%CMDLINE%
Page 35 ©NERC & ©Go-Faster Consultancy Ltd.
How the services should look
Page 36 ©NERC & ©Go-Faster Consultancy Ltd.
PIA Location
• No matter what you specify for the location the servlet files go to myserver!• (PT8.18.10)
• So don’t actually use myserver• Use it as a template
Page 37 ©NERC & ©Go-Faster Consultancy Ltd.
Upgrading Tools for Weblogic – Part 1 of 2
• Install the websever changes into myserver• Copy the following 3 directories from
myserver to myserver_newserver structure• Clientclass• Serverclasses• servletclasses
Page 38 ©NERC & ©Go-Faster Consultancy Ltd.
Upgrading Tools for Weblogic – Part 2 of 2
• Backup Weblogic.properties, configuration.properties, signon.html to compare with new files for changes
• Copy all files from myserver\psftdocs to target server
• Copy all files from i to target server• Rebuild Configuration files from scratch &
compare to backups
Page 39 ©NERC & ©Go-Faster Consultancy Ltd.
Upgrading
• You can move an upgrade between different versions of PeopleTools• Do in 2-tier mode• Can connect to different patch releases
• 8.18.xx (may not be supported)
• If different minor releases go via file• 8.14 -> 8.18• Just like a PSFT patch!
• Thus Application upgrades can overtake PeopleTools upgrade.
Page 40 ©NERC & ©Go-Faster Consultancy Ltd.
Other bits
• Tuxedo and Terminal Services• Don’t• Can’t start a server when a TS window open
• Multiple NIC’s• Different IP address and/or different ports• Load balance across IP address
• even on same network card • and on same physical NT server• Hence multiple JVM without Weblogic clusters
Page 41 ©NERC & ©Go-Faster Consultancy Ltd.
Finally
• Questions?
©NERC & ©Go-Faster Consultancy Ltd.
Using Multiple Web Servers
With Different PeopleTools
Versions
on a Single Windows ServerJohn Morrish, NERC, [email protected]
David Kurtz, Go-Faster Consultancy, [email protected]
Session 615
October, 20th 16:00 to 16:45