This topic explains how to create application service policies.
在您开始之前
The service policy will treat all traffic to WebSphere Portal as
a medium priority with a service goal of three seconds and a tolerance of
10%.
关于本任务
Complete the following steps to create application service policies:
过程
- From the Deployment Manager administrative console, click Operational
policies > Service policies.
- Click New to begin the Service Policy creation wizard.
- Select a name, such as portal_medium_tolerance.
- Select a goal type for percentile response time.
- Click Next.
- Select a goal value, such as three seconds.
- Select a tolerance level, such as 10%.
- Select medium importance.
- Click Next.
- Create a transaction class, such as portal_medium_tolerance_tc.
- Click Next.
- Verify the Service Policy configuration is correct and click Finish.
- From the Deployment Manager administrative console, click Applications
> Enterprise applications.
- Select the wps application.
- Click the Service Policies tab.
- Expand Work Classes for HTTP Requests.
- Create a new work class.
- Type Portal Medium Tolerance as the name of the work
class.
- Click Next.
- Select the appropriate wps.war file.
- Add a wildcard custom URI pattern (*).
- Click Next.
- Review the work class and click Finish.
- Expand Work Classes for HTTP Requests.
- Expand Portal Medium Tolerance.
- Select Portal_Medium_Tolerance_TC as the default
transaction class.
- Click OK and save the changes.
下一步做什么
WebSphere Extended Deployment also allows you to base the service
policies on user-defined rulesets. To define a rule:
- Click add rule from the work class.
- Next, click rule builder.
From here, add various rules and utilize multiple service policies.
For example, a different service policy can handle HTTP requests by creating
a rule for HTTP headers and value. Associate incoming requests that use HTTP
with a higher priority service policy.