Suppose you want to prevent overloading the system and improve the system throughput by limiting a single user's queries to process only one at a time. For example, John Smith has 25 queries that he submits before he leaves from work at night and he needs the results only when he returns. You can place any queries that exceed John's limit in a delay queue. When one query completes, the next query in the queue starts executing.
- Select a ruleset to edit.
- Open the Workload Designer portlet and the Workload Designer view.
- From the For System list, select PROD1.
- In the local Working section, click the ruleset name, FILTERS/THROTTLES.
- Create a new system throttle.
- From the ruleset toolbar, click Throttles.
- Next to System Throttles, click .
- Enter the name of the throttle, in this case John Smith Concurrent Queries.
- Select the Rule Type option Collective.
- Click Save.
- Add classification criteria to limit the rule to John Smith.
- Click the Classification tab.
- From the Add Classification Criteria list, select Request Source.
- Click Add.The Edit Request Source Criteria dialog box appears.
- From the Source Type list, select Username.
- Under Username, enter the user ID for the database session: johnsmith.
- Click Include.
- Click OK.
- Click Save.
- Add throttle limits to allow only one query to execute at a time.
- Click the State Specific Settings tab.
- Under Default Settings at the bottom of the Throttles view, type 1 in the box to set the concurrency limit.
- Select Delay to place queries exceeding the limit in a delay queue.
- Click Save.
- Activate the ruleset.
- Go back to the Workload Designer view.
- For the FILTERS/THROTTLES ruleset, click and select Make Active.
- [Optional] Review the queries in the delay queue.
- Open the Workload Monitor portlet.
- Click in the portlet frame and select Settings.
- Click the Systems tab.
- From the Systems list, select PROD1.
- Click OK.
- From the toolbar, click on Delayed Requests to view metrics for requests that were delayed by throttles.
- Click on the Session ID to view more details.