Document Type | Technical Information
Category | Interface/Integration
Applicable Product Versions | Tibero5, Tibero6, Tibero7
Document Number | TIITI057
Overview
This document describes how to evenly maintain the number of sessions connected from WAS (Web Application Server) to each TAC node in a 2-node TAC environment.
Method
TAC Session Even Distribution
A 2-node Tibero Active Cluster (hereafter: TAC) is an Active-Active structure where all nodes can perform Read/Write operations.
In a 2-node TAC environment, each node's Tibero Cluster Manager (hereafter: CM) can activate VIPs.
In WAS, depending on how the 2-node TAC is connected, an even session distribution can be configured.
If even session distribution is not considered, sessions may concentrate on one node.
TAC Connection URL
Note
If the Connection URL in the TAC environment is set as follows, sessions will not be evenly distributed.
In the TAC environment, setting the options failover=off and load_balance=off enables even session distribution between WAS and TAC.
jdbc:tibero:thin:@(description=(failover=on)(load_balance=on)
(address_list=(address=(host=192.168.100.101)(port=8629))
(address=(host=192.168.100.102)(port=8629)))
(DATABASE_NAME=testdb))
TAC Session Unbalance
When failover=on and load_balance=off are used in the JDBC Connection URL of WAS, sessions may concentrate on one side, failing to maintain balance.
| 1. Situation where TAC nodes 1 and 2 are started, then WAS nodes 1 and 2 are started sequentially |
|
| 2. Situation where VIP1 fails over to TAC node 2 due to failure of TAC node 1 |
|
| 3. Situation after VIP1 failover to TAC node 2 is completed |
|
| 4. Situation where TAC node 1 recovers and VIP1 fails back to TAC node 1 |
|
| 5. Situation after TAC node 1 recovers and VIP1 failback is completed |
|
TAC Session Balance
- Set only TAC node 1 VIP in the Connection URL of WAS1.
-
failover=offandload_balance=off - Set or remove the above two options (default off)
-
- Set only TAC node 2 VIP in the Connection URL of WAS2.
-
failover=offandload_balance=off - Set or remove the above two options (default off)
-
| 1. Situation where TAC nodes 1 and 2 are started, then WAS nodes 1 and 2 are started sequentially |
|
| 2. Situation where VIP1 fails over to TAC node 2 due to failure of TAC node 1 |
|
| 3. Situation after VIP1 failover to TAC node 2 is completed |
|
| 4. Situation where TAC node 1 recovers and VIP1 fails back to TAC node 1 |
|
| 5. Situation after TAC node 1 recovers and VIP1 failback is completed |
|
Conclusion
The JDBC Connection URL of WAS is set by the WAS engineer.
If sessions are not evenly distributed across WAS in the customer environment, sessions can be evenly distributed through TAC VIP FAIL-OVER / FAIL-BACK.
This document only covers session connections by WAS and does not cover separate application modules or other solution connections.