To set limiter properties, use the following rhino-console commands or related MBean operations. For more information on the configuration properties for input limiter types see Limiter Types and About Rate Limiting.
|
|
Limiters can only be configured administratively — RAs or services cannot configure limiters. |
Console commands
|
|
For details of available properties for each limiter type, see Limiter Types. |
configureratelimiter
Command |
configureratelimiter <limitername> [-nodes node1,node2...] <[-property value]
[-property value] ... >
Description
Sets the values of the specified configuration properties of the limiter on the
given node(s). Use a value of '-' to clear existing per-node settings
|
|---|---|
Example |
To set rate limiter properties: $ ./rhino-console configureratelimiter SystemInput -nodes 101 -bypassed false -maxrate 100 Updated config properties for limiter 'SystemInput': maxrate=100 bypassed=false |
configuresaturationlimiter
Command |
configuresaturationlimiter <limitername> [-nodes node1,node2...] <[-property
value] [-property value] ... >
Description
Sets the values of the specified configuration properties of the limiter on the
given node(s). Use a value of '-' to clear existing per-node settings
|
|---|---|
Example |
To set saturation limiter properties: $ ./rhino-console configuresaturationlimiter QueueSaturation -maxsaturation 75 Updated config properties for limiter 'QueueSaturation': maxsaturation=7 |
configureabsolutestatlimiter
Command |
configureabsolutestatlimiter <limitername> [-nodes node1,node2...] <[-property
value] [-property value] ... >
Description
Sets the values of the specified configuration properties of the limiter on the
given node(s). Use a value of '-' to clear existing per-node settings
|
|---|---|
Example |
To configure an absolute stat limiter called
$ ./rhino-console configureabsolutestatlimiter ActivitiesActive \ -parameterset Activities \ -statistic active \ -values 10000,12000,13000 \ -limitpercentages 50,75,100 Updated config properties for limiter 'ActivitiesActive': parameterset=Activities statistic=active values=10000,12000,13000 limitpercentages=50,75,100 |
configurerelativestatlimiter
Command |
configurerelativestatlimiter <limitername> [-nodes node1,node2...] <[-property
value] [-property value] ... >
Description
Sets the values of the specified configuration properties of the limiter on the
given node(s). Use a value of '-' to clear existing per-node settings
|
|---|---|
Example |
To configure a relative stat limiter called
$ ./rhino-console configurerelativestatlimiter MemDBLocalCommitted \ -parameterset MemDB-Local \ -statistic committedSize \ -relativeparameterset MemDB-Local \ -relativestatistic maxCommittedSize \ -relativepercentages 75,80,90 \ -limitpercentages 50,75,100 Updated config properties for limiter 'MemDBLocalCommitted': parameterset=MemDB-Local statistic=committedSize relativeparameterset=MemDB-Local relativestatistic=maxCommittedSize relativepercentages=75,80,90 limitpercentages=50,75,100 |
|
|
If You cannot change the name or type of a limiter — these are set when a limiter is created. |
MBean operations
Limiter MBean operations
| Operation | Usage |
|---|---|
void setBypassedDefault(boolean bypassed)
throws ConfigurationException;
|
|
void setBypassedForNode(boolean[] bypassed, int[] nodeIDs)
throws NullPointerException, ConfigurationException, InvalidArgumentException;
|
|
void setParent(String parentName)
throws ConfigurationException, ValidationException, NullPointerException, InvalidArgumentException;
|
RateLimiter MBean operations
| Operation | Usage |
|---|---|
void setDepthDefault(double depth)
throws ConfigurationException, ValidationException;
|
|
void setDepthForNode(double[] depth, int[] nodeIDs)
throws ConfigurationException, ValidationException, NullPointerException, InvalidArgumentException;
|
|
void setMaxRateDefault(double depth)
throws ConfigurationException, ValidationException;
|
|
void setMaxRateForNode(double[] depth, int[] nodeIDs)
throws ConfigurationException, ValidationException, NullPointerException, InvalidArgumentException;
|
|
void setTimeUnit(String timeUnit)
throws ConfigurationException, ValidationException;
|
QueueSaturationLimiter MBean operations
| Operation | Usage |
|---|---|
void setMaxSaturationDefault(double maxSaturation)
throws ConfigurationException, ValidationException;
|
|
void setMaxSaturationForNode(double[] maxSaturation, int[] nodeIDs)
throws ConfigurationException, ValidationException,NullPointerException, InvalidArgumentException;
|
StatLimiter MBean operations
| Operation | Usage |
|---|---|
void setParameterSetStatistic(String parameterSet, String statistic)
throws ConfigurationException, ValidationException;
|
AbsoluteStatLimiter MBean operations
| Operation | Usage |
|---|---|
void setTier(long value, double limitPercentage)
throws ConfigurationException, ValidationException;
|
|
void setTierForNode(long[] values, double[] limitPercentages, int[] nodeIDs)
throws ConfigurationException, InvalidArgumentException, ValidationException;
|
|
void clearTier(long value)
throws ConfigurationException, ValidationException;
|
|
void clearTierForNode(long[] values, int[] nodeIDs)
throws ConfigurationException, InvalidArgumentException, ValidationException;
|
RelativeStatLimiter MBean operations
| Operation | Usage |
|---|---|
void setRelativeParameterSetStatistic(String parameterSet, String statistic)
throws ConfigurationException, ValidationException;
|
|
void setTier(double relativePercentage, double limitPercentage)
throws ConfigurationException, ValidationException;
|
|
void setTierForNode(double[] relativePercentages, double[] limitPercentages, int[] nodeIDs)
throws ConfigurationException, InvalidArgumentException, ValidationException;
|
|
void clearTier(double relativePercentage)
throws ConfigurationException, ValidationException;
|
|
void clearTierForNode(double[] relativePercentages, int[] nodeIDs)
throws ConfigurationException, InvalidArgumentException, ValidationException;
|
