<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>OpenText Analytics Database 26.2.x – Connection load balancing policies</title>
    <link>/en/admin/managing-client-connections/connection-load-balancing/connection-load-balancing-policies/</link>
    <description>Recent content in Connection load balancing policies on OpenText Analytics Database 26.2.x</description>
    <generator>Hugo -- gohugo.io</generator>
    
	  <atom:link href="/en/admin/managing-client-connections/connection-load-balancing/connection-load-balancing-policies/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Admin: Creating network addresses</title>
      <link>/en/admin/managing-client-connections/connection-load-balancing/connection-load-balancing-policies/creating-network-addresses/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/managing-client-connections/connection-load-balancing/connection-load-balancing-policies/creating-network-addresses/</guid>
      <description>
        
        
        &lt;p&gt;Network addresses assign a name to an IP address and port number on a node. You use these addresses when you define load balancing groups. A node can have multiple network addresses associated with it. For example, suppose a node has one IP address that is only accessible from outside of the local network, and another that is accessible only from inside the network. In this case, you can define one network address using the external IP address, and another using the internal address. You can then create two different load balancing policies, one for external clients, and another for internal clients.

&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;

You must create network addresses for your nodes, even if you intend to base your connection load balance groups on fault groups or subclusters. Load balancing rules can only select nodes that have a network address defined for them.

&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;You create a network address using the CREATE NETWORK ADDRESS statement. This statement takes:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;The name to assign to the network address&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The name of the node&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The IP address of the node to associate with the network address&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The port number the node uses to accept client connections (optional)&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&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;

You can use hostnames instead of IP addresses when creating network addresses. However, doing so may lead to confusion if you are not sure which IP address a hostname resolves to. Using hostnames can also cause problems if your DNS server maps the hostname to multiple IP addresses.

&lt;/div&gt;
&lt;p&gt;The following example demonstrates creating three network addresses, one for each node in a three-node database.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT node_name,node_address,node_address_family FROM v_catalog.nodes;
    node_name     | node_address | node_address_family
------------------+--------------+----------------------
 v_vmart_node0001 | 10.20.110.21 | ipv4
 v_vmart_node0002 | 10.20.110.22 | ipv4
 v_vmart_node0003 | 10.20.110.23 | ipv4
(4 rows)


=&amp;gt; CREATE NETWORK ADDRESS node01 ON v_vmart_node0001 WITH &amp;#39;10.20.110.21&amp;#39;;
CREATE NETWORK ADDRESS
=&amp;gt; CREATE NETWORK ADDRESS node02 ON v_vmart_node0002 WITH &amp;#39;10.20.110.22&amp;#39;;
CREATE NETWORK ADDRESS
=&amp;gt; CREATE NETWORK ADDRESS node03 on v_vmart_node0003 WITH &amp;#39;10.20.110.23&amp;#39;;
CREATE NETWORK ADDRESS
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Creating network addresses for IPv6 addresses works the same way:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE NETWORK ADDRESS node1_ipv6 ON v_vmart_node0001 WITH &amp;#39;2001:0DB8:7D5F:7433::&amp;#39;;
CREATE NETWORK ADDRESS
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;OpenText™ Analytics Database does not perform any tests on the IP address you supply in the CREATE NETWORK ADDRESS statement. You must test the IP addresses you supply to this statement to confirm they correspond to the right node.&lt;/p&gt;
&lt;p&gt;The database does not restrict the address you supply because it is often not aware of all the network addresses through which the node is accessible. For example, your node may be accessible from an external network via an IP address that the database is not configured to use. Or, your node can have both an IPv4 and an IPv6 address, only one of which the database is aware of.&lt;/p&gt;
&lt;p&gt;For example, suppose v_vmart_node0003 from the previous example is &lt;strong&gt;not&lt;/strong&gt; accessible via the IP address 192.168.1.5. You can still create a network address for it using that address:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE NETWORK ADDRESS node04 ON v_vmart_node0003 WITH &amp;#39;192.168.1.5&amp;#39;;
CREATE NETWORK ADDRESS
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;If you create a network group and routing rule that targets this address, client connections would either connect to the wrong node, or fail due to being connected to a host that&#39;s not part of a database cluster.&lt;/p&gt;
&lt;h2 id=&#34;specifying-a-port-number-in-a-network-address&#34;&gt;Specifying a port number in a network address&lt;/h2&gt;
&lt;p&gt;By default, the CREATE NETWORK ADDRESS statement assumes the port number for the node&#39;s client connection is the default 5433. Sometimes, you may have a node listening for client connections on a different port. You can supply an alternate port number for the network address using the PORT keyword.&lt;/p&gt;
&lt;p&gt;For example, suppose your nodes are behind a NAT router. In this case, you can have your nodes listen on different port numbers so the NAT router can route connections to them. When creating network addresses for these nodes, you supply the IP address of the NAT router and the port number the node is listening on. For example:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE NETWORK ADDRESS node1_nat ON v_vmart_node0001 WITH &amp;#39;192.168.10.10&amp;#39; PORT 5433;
CREATE NETWORK ADDRESS
=&amp;gt; CREATE NETWORK ADDRESS node2_nat ON v_vmart_node0002 with &amp;#39;192.168.10.10&amp;#39; PORT 5434;
CREATE NETWORK ADDRESS
=&amp;gt; CREATE NETWORK ADDRESS node3_nat ON v_vmart_node0003 with &amp;#39;192.168.10.10&amp;#39; PORT 5435;
CREATE NETWORK ADDRESS
&lt;/code&gt;&lt;/pre&gt;
      </description>
    </item>
    
    <item>
      <title>Admin: Creating connection load balance groups</title>
      <link>/en/admin/managing-client-connections/connection-load-balancing/connection-load-balancing-policies/creating-connection-load-balance-groups/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/managing-client-connections/connection-load-balancing/connection-load-balancing-policies/creating-connection-load-balance-groups/</guid>
      <description>
        
        
        &lt;p&gt;After you have created network addresses for nodes, you create collections of them so you can target them with routing rules. These collections of network addresses are called load balancing groups. You have two ways to select the addresses to include in a load balancing group:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;A list of network addresses&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The name of one or more &lt;a href=&#34;../../../../../en/admin/managing-db/managing-nodes/fault-groups/&#34;&gt;fault groups&lt;/a&gt; or &lt;a href=&#34;../../../../../en/architecture/eon-concepts/subclusters/&#34;&gt;subclusters&lt;/a&gt;, plus an IP address range in CIDR format. The address range selects which network addresses in the fault groups or subclusters OpenText™ Analytics Database adds to the load balancing group. Only the network addresses that are within the IP address range you supply are added to the load balance group. This filter lets you base your load balance group on a portion of the nodes that make up the fault group or subcluster.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&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;

Load balance groups can only be based on fault groups or subclusters, or contain an arbitrary list of network addresses. You cannot mix these sources. For example, if you create a load balance group based on one or more fault groups, then you can only add additional fault groups to it. The database will return an error if you try to add a network address or subcluster to the load balance group.

&lt;/div&gt;
&lt;p&gt;You create a load balancing group using the &lt;a href=&#34;../../../../../en/sql-reference/statements/create-statements/create-load-balance-group/#&#34;&gt;CREATE LOAD BALANCE GROUP&lt;/a&gt; statement. When basing your group on a list of addresses, this statement takes the name for the group and the list of addresses. The following example demonstrates creating addresses for four nodes, and then creating two groups based on those nodes.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE NETWORK ADDRESS addr01 ON v_vmart_node0001 WITH &amp;#39;10.20.110.21&amp;#39;;
CREATE NETWORK ADDRESS
=&amp;gt; CREATE NETWORK ADDRESS addr02 ON v_vmart_node0002 WITH &amp;#39;10.20.110.22&amp;#39;;
CREATE NETWORK ADDRESS
=&amp;gt; CREATE NETWORK ADDRESS addr03 on v_vmart_node0003 WITH &amp;#39;10.20.110.23&amp;#39;;
CREATE NETWORK ADDRESS
=&amp;gt; CREATE NETWORK ADDRESS addr04 on v_vmart_node0004 WITH &amp;#39;10.20.110.24&amp;#39;;
CREATE NETWORK ADDRESS
=&amp;gt; CREATE LOAD BALANCE GROUP group_1 WITH ADDRESS addr01, addr02;
CREATE LOAD BALANCE GROUP
=&amp;gt; CREATE LOAD BALANCE GROUP group_2 WITH ADDRESS addr03, addr04;
CREATE LOAD BALANCE GROUP

=&amp;gt; SELECT * FROM LOAD_BALANCE_GROUPS;
    name    |   policy   |     filter      |         type          | object_name
------------+------------+-----------------+-----------------------+-------------
 group_1    | ROUNDROBIN |                 | Network Address Group | addr01
 group_1    | ROUNDROBIN |                 | Network Address Group | addr02
 group_2    | ROUNDROBIN |                 | Network Address Group | addr03
 group_2    | ROUNDROBIN |                 | Network Address Group | addr04
(4 rows)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;A network address can be a part of as many load balancing groups as you like. However, each group can only have a single network address per node. You cannot add two network addresses belonging to the same node to the same load balancing group.&lt;/p&gt;
&lt;h2 id=&#34;creating-load-balancing-groups-from-fault-groups&#34;&gt;Creating load balancing groups from fault groups&lt;/h2&gt;
&lt;p&gt;To create a load balancing group from one or more fault groups, you supply:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;The name for the load balancing group&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The name of one or more fault groups&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;An IP address filter in CIDR format that filters the fault groups to be added to the load balancing group basd on their IP addresses. The database excludes any network addresses in the fault group that do not fall within this range. If you want all of the nodes in the fault groups to be added to the load balance group, specify the filter 0.0.0.0/0.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This example creates two load balancing groups from a fault group. The first includes all network addresses in the group by using the CIDR notation for all IP addresses. The second limits the fault group to three of the four nodes in the fault group by using the IP address filter.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE FAULT GROUP fault_1;
CREATE FAULT GROUP
=&amp;gt; ALTER FAULT GROUP fault_1 ADD NODE  v_vmart_node0001;
ALTER FAULT GROUP
=&amp;gt; ALTER FAULT GROUP fault_1 ADD NODE  v_vmart_node0002;
ALTER FAULT GROUP
=&amp;gt; ALTER FAULT GROUP fault_1 ADD NODE  v_vmart_node0003;
ALTER FAULT GROUP
=&amp;gt; ALTER FAULT GROUP fault_1 ADD NODE  v_vmart_node0004;
ALTER FAULT GROUP
=&amp;gt; SELECT node_name,node_address,node_address_family,export_address
   FROM v_catalog.nodes;
    node_name     | node_address | node_address_family | export_address
------------------+--------------+---------------------+----------------
 v_vmart_node0001 | 10.20.110.21 | ipv4                | 10.20.110.21
 v_vmart_node0002 | 10.20.110.22 | ipv4                | 10.20.110.22
 v_vmart_node0003 | 10.20.110.23 | ipv4                | 10.20.110.23
 v_vmart_node0004 | 10.20.110.24 | ipv4                | 10.20.110.24
(4 rows)

=&amp;gt; CREATE LOAD BALANCE GROUP group_all WITH FAULT GROUP fault_1 FILTER
   &amp;#39;0.0.0.0/0&amp;#39;;
CREATE LOAD BALANCE GROUP

=&amp;gt; CREATE LOAD BALANCE GROUP group_some WITH FAULT GROUP fault_1 FILTER
   &amp;#39;10.20.110.21/30&amp;#39;;
CREATE LOAD BALANCE GROUP

=&amp;gt; SELECT * FROM LOAD_BALANCE_GROUPS;
      name      |   policy   |     filter      |         type          | object_name
----------------+------------+-----------------+-----------------------+-------------
 group_all      | ROUNDROBIN | 0.0.0.0/0       | Fault Group           | fault_1
 group_some     | ROUNDROBIN | 10.20.110.21/30 | Fault Group           | fault_1
(2 rows)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;You can also supply multiple fault groups to the CREATE LOAD BALANCE GROUP statement:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE LOAD BALANCE GROUP group_2_faults WITH FAULT GROUP
   fault_2, fault_3 FILTER &amp;#39;0.0.0.0/0&amp;#39;;
CREATE LOAD BALANCE GROUP
&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;

If you supply a filter range that does not match any network addresses of the nodes in the fault groups, the database creates an empty load balancing group. Any routing rules that direct connections to the empty load balance group will fail, because no nodes are set to handle connections for the group. In this case, the node that the client connected to initially handles the client connection itself.

&lt;/div&gt;
&lt;p&gt;&lt;a name=&#34;From_Subclusters-&#34;&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&#34;creating-load-balance-groups-from-subclusters&#34;&gt;Creating load balance groups from subclusters&lt;/h2&gt;
&lt;p&gt;Creating a load balance group from a subcluster is similar to creating a load balance group from a fault group. You just use WITH SUBCLUSTER instead of WITH FAULT GROUP in the CREATE LOAD BALANCE GROUP statement.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT node_name,node_address,node_address_family,subcluster_name
   FROM v_catalog.nodes;
      node_name       | node_address | node_address_family |  subcluster_name
----------------------+--------------+---------------------+--------------------
 v_verticadb_node0001 | 10.11.12.10  | ipv4                | load_subcluster
 v_verticadb_node0002 | 10.11.12.20  | ipv4                | load_subcluster
 v_verticadb_node0003 | 10.11.12.30  | ipv4                | load_subcluster
 v_verticadb_node0004 | 10.11.12.40  | ipv4                | analytics_subcluster
 v_verticadb_node0005 | 10.11.12.50  | ipv4                | analytics_subcluster
 v_verticadb_node0006 | 10.11.12.60  | ipv4                | analytics_subcluster
(6 rows)

=&amp;gt; CREATE NETWORK ADDRESS node01 ON v_verticadb_node0001 WITH &amp;#39;10.11.12.10&amp;#39;;
CREATE NETWORK ADDRESS
=&amp;gt; CREATE NETWORK ADDRESS node02 ON v_verticadb_node0002 WITH &amp;#39;10.11.12.20&amp;#39;;
CREATE NETWORK ADDRESS
=&amp;gt; CREATE NETWORK ADDRESS node03 ON v_verticadb_node0003 WITH &amp;#39;10.11.12.30&amp;#39;;
CREATE NETWORK ADDRESS
=&amp;gt; CREATE NETWORK ADDRESS node04 ON v_verticadb_node0004 WITH &amp;#39;10.11.12.40&amp;#39;;
CREATE NETWORK ADDRESS
=&amp;gt; CREATE NETWORK ADDRESS node05 ON v_verticadb_node0005 WITH &amp;#39;10.11.12.50&amp;#39;;
CREATE NETWORK ADDRESS
=&amp;gt; CREATE NETWORK ADDRESS node06 ON v_verticadb_node0006 WITH &amp;#39;10.11.12.60&amp;#39;;
CREATE NETWORK ADDRESS

=&amp;gt; CREATE LOAD BALANCE GROUP load_subcluster WITH SUBCLUSTER load_subcluster
   FILTER &amp;#39;0.0.0.0/0&amp;#39;;
CREATE LOAD BALANCE GROUP
=&amp;gt; CREATE LOAD BALANCE GROUP analytics_subcluster WITH SUBCLUSTER
   analytics_subcluster FILTER &amp;#39;0.0.0.0/0&amp;#39;;
CREATE LOAD BALANCE GROUP
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&#34;setting-the-groups-distribution-policy&#34;&gt;Setting the group&#39;s distribution policy&lt;/h2&gt;
&lt;p&gt;A load balancing group has a policy setting that determines how the initially-contacted node chooses a target from the group. CREATE LOAD BALANCE GROUP supports three policies:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;ROUNDROBIN (default) rotates among the available members of the load balancing group. The initially-contacted node keeps track of which node it chose last time, and chooses the next one in the cluster.&lt;/p&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;

Each node in the cluster maintains its own round-robin pointer that indicates which node it should pick next for each load-balancing group. Therefore, if clients connect to different initial nodes, they may be redirected to the same node.

&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;RANDOM chooses an available node from the group randomly.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;NONE disables load balancing.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The following example demonstrates creating a load balancing group with a RANDOM distribution policy.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE LOAD BALANCE GROUP group_random WITH ADDRESS node01, node02,
   node03, node04 POLICY &amp;#39;RANDOM&amp;#39;;
CREATE LOAD BALANCE GROUP
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;the-next-step&#34;&gt;The next step&lt;/h2&gt;
&lt;p&gt;After creating the load balancing group, you must add a load balancing routing rule that tells the database how incoming connections should be redirected to the groups. See &lt;a href=&#34;../../../../../en/admin/managing-client-connections/connection-load-balancing/connection-load-balancing-policies/creating-load-balancing-routing-rules/#&#34;&gt;Creating load balancing routing rules&lt;/a&gt;.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: Creating load balancing routing rules</title>
      <link>/en/admin/managing-client-connections/connection-load-balancing/connection-load-balancing-policies/creating-load-balancing-routing-rules/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/managing-client-connections/connection-load-balancing/connection-load-balancing-policies/creating-load-balancing-routing-rules/</guid>
      <description>
        
        
        &lt;p&gt;Once you have created one or more connection load balancing groups, you are ready to create load balancing routing rules. These rules tell OpenText™ Analytics Database how to redirect client connections based on their IP addresses.&lt;/p&gt;
&lt;p&gt;You create routing rules using the &lt;a href=&#34;../../../../../en/sql-reference/statements/create-statements/create-routing-rule/&#34;&gt;CREATE ROUTING RULE&lt;/a&gt; statement. You pass this statement:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;The name for the rule&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The source IP address range (either IPv4 or IPv6) in CIDR format the rule applies to&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The name of the load balancing group to handle the connection&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The following example creates two rules. The first redirects connections coming from the IP address range 192.168.1.0 through 192.168.1.255 to a load balancing group named group_1. The second routes connections from the IP range 10.20.1.0 through 10.20.1.255 to the load balancing group named group_2.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE ROUTING RULE internal_clients ROUTE &amp;#39;192.168.1.0/24&amp;#39; TO group_1;
CREATE ROUTING RULE

=&amp;gt; CREATE ROUTING RULE external_clients ROUTE &amp;#39;10.20.1.0/24&amp;#39; TO group_2;
CREATE ROUTING RULE
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;creating-a-catch-all-routing-rule&#34;&gt;Creating a catch-all routing rule&lt;/h2&gt;
&lt;p&gt;OpenText™ Analytics Database applies routing rules in most specific to least specific order. This behavior lets you create a &amp;quot;catch-all&amp;quot; rule that handles all incoming connections. Then you can create rules to handle smaller IP address ranges for specific purposes. For example, suppose you wanted to create a catch-all rule that worked with the rules created in the previous example. Then you can create a new rule that routes 0.0.0.0/0 (the CIDR notation for all IP addresses) to a group that should handle connections that aren&#39;t handled by either of the previously-created rules. For example:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE LOAD BALANCE GROUP group_all WITH ADDRESS node01, node02, node03, node04;
CREATE LOAD BALANCE GROUP

=&amp;gt; CREATE ROUTING RULE catch_all ROUTE &amp;#39;0.0.0.0/0&amp;#39; TO group_all;
CREATE ROUTING RULE
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;After running the above statements, any connection that does not originate from the IP address ranges 192.168.1.* or 10.20.1.* are routed to the group_all group.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: Testing connection load balancing policies</title>
      <link>/en/admin/managing-client-connections/connection-load-balancing/connection-load-balancing-policies/testing-connection-load-balancing-policies/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/managing-client-connections/connection-load-balancing/connection-load-balancing-policies/testing-connection-load-balancing-policies/</guid>
      <description>
        
        
        &lt;p&gt;After creating your routing rules, you should test them to verify that they perform the way you expect. The best way to test your rules is to call the &lt;a href=&#34;../../../../../en/sql-reference/functions/client-connection-functions/describe-load-balance-decision/#&#34;&gt;DESCRIBE_LOAD_BALANCE_DECISION&lt;/a&gt; function with an IP address. This function evaluates the routing rules and reports back how OpenText™ Analytics Database would route a client connection from the IP address. It uses the same logic that the database uses when handling client connections, so the results reflect the actual connection load balancing result you will see from client connections. It also reflects the current state of your database cluster, so it will not redirect connections to down nodes.&lt;/p&gt;
&lt;p&gt;The following example demonstrates testing a set of rules. One rule handles all connections from the range 192.168.1.0 to 192.168.1.255, while the other handles all connections originating from the 192 subnet. The third call demonstrates what happens when no rules apply to the IP address you supply.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT describe_load_balance_decision(&amp;#39;192.168.1.25&amp;#39;);
                        describe_load_balance_decision
--------------------------------------------------------------------------------
 Describing load balance decision for address [192.168.1.25]
Load balance cache internal version id (node-local): [2]
Considered rule [etl_rule] source ip filter [10.20.100.0/24]... input address
does not match source ip filter for this rule.
Considered rule [internal_clients] source ip filter [192.168.1.0/24]... input
address matches this rule
Matched to load balance group [group_1] the group has policy [ROUNDROBIN]
number of addresses [2]
(0) LB Address: [10.20.100.247]:5433
(1) LB Address: [10.20.100.248]:5433
Chose address at position [1]
Routing table decision: Success. Load balance redirect to: [10.20.100.248] port [5433]

(1 row)

=&amp;gt; SELECT describe_load_balance_decision(&amp;#39;192.168.2.25&amp;#39;);
                        describe_load_balance_decision
--------------------------------------------------------------------------------
 Describing load balance decision for address [192.168.2.25]
Load balance cache internal version id (node-local): [2]
Considered rule [etl_rule] source ip filter [10.20.100.0/24]... input address
does not match source ip filter for this rule.
Considered rule [internal_clients] source ip filter [192.168.1.0/24]... input
address does not match source ip filter for this rule.
Considered rule [subnet_192] source ip filter [192.0.0.0/8]... input address
matches this rule
Matched to load balance group [group_all] the group has policy [ROUNDROBIN]
number of addresses [3]
(0) LB Address: [10.20.100.247]:5433
(1) LB Address: [10.20.100.248]:5433
(2) LB Address: [10.20.100.249]:5433
Chose address at position [1]
Routing table decision: Success. Load balance redirect to: [10.20.100.248] port [5433]

(1 row)

=&amp;gt; SELECT describe_load_balance_decision(&amp;#39;1.2.3.4&amp;#39;);
                         describe_load_balance_decision
--------------------------------------------------------------------------------
 Describing load balance decision for address [1.2.3.4]
Load balance cache internal version id (node-local): [2]
Considered rule [etl_rule] source ip filter [10.20.100.0/24]... input address
does not match source ip filter for this rule.
Considered rule [internal_clients] source ip filter [192.168.1.0/24]... input
address does not match source ip filter for this rule.
Considered rule [subnet_192] source ip filter [192.0.0.0/8]... input address
does not match source ip filter for this rule.
Routing table decision: No matching routing rules: input address does not match
any routing rule source filters. Details: [Tried some rules but no matching]
No rules matched. Falling back to classic load balancing.
Classic load balance decision: Classic load balancing considered, but either
the policy was NONE or no target was available. Details: [NONE or invalid]

(1 row)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The DESCRIBE_LOAD_BALANCE_DECISION function also takes into account the classic cluster-wide load balancing settings:&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)

=&amp;gt; SELECT DESCRIBE_LOAD_BALANCE_DECISION(&amp;#39;1.2.3.4&amp;#39;);
                            describe_load_balance_decision
--------------------------------------------------------------------------------
 Describing load balance decision for address [1.2.3.4]
Load balance cache internal version id (node-local): [2]
Considered rule [etl_rule] source ip filter [10.20.100.0/24]... input address
does not match source ip filter for this rule.
Considered rule [internal_clients] source ip filter [192.168.1.0/24]... input
address does not match source ip filter for this rule.
Considered rule [subnet_192] source ip filter [192.0.0.0/8]... input address
does not match source ip filter for this rule.
Routing table decision: No matching routing rules: input address does not
match any routing rule source filters. Details: [Tried some rules but no matching]
No rules matched. Falling back to classic load balancing.
Classic load balance decision: Success. Load balance redirect to: [10.20.100.247]
port [5433]

(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;

The DESCRIBE_LOAD_BALANCE_DECISION function assumes the client connection has opted to be load balanced. In reality, clients may not enable load balancing. This setting prevents the load-balancing features from redirecting the connection.

&lt;/div&gt;
&lt;p&gt;The function can also help you debug connection issues you notice after going live with your load balancing policy. For example, if you notice that one node is handling a large number of client connections, you can test the client IP addresses against your policies to see why the connections are not being balanced.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: Load balancing policy examples</title>
      <link>/en/admin/managing-client-connections/connection-load-balancing/connection-load-balancing-policies/load-balancing-policy-examples/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/managing-client-connections/connection-load-balancing/connection-load-balancing-policies/load-balancing-policy-examples/</guid>
      <description>
        
        
        &lt;p&gt;The following examples demonstrate some common use cases for connection load balancing policies.&lt;/p&gt;
&lt;h2 id=&#34;enabling-client-connections-from-multiple-networks&#34;&gt;Enabling client connections from multiple networks&lt;/h2&gt;
&lt;p&gt;Suppose you have an OpenText™ Analytics Database cluster that is accessible from two (or more) different networks. Some examples of this situation are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;You have an internal and an external network. In this configuration, your database nodes usually have two or more IP addresses, which each address only accessible from one of the networks. This configuration is common when running the database in a cloud environment. In many cases, you can create a catch-all rule that applies to all IP addresses, and then add additional routing rules for the internal subnets.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;You want clients to be load balanced whether they use IPv4 or IPv6 protocols. From the database&#39;s perspective, IPv4 and IPv6 connections are separate networks because each node has a separate IPv4 and IPv6 IP address.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img src=&#34;../../../../../images/connection-load-balancing/load-balancing-inertan-external-network-diag1.svg&#34; alt=&#34;&#34;&gt;&lt;/p&gt;
&lt;p&gt;When creating a load balancing policy for a database that is accessible from multiple networks, client connections must be directed to IP addresses on the network they can access. The best solution is to create load balancing groups for each set of IP addresses assigned to a node. Then create routing rules that redirect client connections to the IP addresses that are accessible from their network.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;../../../../../images/connection-load-balancing/load-balancing-inertan-external-network-diag2.svg&#34; alt=&#34;&#34;&gt;&lt;/p&gt;
&lt;p&gt;The following example:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Creates two sets of network addresses: one for the internal network and another for the external network.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Creates two load balance groups: one for the internal network and one for the external.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Creates three routing rules: one for the internal network, and two for the external. The internal routing rule covers a subset of the network covered by one of the external rules.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Tests the routing rules using internal and external IP addresses.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE NETWORK ADDRESS node01_int ON v_vmart_node0001 WITH &amp;#39;192.168.0.1&amp;#39;;
CREATE NETWORK ADDRESS

=&amp;gt; CREATE NETWORK ADDRESS node01_ext ON v_vmart_node0001 WITH &amp;#39;203.0.113.1&amp;#39;;
CREATE NETWORK ADDRESS

=&amp;gt; CREATE NETWORK ADDRESS node02_int ON v_vmart_node0002 WITH &amp;#39;192.168.0.2&amp;#39;;
CREATE NETWORK ADDRESS

=&amp;gt; CREATE NETWORK ADDRESS node02_ext ON v_vmart_node0002 WITH &amp;#39;203.0.113.2&amp;#39;;
CREATE NETWORK ADDRESS

=&amp;gt; CREATE NETWORK ADDRESS node03_int ON v_vmart_node0003 WITH &amp;#39;192.168.0.3&amp;#39;;
CREATE NETWORK ADDRESS

=&amp;gt; CREATE NETWORK ADDRESS node03_ext ON v_vmart_node0003 WITH &amp;#39;203.0.113.3&amp;#39;;
CREATE NETWORK ADDRESS

=&amp;gt; CREATE LOAD BALANCE GROUP internal_group WITH ADDRESS node01_int, node02_int, node03_int;
CREATE LOAD BALANCE GROUP

=&amp;gt; CREATE LOAD BALANCE GROUP external_group WITH ADDRESS node01_ext, node02_ext, node03_ext;
CREATE LOAD BALANCE GROUP

=&amp;gt; CREATE ROUTING RULE internal_rule ROUTE &amp;#39;192.168.0.0/24&amp;#39; TO internal_group;
CREATE ROUTING RULE

=&amp;gt; CREATE ROUTING RULE external_rule ROUTE &amp;#39;0.0.0.0/0&amp;#39; TO external_group;
CREATE ROUTING RULE

=&amp;gt; SELECT DESCRIBE_LOAD_BALANCE_DECISION(&amp;#39;198.51.100.10&amp;#39;);
                         DESCRIBE_LOAD_BALANCE_DECISION
-------------------------------------------------------------------------------
 Describing load balance decision for address [198.51.100.10]
Load balance cache internal version id (node-local): [3]
Considered rule [internal_rule] source ip filter [192.168.0.0/24]... input
address does not match source ip filter for this rule.
Considered rule [external_rule] source ip filter [0.0.0.0/0]... input
address matches this rule
Matched to load balance group [external_group] the group has policy [ROUNDROBIN]
number of addresses [3]
(0) LB Address: [203.0.113.1]:5433
(1) LB Address: [203.0.113.2]:5433
(2) LB Address: [203.0.113.3]:5433
Chose address at position [2]
Routing table decision: Success. Load balance redirect to: [203.0.113.3] port [5433]

(1 row)

=&amp;gt; SELECT DESCRIBE_LOAD_BALANCE_DECISION(&amp;#39;198.51.100.10&amp;#39;);

                         DESCRIBE_LOAD_BALANCE_DECISION
-------------------------------------------------------------------------------
 Describing load balance decision for address [192.168.0.79]
Load balance cache internal version id (node-local): [3]
Considered rule [internal_rule] source ip filter [192.168.0.0/24]... input
address matches this rule
Matched to load balance group [internal_group] the group has policy [ROUNDROBIN]
number of addresses [3]
(0) LB Address: [192.168.0.1]:5433
(1) LB Address: [192.168.0.3]:5433
(2) LB Address: [192.168.0.2]:5433
Chose address at position [2]
Routing table decision: Success. Load balance redirect to: [192.168.0.2] port
[5433]

(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;isolating-workloads&#34;&gt;Isolating workloads&lt;/h2&gt;
&lt;p&gt;You may want to control which nodes in your cluster are used by specific types of clients. For example, you may want to limit clients that perform data-loading tasks to one set of nodes, and reserve the rest of the nodes for running queries. This separation of workloads is especially common for Eon Mode databases. See &lt;a href=&#34;../../../../../en/eon/managing-subclusters/managing-workloads-with-subclusters/#ControllingWhereAQueryRuns&#34;&gt;Controlling Where a Query Runs&lt;/a&gt; for an example of using load balancing policies in an Eon Mode database to control which subcluster a client connects to.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;../../../../../images/connection-load-balancing/workload-balancing-diag1.svg&#34; alt=&#34;&#34;&gt;&lt;/p&gt;
&lt;p&gt;You can create client load balancing policies that support workload isolation if clients performing certain types of tasks always originate from a limited IP address range. For example, if the clients that load data into your system always fall into a specific subnet, you can create a policy that limits which nodes those clients can access.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;../../../../../images/connection-load-balancing/workload-balancing-diag2.svg&#34; alt=&#34;&#34;&gt;&lt;/p&gt;
&lt;p&gt;In the following example:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;There are two fault groups (group_a and group_b) that separate workloads in an Eon Mode database. These groups are used as the basis of the load balancing groups.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The ETL client connections all originate from the 203.0.113.0/24 subnet.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;User connections originate in the range of 192.0.0.0 to 199.255.255.255.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE NETWORK ADDRESS node01 ON v_vmart_node0001 WITH &amp;#39;192.0.2.1&amp;#39;;
CREATE NETWORK ADDRESS
=&amp;gt; CREATE NETWORK ADDRESS node02 ON v_vmart_node0002 WITH &amp;#39;192.0.2.2&amp;#39;;
CREATE NETWORK ADDRESS
=&amp;gt; CREATE NETWORK ADDRESS node03 ON v_vmart_node0003 WITH &amp;#39;192.0.2.3&amp;#39;;
CREATE NETWORK ADDRESS
=&amp;gt; CREATE NETWORK ADDRESS node04 ON v_vmart_node0004 WITH &amp;#39;192.0.2.4&amp;#39;;
CREATE NETWORK ADDRESS
=&amp;gt; CREATE NETWORK ADDRESS node05 ON v_vmart_node0005 WITH &amp;#39;192.0.2.5&amp;#39;;
CREATE NETWORK ADDRESS
                                                     ^
=&amp;gt; CREATE LOAD BALANCE GROUP lb_users WITH FAULT GROUP group_a FILTER &amp;#39;192.0.2.0/24&amp;#39;;
CREATE LOAD BALANCE GROUP
=&amp;gt; CREATE LOAD BALANCE GROUP lb_etl WITH FAULT GROUP group_b FILTER &amp;#39;192.0.2.0/24&amp;#39;;
CREATE LOAD BALANCE GROUP
=&amp;gt; CREATE ROUTING RULE users_rule ROUTE &amp;#39;192.0.0.0/5&amp;#39; TO lb_users;
CREATE ROUTING RULE
=&amp;gt; CREATE ROUTING RULE etl_rule ROUTE &amp;#39;203.0.113.0/24&amp;#39; TO lb_etl;
CREATE ROUTING RULE

=&amp;gt; SELECT DESCRIBE_LOAD_BALANCE_DECISION(&amp;#39;198.51.200.129&amp;#39;);
                          DESCRIBE_LOAD_BALANCE_DECISION
-------------------------------------------------------------------------------
 Describing load balance decision for address [198.51.200.129]
Load balance cache internal version id (node-local): [6]
Considered rule [etl_rule] source ip filter [203.0.113.0/24]... input address
does not match source ip filter for this rule.
Considered rule [users_rule] source ip filter [192.0.0.0/5]... input address
matches this rule
Matched to load balance group [lb_users] the group has policy [ROUNDROBIN]
number of addresses [3]
(0) LB Address: [192.0.2.1]:5433
(1) LB Address: [192.0.2.2]:5433
(2) LB Address: [192.0.2.3]:5433
Chose address at position [1]
Routing table decision: Success. Load balance redirect to: [192.0.2.2] port
[5433]

(1 row)

=&amp;gt; SELECT DESCRIBE_LOAD_BALANCE_DECISION(&amp;#39;203.0.113.24&amp;#39;);
                             DESCRIBE_LOAD_BALANCE_DECISION
-------------------------------------------------------------------------------
 Describing load balance decision for address [203.0.113.24]
Load balance cache internal version id (node-local): [6]
Considered rule [etl_rule] source ip filter [203.0.113.0/24]... input address
matches this rule
Matched to load balance group [lb_etl] the group has policy [ROUNDROBIN] number
of addresses [2]
(0) LB Address: [192.0.2.4]:5433
(1) LB Address: [192.0.2.5]:5433
Chose address at position [1]
Routing table decision: Success. Load balance redirect to: [192.0.2.5] port
[5433]

(1 row)

=&amp;gt; SELECT DESCRIBE_LOAD_BALANCE_DECISION(&amp;#39;10.20.100.25&amp;#39;);
                           DESCRIBE_LOAD_BALANCE_DECISION
-------------------------------------------------------------------------------
 Describing load balance decision for address [10.20.100.25]
Load balance cache internal version id (node-local): [6]
Considered rule [etl_rule] source ip filter [203.0.113.0/24]... input address
does not match source ip filter for this rule.
Considered rule [users_rule] source ip filter [192.0.0.0/5]... input address
does not match source ip filter for this rule.
Routing table decision: No matching routing rules: input address does not match
any routing rule source filters. Details: [Tried some rules but no matching]
No rules matched. Falling back to classic load balancing.
Classic load balance decision: Classic load balancing considered, but either the
policy was NONE or no target was available. Details: [NONE or invalid]

(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;enabling-the-default-subcluster-interior-load-balancing-policy&#34;&gt;Enabling the default subcluster interior load balancing policy&lt;/h2&gt;
&lt;p&gt;The database attempts to apply the default subcluster interior load balancing policy if no other load balancing policy applies to an incoming connection and classic load balancing is not enabled. See &lt;a href=&#34;../../../../../en/admin/managing-client-connections/connection-load-balancing/connection-load-balancing-policies/#Default&#34;&gt;Default Subcluster Interior Load Balancing Policy&lt;/a&gt; for a description of this rule.&lt;/p&gt;
&lt;p&gt;To enable default subcluster interior load balancing, you must create network addresses for the nodes in a subcluster. Once you create the addresses, the database attempts to apply this rule to load balance connections within a subcluster when no other rules apply.&lt;/p&gt;
&lt;p&gt;The following example confirms the database has no load balancing groups or rules. Then it adds publicly-accessible network addresses to the nodes in the primary subcluster. When these addresses are added, the database applies the default subcluster interior load balancing policy.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT * FROM LOAD_BALANCE_GROUPS;
 name | policy | filter | type | object_name
------+--------+--------+------+-------------
(0 rows)

=&amp;gt; SELECT * FROM ROUTING_RULES;
 name | source_address | destination_name
------+----------------+------------------
(0 rows)

=&amp;gt; CREATE NETWORK ADDRESS node01_ext ON v_verticadb_node0001 WITH &amp;#39;203.0.113.1&amp;#39;;
CREATE NETWORK ADDRESS
=&amp;gt; CREATE NETWORK ADDRESS node02_ext ON v_verticadb_node0002 WITH &amp;#39;203.0.113.2&amp;#39;;
CREATE NETWORK ADDRESS
=&amp;gt; CREATE NETWORK ADDRESS node03_ext ON v_verticadb_node0003 WITH &amp;#39;203.0.113.3&amp;#39;;
CREATE NETWORK ADDRESS

=&amp;gt; SELECT describe_load_balance_decision(&amp;#39;11.0.0.100&amp;#39;);
                                describe_load_balance_decision
-----------------------------------------------------------------------------------------------
Describing load balance decision for address [11.0.0.100] on subcluster [default_subcluster]
Load balance cache internal version id (node-local): [2]
Considered rule [auto_rr_default_subcluster] subcluster interior filter  [default_subcluster]...
current subcluster matches this rule
Matched to load balance group [auto_lbg_sc_default_subcluster] the group has policy
[ROUNDROBIN] number of addresses [3]
(0) LB Address: [203.0.113.1]:5433
(1) LB Address: [203.0.113.2]:5433
(2) LB Address: [203.0.113.3]:5433
Chose address at position [1]
Routing table decision: Success. Load balance redirect to: [203.0.113.2] port [5433]

(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;load-balance-both-ipv4-and-ipv6-connections&#34;&gt;Load balance both IPv4 and IPv6 connections&lt;/h2&gt;
&lt;p&gt;Connection load balancing policies regard IPv4 and IPv6 connections as separate networks. To load balance both types of incoming client connections, create two sets of network addresses, at least two load balancing groups, and two load balancing , once for each network address family.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;../../../../../images/connection-load-balancing/load-balancing-ipv6-vs-ipv4.svg&#34; alt=&#34;&#34;&gt;&lt;/p&gt;
&lt;p&gt;This example creates two load balancing policies for the default subcluster: one for the IPv4 network addresses (192.168.111.31 to 192.168.111.33) and one for the IPv6 network addresses (fd9b:1fcc:1dc4:78d3::31 to fd9b:1fcc:1dc4:78d3::33).&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT node_name,node_address,subcluster_name FROM NODES;
      node_name       |  node_address  |  subcluster_name
----------------------+----------------+--------------------
 v_verticadb_node0001 | 192.168.111.31 | default_subcluster
 v_verticadb_node0002 | 192.168.111.32 | default_subcluster
 v_verticadb_node0003 | 192.168.111.33 | default_subcluster

=&amp;gt; CREATE NETWORK ADDRESS node01 ON v_verticadb_node0001 WITH
   &amp;#39;192.168.111.31&amp;#39;;
CREATE NETWORK ADDRESS
=&amp;gt; CREATE NETWORK ADDRESS node01_ipv6 ON v_verticadb_node0001 WITH
   &amp;#39;fd9b:1fcc:1dc4:78d3::31&amp;#39;;
CREATE NETWORK ADDRESS
=&amp;gt; CREATE NETWORK ADDRESS node02 ON v_verticadb_node0002 WITH
   &amp;#39;192.168.111.32&amp;#39;;
CREATE NETWORK ADDRESS
=&amp;gt; CREATE NETWORK ADDRESS node02_ipv6 ON v_verticadb_node0002 WITH
   &amp;#39;fd9b:1fcc:1dc4:78d3::32&amp;#39;;
CREATE NETWORK ADDRESS
=&amp;gt; CREATE NETWORK ADDRESS node03 ON v_verticadb_node0003 WITH
   &amp;#39;192.168.111.33&amp;#39;;
CREATE NETWORK ADDRESS
=&amp;gt; CREATE NETWORK ADDRESS node03_ipv6 ON v_verticadb_node0003 WITH
   &amp;#39;fd9b:1fcc:1dc4:78d3::33&amp;#39;;
CREATE NETWORK ADDRESS

=&amp;gt; CREATE LOAD BALANCE GROUP group_ipv4 WITH SUBCLUSTER default_subcluster
   FILTER &amp;#39;192.168.111.0/24&amp;#39;;
CREATE LOAD BALANCE GROUP
=&amp;gt; CREATE LOAD BALANCE GROUP group_ipv6 WITH SUBCLUSTER default_subcluster
   FILTER &amp;#39;fd9b:1fcc:1dc4:78d3::0/64&amp;#39;;
CREATE LOAD BALANCE GROUP

=&amp;gt; CREATE ROUTING RULE all_ipv4 route &amp;#39;0.0.0.0/0&amp;#39; TO group_ipv4;
CREATE ROUTING RULE
=&amp;gt; CREATE ROUTING RULE all_ipv6 route &amp;#39;0::0/0&amp;#39; TO group_ipv6;
CREATE ROUTING RULE

=&amp;gt; SELECT describe_load_balance_decision(&amp;#39;203.0.113.50&amp;#39;);
                                                                                                                                                                                                                                                                                   describe_load_balance_decision
-----------------------------------------------------------------------------------------------
Describing load balance decision for address [203.0.113.50] on subcluster [default_subcluster]
Load balance cache internal version id (node-local): [3]
Considered rule [all_ipv4] source ip filter [0.0.0.0/0]... input address matches this rule
Matched to load balance group [ group_ipv4] the group has policy [ROUNDROBIN] number of addresses [3]
(0) LB Address: [192.168.111.31]:5433
(1) LB Address: [192.168.111.32]:5433
(2) LB Address: [192.168.111.33]:5433
Chose address at position [2]
Routing table decision: Success. Load balance redirect to: [192.168.111.33] port [5433]

(1 row)

=&amp;gt; SELECT describe_load_balance_decision(&amp;#39;2001:0DB8:EA04:8F2C::1&amp;#39;);
                                                                                                                                                                                                                                                                                                                                                                    describe_load_balance_decision
---------------------------------------------------------------------------------------------------------
Describing load balance decision for address [2001:0DB8:EA04:8F2C::1] on subcluster [default_subcluster]
Load balance cache internal version id (node-local): [3]
Considered rule [all_ipv4] source ip filter [0.0.0.0/0]... input address does not match source ip filter for this rule.
Considered rule [all_ipv6] source ip filter [0::0/0]... input address matches this rule
Matched to load balance group [ group_ipv6] the group has policy [ROUNDROBIN] number of addresses [3]
(0) LB Address: [fd9b:1fcc:1dc4:78d3::31]:5433
(1) LB Address: [fd9b:1fcc:1dc4:78d3::32]:5433
(2) LB Address: [fd9b:1fcc:1dc4:78d3::33]:5433
Chose address at position [2]
Routing table decision: Success. Load balance redirect to: [fd9b:1fcc:1dc4:78d3::33] port [5433]

(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;other-examples&#34;&gt;Other examples&lt;/h2&gt;
&lt;p&gt;For other examples of using connection load balancing, see the following topics:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/kafka-integration/consuming-data-from-kafka/automatically-consume-data-from-kafka-with-scheduler/using-connection-load-balancing-with-kafka-scheduler/#&#34;&gt;Using connection load balancing with the Kafka scheduler&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../../../../en/eon/scaling-your-eon-db/improving-query-throughput-using-subclusters/#Distribu&#34;&gt;Distributing Clients Among the Throughput Subclusters&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: Viewing load balancing policy configurations</title>
      <link>/en/admin/managing-client-connections/connection-load-balancing/connection-load-balancing-policies/viewing-load-balancing-policy-configs/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/managing-client-connections/connection-load-balancing/connection-load-balancing-policies/viewing-load-balancing-policy-configs/</guid>
      <description>
        
        
        &lt;p&gt;Query the following system tables in the &lt;a href=&#34;../../../../../en/sql-reference/system-tables/v-catalog-schema/#&#34;&gt;V_CATALOG schema&lt;/a&gt; to see the load balance policies defined in your database:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../../../../en/sql-reference/system-tables/v-catalog-schema/network-addresses/#&#34;&gt;NETWORK_ADDRESSES&lt;/a&gt; lists all of the network addresses defined in your database.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../../../../en/sql-reference/system-tables/v-catalog-schema/load-balance-groups/#&#34;&gt;LOAD_BALANCE_GROUPS&lt;/a&gt; lists the contents of your load balance groups.&lt;/p&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;

This table does not directly lists all of your database&#39;s load balance groups. Instead, it lists the contents of the load balance groups. It is possible for your database to have load balancing groups that are not in this table because they do not contain any network addresses or fault groups.

&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../../../../en/sql-reference/system-tables/v-catalog-schema/routing-rules/#&#34;&gt;ROUTING_RULES&lt;/a&gt; lists all of the routing rules defined in your database.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This example demonstrates querying each of the load balancing policy system tables.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; \x
Expanded display is on.
=&amp;gt; SELECT * FROM V_CATALOG.NETWORK_ADDRESSES;
-[ RECORD 1 ]----+-----------------
name             | node01
node             | v_vmart_node0001
address          | 10.20.100.247
port             | 5433
address_family   | ipv4
is_enabled       | t
is_auto_detected | f
-[ RECORD 2 ]----+-----------------
name             | node02
node             | v_vmart_node0002
address          | 10.20.100.248
port             | 5433
address_family   | ipv4
is_enabled       | t
is_auto_detected | f
-[ RECORD 3 ]----+-----------------
name             | node03
node             | v_vmart_node0003
address          | 10.20.100.249
port             | 5433
address_family   | ipv4
is_enabled       | t
is_auto_detected | f
-[ RECORD 4 ]----+-----------------
name             | alt_node1
node             | v_vmart_node0001
address          | 192.168.1.200
port             | 8080
address_family   | ipv4
is_enabled       | t
is_auto_detected | f
-[ RECORD 5 ]----+-----------------
name             | test_addr
node             | v_vmart_node0001
address          | 192.168.1.100
port             | 4000
address_family   | ipv4
is_enabled       | t
is_auto_detected | f

=&amp;gt; SELECT * FROM LOAD_BALANCE_GROUPS;
-[ RECORD 1 ]----------------------
name        | group_all
policy      | ROUNDROBIN
filter      |
type        | Network Address Group
object_name | node01
-[ RECORD 2 ]----------------------
name        | group_all
policy      | ROUNDROBIN
filter      |
type        | Network Address Group
object_name | node02
-[ RECORD 3 ]----------------------
name        | group_all
policy      | ROUNDROBIN
filter      |
type        | Network Address Group
object_name | node03
-[ RECORD 4 ]----------------------
name        | group_1
policy      | ROUNDROBIN
filter      |
type        | Network Address Group
object_name | node01
-[ RECORD 5 ]----------------------
name        | group_1
policy      | ROUNDROBIN
filter      |
type        | Network Address Group
object_name | node02
-[ RECORD 6 ]----------------------
name        | group_2
policy      | ROUNDROBIN
filter      |
type        | Network Address Group
object_name | node01
-[ RECORD 7 ]----------------------
name        | group_2
policy      | ROUNDROBIN
filter      |
type        | Network Address Group
object_name | node02
-[ RECORD 8 ]----------------------
name        | group_2
policy      | ROUNDROBIN
filter      |
type        | Network Address Group
object_name | node03
-[ RECORD 9 ]----------------------
name        | etl_group
policy      | ROUNDROBIN
filter      |
type        | Network Address Group
object_name | node01

=&amp;gt; SELECT * FROM ROUTING_RULES;
-[ RECORD 1 ]----+-----------------
name             | internal_clients
source_address   | 192.168.1.0/24
destination_name | group_1
-[ RECORD 2 ]----+-----------------
name             | etl_rule
source_address   | 10.20.100.0/24
destination_name | etl_group
-[ RECORD 3 ]----+-----------------
name             | subnet_192
source_address   | 192.0.0.0/8
destination_name | group_all
&lt;/code&gt;&lt;/pre&gt;
      </description>
    </item>
    
    <item>
      <title>Admin: Maintaining load balancing policies</title>
      <link>/en/admin/managing-client-connections/connection-load-balancing/connection-load-balancing-policies/maintaining-load-balancing-policies/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/managing-client-connections/connection-load-balancing/connection-load-balancing-policies/maintaining-load-balancing-policies/</guid>
      <description>
        
        
        &lt;p&gt;Once you have created load balancing policies, you maintain them using the following statements:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../../../../en/sql-reference/statements/alter-statements/alter-network-address/#&#34;&gt;ALTER NETWORK ADDRESS&lt;/a&gt; lets you: rename, change the IP address, and enable or disable a network address.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../../../../en/sql-reference/statements/alter-statements/alter-load-balance-group/#&#34;&gt;ALTER LOAD BALANCE GROUP&lt;/a&gt; lets you rename, add or remove network addresses or fault groups, change the fault group IP address filter, or change the policy of a load balance group.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../../../../en/sql-reference/statements/alter-statements/alter-routing-rule/#&#34;&gt;ALTER ROUTING RULE&lt;/a&gt; letsyou rename, change the source IP address, and the target load balance group of a rule.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;See the refence pages for these statements for examples.&lt;/p&gt;
&lt;h2 id=&#34;deleting-load-balancing-policy-objects&#34;&gt;Deleting load balancing policy objects&lt;/h2&gt;
&lt;p&gt;You can also delete existing load balance policy objects using the following statements:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/sql-reference/statements/drop-statements/drop-network-address/#&#34;&gt;DROP NETWORK ADDRESS&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/sql-reference/statements/drop-statements/drop-load-balance-group/#&#34;&gt;DROP LOAD BALANCE GROUP&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/sql-reference/statements/drop-statements/drop-routing-rule/#&#34;&gt;DROP ROUTING RULE&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
  </channel>
</rss>
