ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:reference:loadbalancer:getloadbalancedconnection

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

v5:reference:loadbalancer:getloadbalancedconnection [2017/04/27 01:53] – created mnewnhamv5:reference:loadbalancer:getloadbalancedconnection [2017/05/11 00:34] (current) mnewnham
Line 14: Line 14:
 The method ''getLoadBalancedConnection()'' returns the appropriate node number for the connection type, taking into account the connection type, the connection weight, whether connections are pinned and if there are any failed connection in any of the nodes. The method ''getLoadBalancedConnection()'' returns the appropriate node number for the connection type, taking into account the connection type, the connection weight, whether connections are pinned and if there are any failed connection in any of the nodes.
 --------------------------- ---------------------------
 +<WRAP tip>
 +To ensure the accuracy of the response, you should have executed at least one statement against the load balancer connection
 +</WRAP>
 In the following example, we have 4 nodes, 1 ''write'' and 3 ''readonly'' In the following example, we have 4 nodes, 1 ''write'' and 3 ''readonly''
 ^Node^Type^Weight^ ^Node^Type^Weight^
v5/reference/loadbalancer/getloadbalancedconnection.1493250821.txt.gz · Last modified: 2017/04/27 01:53 by mnewnham