<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>OpenText Analytics Database 26.2.x – Classic connection load balancing</title>
    <link>/en/admin/managing-client-connections/connection-load-balancing/classic-connection-load-balancing/</link>
    <description>Recent content in Classic connection load balancing on OpenText Analytics Database 26.2.x</description>
    <generator>Hugo -- gohugo.io</generator>
    
	  <atom:link href="/en/admin/managing-client-connections/connection-load-balancing/classic-connection-load-balancing/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Admin: Enabling and disabling classic connection load balancing</title>
      <link>/en/admin/managing-client-connections/connection-load-balancing/classic-connection-load-balancing/enabling-and-disabling-classic-connection-load-balancing/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/managing-client-connections/connection-load-balancing/classic-connection-load-balancing/enabling-and-disabling-classic-connection-load-balancing/</guid>
      <description>
        
        
        &lt;p&gt;Only a database &lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/db-superuser/&#34; title=&#34;&#34;&gt;superuser&lt;/a&gt; can enable or disable classic cluster-wide connection load balancing. To enable or disable load balancing, use the &lt;a href=&#34;../../../../../en/sql-reference/functions/client-connection-functions/set-load-balance-policy/#&#34;&gt;SET_LOAD_BALANCE_POLICY&lt;/a&gt; function to set the load balance policy. Setting the load balance policy to anything other than &#39;NONE&#39; enables load balancing on the server. The following example enables native connection load balancing by setting the load balancing policy to ROUNDROBIN.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT SET_LOAD_BALANCE_POLICY(&amp;#39;ROUNDROBIN&amp;#39;);
                  SET_LOAD_BALANCE_POLICY
--------------------------------------------------------------------------------
Successfully changed the client initiator load balancing policy to: roundrobin
(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;To disable native connection load balancing, use SET_LOAD_BALANCE_POLICY to set the policy to &#39;NONE&#39;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT SET_LOAD_BALANCE_POLICY(&amp;#39;NONE&amp;#39;);
SET_LOAD_BALANCE_POLICY
--------------------------------------------------------------------------
Successfully changed the client initiator load balancing policy to: none
(1 row)
&lt;/code&gt;&lt;/pre&gt;
&lt;div class=&#34;alert admonition note&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Note&lt;/h4&gt;

When a client makes a connection, the native load-balancer chooses a node and returns the value from the &lt;code&gt;export_address&lt;/code&gt; column in the &lt;a href=&#34;../../../../../en/sql-reference/system-tables/v-catalog-schema/nodes/#&#34;&gt;NODES&lt;/a&gt; table. The client then uses the &lt;code&gt;export_address&lt;/code&gt; to connect. The &lt;code&gt;node_address&lt;/code&gt; specifies the address to use for inter-node and spread communications. When a database is installed, the &lt;code&gt;export_address&lt;/code&gt; and &lt;code&gt;node_address&lt;/code&gt; are set to the same value. If you installed OpenText™ Analytics Database on a private address, then you must set the export_address to a &lt;em&gt;public&lt;/em&gt; address for each node.

&lt;/div&gt;
&lt;p&gt;By default, client connections are not load balanced, even when connection load balancing is enabled on the server. Clients must set a connection parameter to indicates they are willing to have their connection request load balanced. See &lt;a href=&#34;../../../../../en/connecting-to/client-libraries/accessing/c/connecting-to-db/load-balancing-ado-net/#&#34;&gt;Load balancing in ADO.NET&lt;/a&gt;, &lt;a href=&#34;../../../../../en/connecting-to/client-libraries/accessing/java/creating-and-configuring-connection/load-balancing-jdbc/#&#34;&gt;Load balancing in JDBC&lt;/a&gt;, and &lt;a href=&#34;../../../../../en/connecting-to/client-libraries/accessing/ccpp/load-balancing/#&#34;&gt;Load balancing&lt;/a&gt;, for information on enabling load balancing on the client. For vsql, use the &lt;code&gt;-C&lt;/code&gt; command-line option to enable load balancing.

&lt;div class=&#34;admonition important&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Important&lt;/h4&gt;
In mixed IPv4 and IPv6 environments, balancing only works for the address family for which you have configured load balancing. For example, if you have configured load balancing using an IPv4 address, then IPv6 clients cannot use load balancing, however the IPv6 clients can still connect, but load balancing does not occur.
&lt;/div&gt;&lt;/p&gt;
&lt;h2 id=&#34;resetting-the-load-balancing-state&#34;&gt;Resetting the load balancing state&lt;/h2&gt;
&lt;p&gt;When the load balancing policy is ROUNDROBIN, each host in the database cluster maintains its own state of which host it will select to handle the next client connection. You can reset this state to its initial value (usually, the host with the lowest-node id) using the &lt;a href=&#34;../../../../../en/sql-reference/functions/client-connection-functions/reset-load-balance-policy/#&#34;&gt;RESET_LOAD_BALANCE_POLICY&lt;/a&gt; function:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT RESET_LOAD_BALANCE_POLICY();
RESET_LOAD_BALANCE_POLICY
-------------------------------------------------------------------------
Successfully reset stateful client load balance policies: &amp;#34;roundrobin&amp;#34;.
(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;see-also&#34;&gt;See also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/admin/managing-client-connections/connection-load-balancing/classic-connection-load-balancing/monitoring-legacy-connection-load-balancing/#&#34;&gt;Monitoring legacy connection load balancing&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/connecting-to/client-libraries/accessing/java/creating-and-configuring-connection/load-balancing-jdbc/#&#34;&gt;Load balancing in JDBC&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/connecting-to/client-libraries/accessing/ccpp/load-balancing/#&#34;&gt;Load balancing&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/connecting-to/client-libraries/accessing/c/connecting-to-db/load-balancing-ado-net/#&#34;&gt;Load balancing in ADO.NET&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: Monitoring legacy connection load balancing</title>
      <link>/en/admin/managing-client-connections/connection-load-balancing/classic-connection-load-balancing/monitoring-legacy-connection-load-balancing/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/managing-client-connections/connection-load-balancing/classic-connection-load-balancing/monitoring-legacy-connection-load-balancing/</guid>
      <description>
        
        
        &lt;p&gt;Query the LOAD_BALANCE_POLICY column of the V_CATALOG.&lt;a href=&#34;../../../../../en/sql-reference/system-tables/v-catalog-schema/dbs/#&#34;&gt;DATABASES&lt;/a&gt; to determine the state of native connection load balancing on your server:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT LOAD_BALANCE_POLICY FROM V_CATALOG.DATABASES;
LOAD_BALANCE_POLICY
---------------------
roundrobin
(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;determining-to-which-node-a-client-has-connected&#34;&gt;Determining to which node a client has connected&lt;/h2&gt;
&lt;p&gt;A client can determine the node to which is has connected by querying the NODE_NAME column of the V_MONITOR.&lt;a href=&#34;../../../../../en/sql-reference/system-tables/v-monitor-schema/current-session/#&#34;&gt;CURRENT_SESSION&lt;/a&gt; table:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT NODE_NAME FROM V_MONITOR.CURRENT_SESSION;
NODE_NAME
------------------
v_vmart_node0002
(1 row)
&lt;/code&gt;&lt;/pre&gt;
      </description>
    </item>
    
  </channel>
</rss>
