NonStop Server Guide for BEA WebLogic Server 9.2
Configuring Persistent WebLogic Server Processes
HP NonStop Server Guide for BEA WebLogic Server 9.2—529891-002
4-10
CPUselector
current working directory. By default, the server environment file is named nm-
server.env and must be located in $WL_HOME/common/nodemanager but both
values can be changed in the nodemanager.sh script. If the file is present, the script
invokes the file (for example, .nm-server.env). The script can then use the variable
WLS_SERVER to selectively set the environment variables to be used by
CPUselector.
The server environment file should set the appropriate environment variables and
DEFINEs based on the server name passed. The variables and their functions are
described later in this section. CPUselector uses the environment variables to
determine the load-balancing algorithm, the CPUs to use, and the order for each
server. Using these variables, you can avoid configuring replication groups in a way
that the primary and secondary server will never be placed in the same CPU. The
caveat being that a 2-CPU system will necessitate both servers being placed in the
same CPU after a CPU failure; otherwise one of the servers will not restart.
CPUselector
The task of CPUselector is to determine the CPU to be used when starting the
Managed Server. The program first determines the available CPUs. It then calculates
the current load and selects the CPU with the minimum load. The two significant
environment variables used by CPUselector are WLS_CPUS and
WLS_LOADBAL_FUNC.
WLS_CPUS is a space-separated list of valid CPU numbers and has a maximum value
of 16. WLS_CPUS determines the available CPUs for selection by the server and the
order in which the computed loads are compared. That is, WLS_CPUS="3 2 0" will
cause the load for CPU 3 to be examined first, then CPU 2, and finally CPU 0. If two
CPUs have the same (minimum) load, the first CPU examined will be used. If no CPU
contained in WLS_CPUS is currently up, no CPU will be selected.
Example 4-1. Server Environment File
case $WLS_SERVER in
ms1)
WLS_CPUS="2 3"
WLS_LOADBAL_FUNC="no_load"
;;
ms2)
WLS_CPUS="4 5"
WLS_LOADBAL_FUNC="no_load"
;;
*)
WLS_CPUS="2 3 4 5"
WLS_LOADBAL_FUNC="jvm_load"
;;
esac
# Common DEFINEs and variables can go here or in commEnv.sh










