Sysplex server B | Sysplex server C |
---|---|
HOST_NAME=MVSHOST | HOST_NAME=MVSHOST1 |
Suppose that in this scenario an application now issues:
db2 connect to aliasb user xxxxxxx using xxxxxxxx
The connection to database MVSHOST is established. Because Sysplex exploitation is enabled both for the DB2 Connect server and the DCS directory entry, DB2 for OS/390 and z/OS identifies the network addresses to DB2 Connect for each Sysplex participant (MVSHOST and MVSHOST1. DRDA4 protocols and message flows are used to return this information). Once an initial connection has been made, the returned list of addresses is cached at the DB2 Connect workstation. Once the initial CONNECT is issued for a TCP/IP node, then the IP addresses are returned.
The list of addresses provided by DB2 for OS/390 and z/OS also includes priority information, including the number of connections for each network address. The list is refreshed whenever a new connection is made by DB2 Connect. This additional information is used for load balancing purposes, as well as for fault tolerance.
The db2pd command with the sysplex parameter (db2pd -sysplex) can be used for retrieving information about servers associated with a Sysplex environment.
Parent topic: DB2 Connect Sysplex support
Related reference
db2pd - Monitor and troubleshoot DB2 database command