Suppose a grocery store chain wants to give personalized coupons. At checkout, the customers slide their rewards cards. The database is queried for suitable coupons, and the results need to return within one second. You want to set the SLG to have a response time of no more than one second, 98 percent of the time.
- 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, SLG.
- Create a workload.
- From the ruleset toolbar, click Workloads.
- Next to Workloads, click .
- In the General tab, enter a name for the workload, in this case Store Rewards.
- Under Workload Management Method, select Tactical.
- Click Save.
- Add classification criteria to limit the rule to the Store Rewards application, that submits the queries to the Teradata system.
- 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 Application.
- Under Application, enter the name of the application that queries the database: StoreRewards_Application
- Click Include.
- Click OK.
- Click Save.
- Define the service-level goals.
- Click the Service Level Goals tab.
- Under Default Settings, select Response Time Goal.
- In the Response Time field, enter 1 for a response time goal of maximum 1 second.
- In the Service Percent field, enter 98.This means the response time goal is met at least 98% of the time.
- Click Save.
- Activate the ruleset.
- Go back to the Workload Designer view.
- For the SLG ruleset, click and select Make Active.
- [Optional] Review requests that missed the SLG criteria you defined.
- Open the Workload Monitor portlet.
- In the Dynamic Pipes View, hover over the Store Rewards workload in the workload pane.An information balloon appears, showing the percentage of requests that missed the SLG.
- For more details, click the name of the workload.The Workload Details View appears, providing details about, for example, request arrivals and completions.