Details
-
New Feature
-
Resolution: Fixed
-
Minor
-
None
-
9223372036854775807
Description
In NRS TBF policy, RPCs need to be classified according to user-defined rules to meet with different requirements. Existing rules can only based on NID or JobID according to the type of TBF. However, these kind of rules might not enough for some use cases, for example, when we want to limit NID rates as well as JobID rates at the same time.
So, we extend the existing TBF policy so that following kind of rules can be used:
JOBID={dd.500}&NID={192.168.1.1@tcp},JOBID={dd.0}&NID={192.168.1.*@tcp} 10000
The expression of the rule is combined by two sub-expression, JOBID={dd.500}&NID={192.168.1.1@tcp and JOBID={dd.0}&NID={192.168.1.*@tcp. The expression's value is the disjunction of all the sub-expressions, which mean, the expression will be true if at least one of the sub-expressions is true.
And sub-expression JOBID={dd.500}&NID={192.168.1.1@tcp is combined by JOBID={dd.500 and NID={192.168.1.1@tcp. The value of sub-expression is the conjunction of both minimum-expressions (i.e. JOBID={dd.500 and NID={192.168.1.1@tcp), which means the sub-expression will be true if both of the minimum-expressions are ture.
By using this kind of expression, we can define as complex rules as we wish.
Attachments
Issue Links
- is related to
-
LUDOC-328 documentation updates for complex TBF policies
- Open
-
LU-8008 Can't enable or add rules to TBF
- Resolved
-
LU-9535 Interop 2.9<->master sanityn test_77j: failed to set TBF OPCode policy
- Resolved
-
LU-3558 NRS TBF policy for QoS purposes
- Resolved
-
LU-8006 Specify ordering of TBF policy rules
- Resolved