Load Balancing (-BAL)
Specify
the Load Balancing (-BAL) adapter command to logon
with SAP R/3 load balancing. The load balancing principle allows a
login to a server that will dynamically route processes based on the
availability of the application servers. Using load balancing typically
results in improved performance and addresses the potential for failure
from connecting to one specific application server. Additional information
about load balancing can be found in the SAP RFC SDK.
-BAL -H HOST -S R3NAME -G GRP- Option
- Description
-H HOST- Specify the server host name.
-S R3NAME- Specify the R/3 name of the system.
-G GRP- Specify the logon group.
Group typically has the default value of PUBLIC.
-BAL, the values
passed using -H, -S, and -G are
always the values for -BAL. Therefore, never use
the connection adapter commands for Host ID, System Number, or Gateway
Host, which also use -H, -S, and -G for
their values.sapms R3NAME 36SYSNR/tcps apmsTSI 3600/tcp-c 800 -u JSharp -p S836GJ -bal -h MSG40 -s TSI -g PUBLIC If
it is necessary to connect to a gateway, you can specify GWHOST=gwhost directly
within the adapter commands.
The Saprfc.ini file also supports the use of load balancing. The following is the example distributed by SAP as a sample entry in the Saprfc.ini file.
/*===================================================================*/
/* Type B: R/3 system - load balancing feature */
/*===================================================================*/
DEST=BIN
TYPE=B
R3NAME=TSI
MSHOST=MSG40
GROUP=PUBLIC
RFC_TRACE=0
ABAP_DEBUG=0
USE_SAPGUI=0
The following is an example of the R/3 adapter command string to accommodate using the Saprfc.ini file with load balancing:
-d BIN -c 800 -u JSharp -p S836GJ