Getting advice with Metric Server
Metric Server provides server load information to the Load Balancer in the form of system-specific metrics, reporting on the health of the servers.
Before you begin
When Metric Server is enabled, the Metric Server agent must be installed and configured to
provide the defined metrics on all servers that are defined in the cluster. If you are using IPv6
protocol on your machine and want to use Metric Server, you must check to see whether protocol 58 is
defined to be ICMPv6 in the protocol file. If protocol 58 does not exist, you
must insert the following line in the protocol file:
ipv6-icmp 58 IPv6-ICMP # IPv6 interface control message protocol
The protocol
file is in the following directory:- /etc/protocols
- C:\windows\system32\drivers\etc\
About this task
The Load Balancer manager queries the Metric Server agent that resides on each of the servers,
assigning weights to the load-balancing process by using the metrics gathered from the agents. The
results are also placed into the manager report.
Note: When two or more metrics are gathered and
normalized for each server into a single system load value, rounding errors might occur.
Procedure
Example
For example, to communicate by using the IP address
1.2.3.4
on a machine where both the IPv4 and IPv6 protocols are enabled, add the
following code to the metricserver
script.if [[ "$1" = "s" || "$1" = "st" || "$1" = "sto" || "$1" = "stop" ]]
then
/opt/IBM/WebSphere/Edge/ULB/java/jre/bin/java -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv6Stack=false
-Djava.rmi.server.hostname="1.2.3.4" -DMSstop -cp $LB_CLASSPATH com.ibm.internet.nd.sma.SMA_AgentStop
$LB_RMIPORT &
else
/opt/IBM/WebSphere/Edge/ULB/java/jre/bin/java -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv6Stack=false
-Djava.rmi.server.hostname="1.2.3.4" -DMS -cp $LB_CLASSPATH com.ibm.internet.nd.sma.SMA_Agent $LB_RMIPORT
$LOG_LEVEL $LOG_SIZE $LOG_DIRECTORY $KEYS_DIRECTORY $SCRIPT_DIRECTORY &
fi
To communicate by using the IPv6 address of
2002:92a:8f7a:162:9:42:92:67
, add the following code to the
metricserver
script.start /min /wait %IBMULBPATH%\java\jre\bin\java -Djava.net.preferIPv4Stack=false -Djava.net.preferIPv6Stack=true
-Djava.rmi.server.hostname="2002:92a:8f7a:162:9:42:92:67" -DMS -Xrs -cp %LB_CLASSPATH%
com.ibm.internet.nd.sma.SMA_Agent %RMI_PORT% %LOG_LEVEL% %LOG_SIZE% %LOG_DIRECTORY%
%KEYS_DIRECTORY% %SCRIPT_DIRECTORY%
goto done
:stop
%IBMULBPATH%\java\jre\bin\java -Djava.net.preferIPv4Stack=false -Djava.net.preferIPv6Stack=true
-Djava.rmi.server.hostname="2002:92a:8f7a:162:9:42:92:67" -DMSstop -cp %LB_CLASSPATH%
com.ibm.internet.nd.sma.SMA_AgentStop %RMI_PORT%