NonStop Server Guide for BEA WebLogic Server 8.1

Configuring Persistent WebLogic Server Processes
HP NonStop Server Guide for BEA WebLogic Server 8.1529891-001
4-9
CPUselector
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 below. CPUselector will then use the environment variables to determine
what load-balancing algorithm to use and what CPUs can be used, and in what order
for each server. Using these variables, you can configure replication groups in such a
way that the primary and secondary server will never be placed in the same CPU. The
one 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 be restarted.
CPUselector
The task of CPUselector is to determine what CPU to use when starting the
Managed Server. The program first determines what CPUs are available. 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 can be 16 values at
most. WLS_CPUS determines what CPUs are available for selection by the server and
in what order 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.
The variable WLS_LOADBAL_FUNC determines what load-balancing algorithm is used
to compute the loads. The following sections describe how each load-balancing
function computes the current load. The sections also identify the files and
environment variables that are used.
Example 4-1. Example 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