Analytics Manager > Working with Flexible Scaling > Create a Quality of Service Rule > Example: Result of a Quality of Service Rule
Example: Result of a Quality of Service Rule
The following example shows how you can configure a rule for waiting job count between 10 and 20:
* 
In the above image, the rule is configured by setting the value of the threshold for addition and reduction in resources. The threshold value is displayed under the Addition Threshold and Reduction Threshold columns. If you configure the rule with a threshold parameter, then its value is displayed under the Addition Threshold Parameter and the Reduction Threshold Parameter columns.
Create a Quality of Service rule, WaitingJobsCountRule to request for addition or reduction in resources based on the number of jobs waiting in the job queue for execution.
Rule NameWaitingJobsCountRule
Activity TypeBackground
MetricWaitingJobs
Synthesizing FunctionCount
Create an expression to request for addition in resources:
Margin Operator+
Margin2
Margin Type ValueAbsolute
Threshold OperatorGreaterThan
Threshold20
Frequency4
In this case, an addition in resources would be requested only after 4 consecutive successful evaluations of the rule when the (number of current waiting job count + 2) is greater than 20.
Create an expression to request for reduction in resources:
Margin Operator-
Margin5
Margin Type ValuePercent
Threshold OperatorLessThan
Threshold10
Frequency5
In this case, a reduction in resources would be requested only after 5 consecutive successful evaluations of the rule when the (number of current waiting job count – 5 % of waiting jobs) is less than 10.
Was this helpful?