<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article Example Load Balancing Rule using Regular Expressions in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Example-Load-Balancing-Rule-using-Regular-Expressions/ta-p/1713819</link>
    <description>&lt;P&gt;In this scenario, an administrator wants to approximate random application pinning using load balancing rules. In order to accomplish this, they will need to use the &lt;A href="https://help.qlik.com/en-US/sense/April2018/Subsystems/ManagementConsole/Content/operator-matches.htm" target="_blank" rel="noopener"&gt;MATCHES &lt;/A&gt;operator since it allows the use of regular expressions.&lt;BR /&gt;&lt;BR /&gt;Since applications have unique GUIDs assigned upon app creation, a crafted load balancing rule which matches approximately half the app GUIDs would effectively pin half of the apps to a particular node.&lt;BR /&gt;&lt;BR /&gt;From a relatively large Qlik Sense deployment, we can see the distribution of app GUIDs is relatively evenly distributed:&lt;/P&gt;
&lt;PRE&gt;FirstLetter		Count	% of total	Cumilative Percent
0    			382    	5.86%    	5.86%
1   			401    	6.16%    	12.02%
2   			435    	6.68%    	18.70%
3   			389    	5.97%    	24.67%
4   			413    	6.34%    	31.01%
5   			392    	6.02%    	37.03%
6   			429    	6.59%    	43.61%
7   			393    	6.03%    	49.65%
8   			387    	5.94%
9   			444    	6.82%
a   			384    	5.89%
b   			435    	6.68%
c   			412    	6.32%
d   			391    	6.00%
e   			422    	6.48%
f   			405    	6.22%&lt;/PRE&gt;
&lt;P&gt;The use of a regular expression allows the administrator to pattern match by app GUID in a programmatic way.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;Resolution&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;Example Rule:&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/H4&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Resource Filter: App_*&lt;/LI&gt;
&lt;LI&gt;Actions: Load Balancing&lt;/LI&gt;
&lt;LI&gt;Conditions:&amp;nbsp;((node.name="Scheduler1" and (resource.id matches "[0-7]{1}[a-z0-9]{7}-([a-z0-9]{4}-){3}[a-z0-9]{12}")) or (node.name="Scheduler2" and (resource.id matches "[a-z8-9]{1}[a-z0-9]{7}-([a-z0-9]{4}-){3}[a-z0-9]{12}")))&lt;/LI&gt;
&lt;LI&gt;Context: Both in Hub and QMC&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;The logic behind this rule is that the node named Scheduler1 will have all apps which have GUIDs starting with 0-7 and the node named Scheduler2 will receive the rest.&lt;/P&gt;</description>
    <pubDate>Thu, 11 Nov 2021 14:49:56 GMT</pubDate>
    <dc:creator>Andre_Sostizzo</dc:creator>
    <dc:date>2021-11-11T14:49:56Z</dc:date>
    <item>
      <title>Example Load Balancing Rule using Regular Expressions</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Example-Load-Balancing-Rule-using-Regular-Expressions/ta-p/1713819</link>
      <description>&lt;P&gt;In this scenario, an administrator wants to approximate random application pinning using load balancing rules. In order to accomplish this, they will need to use the &lt;A href="https://help.qlik.com/en-US/sense/April2018/Subsystems/ManagementConsole/Content/operator-matches.htm" target="_blank" rel="noopener"&gt;MATCHES &lt;/A&gt;operator since it allows the use of regular expressions.&lt;BR /&gt;&lt;BR /&gt;Since applications have unique GUIDs assigned upon app creation, a crafted load balancing rule which matches approximately half the app GUIDs would effectively pin half of the apps to a particular node.&lt;BR /&gt;&lt;BR /&gt;From a relatively large Qlik Sense deployment, we can see the distribution of app GUIDs is relatively evenly distributed:&lt;/P&gt;
&lt;PRE&gt;FirstLetter		Count	% of total	Cumilative Percent
0    			382    	5.86%    	5.86%
1   			401    	6.16%    	12.02%
2   			435    	6.68%    	18.70%
3   			389    	5.97%    	24.67%
4   			413    	6.34%    	31.01%
5   			392    	6.02%    	37.03%
6   			429    	6.59%    	43.61%
7   			393    	6.03%    	49.65%
8   			387    	5.94%
9   			444    	6.82%
a   			384    	5.89%
b   			435    	6.68%
c   			412    	6.32%
d   			391    	6.00%
e   			422    	6.48%
f   			405    	6.22%&lt;/PRE&gt;
&lt;P&gt;The use of a regular expression allows the administrator to pattern match by app GUID in a programmatic way.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;Resolution&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;Example Rule:&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/H4&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Resource Filter: App_*&lt;/LI&gt;
&lt;LI&gt;Actions: Load Balancing&lt;/LI&gt;
&lt;LI&gt;Conditions:&amp;nbsp;((node.name="Scheduler1" and (resource.id matches "[0-7]{1}[a-z0-9]{7}-([a-z0-9]{4}-){3}[a-z0-9]{12}")) or (node.name="Scheduler2" and (resource.id matches "[a-z8-9]{1}[a-z0-9]{7}-([a-z0-9]{4}-){3}[a-z0-9]{12}")))&lt;/LI&gt;
&lt;LI&gt;Context: Both in Hub and QMC&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;The logic behind this rule is that the node named Scheduler1 will have all apps which have GUIDs starting with 0-7 and the node named Scheduler2 will receive the rest.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2021 14:49:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Example-Load-Balancing-Rule-using-Regular-Expressions/ta-p/1713819</guid>
      <dc:creator>Andre_Sostizzo</dc:creator>
      <dc:date>2021-11-11T14:49:56Z</dc:date>
    </item>
  </channel>
</rss>

