Yang, Tong 3f5759eed2 MRS comp-lts 2.0.38.SP20 version
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Yang, Tong <yangtong2@huawei.com>
Co-committed-by: Yang, Tong <yangtong2@huawei.com>
2023-01-19 17:08:45 +00:00

97 lines
10 KiB
HTML

<a name="mrs_01_24284"></a><a name="mrs_01_24284"></a>
<h1 class="topictitle1">HetuEngine Cross-Domain Rate Limit Function</h1>
<div id="body32001227"><ol id="mrs_01_24284__en-us_topic_0000001219231227_ol14318122314220"><li id="mrs_01_24284__en-us_topic_0000001219231227_li12347313587"><a name="mrs_01_24284__en-us_topic_0000001219231227_li12347313587"></a><a name="en-us_topic_0000001219231227_li12347313587"></a><span>Configure the <strong id="mrs_01_24284__en-us_topic_0000001219231227_b131941711125015">ratelimit.xml</strong> configuration file for the HSFabric rate limit policy on the local host. The configuration template is as follows:</span><p><pre class="screen" id="mrs_01_24284__en-us_topic_0000001219231227_screen257295820357">&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
&lt;ratelimit&gt;
&lt;current-domain&gt;<em id="mrs_01_24284__en-us_topic_0000001219231227_i130185381218">0755</em>&lt;/current-domain&gt;&lt;!-- city1 Name of zone to which the local domain data source belongs --&gt;
&lt;default-bandwidth&gt;<em id="mrs_01_24284__en-us_topic_0000001219231227_i866205641219">5120</em>&lt;/default-bandwidth&gt;&lt;!-- The default data volume limit is 50 MB --&gt;
&lt;domain-list&gt;
&lt;domain&gt;
&lt;domainName&gt;<em id="mrs_01_24284__en-us_topic_0000001219231227_i16132131311">0769</em>&lt;/domainName&gt;&lt;!--Name of zone to which the target domain data source belongs --&gt;
&lt;bandwidth&gt;<em id="mrs_01_24284__en-us_topic_0000001219231227_i319355141310">102400</em>&lt;/bandwidth&gt;&lt;!-- The data volume (in KB) sent from the current domain (for exampel, city1) to the target domain (for example, city2) is 100 /MB --&gt;
&lt;cluster-list&gt;
&lt;hsfabric&gt;&lt;!-- One HSFabric Cluster --&gt;
&lt;clusterName&gt;<em id="mrs_01_24284__en-us_topic_0000001219231227_i175431012131319">hsfabric01</em>&lt;/clusterName&gt;&lt;!-- Cluster description --&gt;
&lt;hsfabric-node&gt;
&lt;hsfabricHostPort&gt;<em id="mrs_01_24284__en-us_topic_0000001219231227_i264333531216">10.10.10.10:29900</em>&lt;/hsfabricHostPort&gt;&lt;!-- Host IP address of the HSFabric instance --&gt;
&lt;/hsfabric-node&gt;
&lt;/hsfabric&gt;
&lt;/cluster-list&gt;
&lt;/domain&gt;
&lt;domain&gt;
&lt;domainName&gt;<em id="mrs_01_24284__en-us_topic_0000001219231227_i168343111214">0770</em>&lt;/domainName&gt;
&lt;bandwidth&gt;<em id="mrs_01_24284__en-us_topic_0000001219231227_i72366299129">20480</em>&lt;/bandwidth&gt;&lt;!-- The data volume (in KB) sent from the current domain (for exampel, city1) to the target domain (for example, city2) is 20 MB --&gt;
&lt;cluster-list&gt;
&lt;hsfabric&gt;&lt;!-- One HSFabric Cluster --&gt;
&lt;clusterName&gt;<em id="mrs_01_24284__en-us_topic_0000001219231227_i7971123041314">hsfabric02</em>&lt;/clusterName&gt;
&lt;hsfabric-node&gt;
&lt;hsfabricHostPort&gt;<em id="mrs_01_24284__en-us_topic_0000001219231227_i60141911212">10.10.10.10:29900</em>&lt;/hsfabricHostPort&gt;
&lt;/hsfabric-node&gt;
&lt;/hsfabric&gt;
&lt;/cluster-list&gt;
&lt;/domain&gt;
&lt;/domain-list&gt;
&lt;/ratelimit&gt;</pre>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_24284__en-us_topic_0000001219231227_table1418816442363" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameters in the <strong id="mrs_01_24284__en-us_topic_0000001219231227_b193716511512">ratelimit.xml</strong> file</caption><thead align="left"><tr id="mrs_01_24284__en-us_topic_0000001219231227_row1818834411361"><th align="left" class="cellrowborder" valign="top" width="19.011901190119012%" id="mcps1.3.1.1.2.2.2.4.1.1"><p id="mrs_01_24284__en-us_topic_0000001219231227_p61882044173619">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="59.485948594859494%" id="mcps1.3.1.1.2.2.2.4.1.2"><p id="mrs_01_24284__en-us_topic_0000001219231227_p15188144493615">Description</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="21.502150215021505%" id="mcps1.3.1.1.2.2.2.4.1.3"><p id="mrs_01_24284__en-us_topic_0000001219231227_p2188144483613">Example Value</p>
</th>
</tr>
</thead>
<tbody><tr id="mrs_01_24284__en-us_topic_0000001219231227_row918814443614"><td class="cellrowborder" valign="top" width="19.011901190119012%" headers="mcps1.3.1.1.2.2.2.4.1.1 "><p id="mrs_01_24284__en-us_topic_0000001219231227_p8372124214376">current-domain</p>
</td>
<td class="cellrowborder" valign="top" width="59.485948594859494%" headers="mcps1.3.1.1.2.2.2.4.1.2 "><p id="mrs_01_24284__en-us_topic_0000001219231227_p18188044193612">Name of zone to which the local domain data source belongs</p>
</td>
<td class="cellrowborder" valign="top" width="21.502150215021505%" headers="mcps1.3.1.1.2.2.2.4.1.3 "><p id="mrs_01_24284__en-us_topic_0000001219231227_p1218813448364">0755</p>
</td>
</tr>
<tr id="mrs_01_24284__en-us_topic_0000001219231227_row15229152218386"><td class="cellrowborder" valign="top" width="19.011901190119012%" headers="mcps1.3.1.1.2.2.2.4.1.1 "><p id="mrs_01_24284__en-us_topic_0000001219231227_p422992211387">default-bandwidth</p>
</td>
<td class="cellrowborder" valign="top" width="59.485948594859494%" headers="mcps1.3.1.1.2.2.2.4.1.2 "><p id="mrs_01_24284__en-us_topic_0000001219231227_p1322932218384">Default data volume limit, in KB</p>
</td>
<td class="cellrowborder" valign="top" width="21.502150215021505%" headers="mcps1.3.1.1.2.2.2.4.1.3 "><p id="mrs_01_24284__en-us_topic_0000001219231227_p3229222163817">5120</p>
</td>
</tr>
<tr id="mrs_01_24284__en-us_topic_0000001219231227_row64370220392"><td class="cellrowborder" valign="top" width="19.011901190119012%" headers="mcps1.3.1.1.2.2.2.4.1.1 "><p id="mrs_01_24284__en-us_topic_0000001219231227_p24371827396">domainName</p>
</td>
<td class="cellrowborder" valign="top" width="59.485948594859494%" headers="mcps1.3.1.1.2.2.2.4.1.2 "><p id="mrs_01_24284__en-us_topic_0000001219231227_p443711283919">Name of zone to which the target domain data source belongs</p>
</td>
<td class="cellrowborder" valign="top" width="21.502150215021505%" headers="mcps1.3.1.1.2.2.2.4.1.3 "><p id="mrs_01_24284__en-us_topic_0000001219231227_p1843717233918">0769</p>
</td>
</tr>
<tr id="mrs_01_24284__en-us_topic_0000001219231227_row12745713391"><td class="cellrowborder" valign="top" width="19.011901190119012%" headers="mcps1.3.1.1.2.2.2.4.1.1 "><p id="mrs_01_24284__en-us_topic_0000001219231227_p72742743917">bandwidth</p>
</td>
<td class="cellrowborder" valign="top" width="59.485948594859494%" headers="mcps1.3.1.1.2.2.2.4.1.2 "><p id="mrs_01_24284__en-us_topic_0000001219231227_p22748716395">Data volume from the current zone (for example, city1) to the target zone (for example, city2), in KB</p>
</td>
<td class="cellrowborder" valign="top" width="21.502150215021505%" headers="mcps1.3.1.1.2.2.2.4.1.3 "><p id="mrs_01_24284__en-us_topic_0000001219231227_p82744720395">102400</p>
</td>
</tr>
<tr id="mrs_01_24284__en-us_topic_0000001219231227_row1916155512406"><td class="cellrowborder" valign="top" width="19.011901190119012%" headers="mcps1.3.1.1.2.2.2.4.1.1 "><p id="mrs_01_24284__en-us_topic_0000001219231227_p19161165514010">clusterName</p>
</td>
<td class="cellrowborder" valign="top" width="59.485948594859494%" headers="mcps1.3.1.1.2.2.2.4.1.2 "><p id="mrs_01_24284__en-us_topic_0000001219231227_p81614555408">Description of the cluster in the target domain</p>
</td>
<td class="cellrowborder" valign="top" width="21.502150215021505%" headers="mcps1.3.1.1.2.2.2.4.1.3 "><p id="mrs_01_24284__en-us_topic_0000001219231227_p81611655154017">hsfabric01</p>
</td>
</tr>
<tr id="mrs_01_24284__en-us_topic_0000001219231227_row148841529448"><td class="cellrowborder" valign="top" width="19.011901190119012%" headers="mcps1.3.1.1.2.2.2.4.1.1 "><p id="mrs_01_24284__en-us_topic_0000001219231227_p15884112174418">hsfabricHostPort</p>
</td>
<td class="cellrowborder" valign="top" width="59.485948594859494%" headers="mcps1.3.1.1.2.2.2.4.1.2 "><p id="mrs_01_24284__en-us_topic_0000001219231227_p1388414216443">Service IP address and port number of HSFabric in the target domain</p>
</td>
<td class="cellrowborder" valign="top" width="21.502150215021505%" headers="mcps1.3.1.1.2.2.2.4.1.3 "><p id="mrs_01_24284__en-us_topic_0000001219231227_p78841925447">10.10.10.10:29900</p>
</td>
</tr>
</tbody>
</table>
</div>
</p></li><li id="mrs_01_24284__en-us_topic_0000001219231227_li3572195813513"><span>Log in to Manager where the target domain cluster locates as an administrator who can access the <span id="mrs_01_24284__en-us_topic_0000001219231227_text113001125174920">HetuEngine</span> WebUI.</span></li><li id="mrs_01_24284__en-us_topic_0000001219231227_li109471329123513"><span>Choose <strong id="mrs_01_24284__en-us_topic_0000001219231227_b136744700284142">Cluster</strong> &gt; <strong id="mrs_01_24284__en-us_topic_0000001219231227_b61458231384142">Services</strong> &gt; <strong id="mrs_01_24284__en-us_topic_0000001219231227_b213914224984142"><span id="mrs_01_24284__en-us_topic_0000001219231227_text194008410684142">HetuEngine</span></strong>. On the displayed page, click <strong id="mrs_01_24284__en-us_topic_0000001219231227_b78545750584142">Configurations</strong> and then <strong id="mrs_01_24284__en-us_topic_0000001219231227_b7728846684142">All Configurations</strong>.</span></li><li id="mrs_01_24284__en-us_topic_0000001219231227_li1482861472714"><span>Choose <strong id="mrs_01_24284__en-us_topic_0000001219231227_b631318349227">HSFabric(role)</strong> &gt; <strong id="mrs_01_24284__en-us_topic_0000001219231227_b1481144902212">Rate Limit</strong> and click <strong id="mrs_01_24284__en-us_topic_0000001219231227_b1712213589223">Upload File</strong> to upload the <strong id="mrs_01_24284__en-us_topic_0000001219231227_b54913245234">ratelimit.xml</strong> file prepared in <a href="#mrs_01_24284__en-us_topic_0000001219231227_li12347313587">1</a>.</span></li><li id="mrs_01_24284__en-us_topic_0000001219231227_li1584131415584"><span>Click <strong id="mrs_01_24284__en-us_topic_0000001219231227_b187291840247">Instance</strong>, select the <strong id="mrs_01_24284__en-us_topic_0000001219231227_b9967198122412">HSFabric</strong> instance, choose <strong id="mrs_01_24284__en-us_topic_0000001219231227_b444142415248">More</strong> &gt; <strong id="mrs_01_24284__en-us_topic_0000001219231227_b128571128202420">Restart Instance</strong>, and enter the password to restart the HSFabric instance.</span></li></ol>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_2342.html">Using HetuEngine Cross-Domain Function</a></div>
</div>
</div>