<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:13:49 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Whamcloud Community JIRA</title>
    <link>https://jira.whamcloud.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.4.14</version>
        <build-number>940014</build-number>
        <build-date>05-12-2023</build-date>
    </build-info>


<item>
            <title>[LU-8008] Can&apos;t enable or add rules to TBF </title>
                <link>https://jira.whamcloud.com/browse/LU-8008</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;I am trying to enable NRS_TBF but getting errors. &lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
nbp1-oss6 ~ # cat /proc/fs/lustre/version 
lustre: 2.7.1
kernel: 2.6.32-504.30.3.el6.20151008.x86_64.lustre271
build:  2.7.1-2nasS_mofed31v5

nbp1-oss6 ~ # lctl set_param ost.OSS.ost_io.nrs_policies=tbf
ost.OSS.ost_io.nrs_policies=tbf
error: set_param: setting /proc/fs/lustre/ost/OSS/ost_io/nrs_policies=tbf: Invalid argument

nbp1-oss6 ~ # lctl set_param ost.OSS.ost_io.nrs_tbf_rule=&lt;span class=&quot;code-quote&quot;&gt;&quot;start rule1  { 10.151.27.22@2oib } 50&quot;&lt;/span&gt;
ost.OSS.ost_io.nrs_tbf_rule=start rule1  { 10.151.27.22@2oib } 50
error: set_param: setting /proc/fs/lustre/ost/OSS/ost_io/nrs_tbf_rule=start rule1  { 10.151.27.22@2oib } 50: Invalid argument

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="36064">LU-8008</key>
            <summary>Can&apos;t enable or add rules to TBF </summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.whamcloud.com/images/icons/priorities/major.svg">Major</priority>
                        <status id="5" iconUrl="https://jira.whamcloud.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="2">Won&apos;t Fix</resolution>
                                        <assignee username="emoly.liu">Emoly Liu</assignee>
                                    <reporter username="mhanafi">Mahmoud Hanafi</reporter>
                        <labels>
                    </labels>
                <created>Mon, 11 Apr 2016 23:00:42 +0000</created>
                <updated>Thu, 20 Apr 2017 19:23:01 +0000</updated>
                            <resolved>Thu, 5 May 2016 01:18:48 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="148555" author="emoly.liu" created="Tue, 12 Apr 2016 08:17:47 +0000"  >&lt;p&gt;Here is some introduction on NRS-TBF for your reference:&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;3.1 Enable TBF policy

The command to enable a TBF policy is shown as follows:
#lctl set_param x.x.x.nrs_policies=&#8221;tbf [reg|hp] &amp;lt;type&amp;gt;&#8221;

The argument &quot;type&quot; is the classification type of RPC requests. Currently, only &quot;nid&quot; and &quot;jobid&quot; are supported.
For example,
#lctl set_param ost.OSS.ost_io.nrs_policies=&quot;tbf nid&quot;
#lctl set_param ost.OSS.ost_io.nrs_policies=&quot;tbf reg nid&quot;
#lctl set_param ost.OSS.ost_io.nrs_policies=&quot;tbf hp nid&quot;

3.2 Start rule

The command to start a TBF policy rule is shown as follows:
#lctl set_param x.x.x.nrs_policies=&#8221;[reg|hp] start &amp;lt;rule_name&amp;gt; &amp;lt;arguments&amp;gt;...&#8221;

The argument &quot;rule_name&quot; argument is the TBF policy rule name. The format of the &#8216;arguments&#8217; is different per the different TBF policy type.

For NID based TBF policy, the format is shown as follows:
#lctl set_param x.x.x.nrs_policies=&#8221;[reg|hp] start &amp;lt;rule_name&amp;gt; {&amp;lt;nid_list&amp;gt;} &amp;lt;rate&amp;gt;&#8221;

The &#8216;nid_list&#8217; argument uses the same format used to configure an LNET route. The &#8216;rate&#8217; argument is the RPC rate of the rule.

For example, 
#lctl set_param ost.OSS.ost_io.nrs_tbf_rule=&quot;start loginnode {192.168.1.1@tcp} 10000&quot;
#lctl set_param ost.OSS.ost_io.nrs_tbf_rule=&quot;reg start loginnode {192.168.1.1@tcp} 10000&quot;
#lctl set_param ost.OSS.ost_io.nrs_tbf_rule=&quot;hp start loginnode {192.168.1.1@tcp} 10000&quot;
#lctl set_param ost.OSS.ost_io.nrs_tbf_rule=&quot;start computenodes {192.168.1.[1-128]@tcp} 1000&quot;
#lctl set_param ost.OSS.ost_io.nrs_tbf_rule=&quot;start other_clients {192.168.*.*@tcp} 100&quot;

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Here is the output of your example with correct format, on my computer:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;[root@centos6-1 tests]# ../utils/lctl set_param ost.OSS.ost_io.nrs_policies=&quot;tbf nid&quot;
ost.OSS.ost_io.nrs_policies=tbf nid
[root@centos6-1 tests]# ../utils/lctl set_param ost.OSS.ost_io.nrs_tbf_rule=&quot;start rule1 {10.151.27.22@o2ib} 50&quot;
ost.OSS.ost_io.nrs_tbf_rule=start rule1 {10.151.27.22@o2ib} 50
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;You can find the similar introduction in Lustre manual, or the wiki page &lt;a href=&quot;https://wiki.hpdd.intel.com/display/ENG/Token+Bucket+Filter+Policy&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://wiki.hpdd.intel.com/display/ENG/Token+Bucket+Filter+Policy&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="148624" author="mhanafi" created="Tue, 12 Apr 2016 18:18:37 +0000"  >&lt;p&gt;That link doesn&apos;t work.&lt;/p&gt;

&lt;p&gt;Is the type (nid or jobid) mutually exclusive? Or can we use both at the same time.&lt;/p&gt;</comment>
                            <comment id="148700" author="emoly.liu" created="Wed, 13 Apr 2016 02:10:51 +0000"  >&lt;p&gt;The work to use both at the same time is in progress in &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7470&quot; title=&quot;Extend TBF policy with NID/JobID expressions&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7470&quot;&gt;&lt;del&gt;LU-7470&lt;/del&gt;&lt;/a&gt; (&lt;a href=&quot;http://review.whamcloud.com/#/c/17345/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/17345/&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;BTW, I converted that wiki page into pdf format and attached here, but some animation gif images can&apos;t be shown correctly.&lt;/p&gt;</comment>
                            <comment id="149477" author="jaylan" created="Tue, 19 Apr 2016 20:28:13 +0000"  >&lt;p&gt;Hmmm, &lt;a href=&quot;http://review.whamcloud.com/#/c/17345/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/17345/&lt;/a&gt; marked it conflicts with &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8006&quot; title=&quot;Specify ordering of TBF policy rules&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8006&quot;&gt;&lt;del&gt;LU-8006&lt;/del&gt;&lt;/a&gt;, another ticket Mahmoud opened. &lt;/p&gt;

&lt;p&gt;So, we can only have one solution? &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.whamcloud.com/images/icons/emoticons/wink.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                            <comment id="149512" author="emoly.liu" created="Wed, 20 Apr 2016 04:00:09 +0000"  >&lt;p&gt;I think we can discuss this issue with LiXi in &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8006&quot; title=&quot;Specify ordering of TBF policy rules&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8006&quot;&gt;&lt;del&gt;LU-8006&lt;/del&gt;&lt;/a&gt; or &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7470&quot; title=&quot;Extend TBF policy with NID/JobID expressions&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7470&quot;&gt;&lt;del&gt;LU-7470&lt;/del&gt;&lt;/a&gt; directly.&lt;/p&gt;</comment>
                            <comment id="151113" author="jfc" created="Thu, 5 May 2016 01:18:49 +0000"  >&lt;p&gt;Resolving this because the work is being done on &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8006&quot; title=&quot;Specify ordering of TBF policy rules&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8006&quot;&gt;&lt;del&gt;LU-8006&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;~ jfc.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="33310">LU-7470</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="36056">LU-8006</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="19694">LU-3558</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="21090" name="ENG-TokenBucketFilterPolicy-130416-0205-908.pdf" size="32138" author="emoly.liu" created="Wed, 13 Apr 2016 02:10:51 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                            <customfield id="customfield_10890" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzy7lz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10060" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Severity</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10022"><![CDATA[3]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>