Skip to content

Commit 6239acc

Browse files
authored
Added sample model for Work Manager (#622)
* JIRA WDT-407 Added sample model for Work Manager * JIRA WDT-407 Corrections from review
1 parent 544fcec commit 6239acc

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-0
lines changed

site/samples/samples.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ ${WDT_HOME}/bin/modelHelp.sh -oracle_home /tmp/oracle resources:/JDBCSystemResou
88
```
99
## Contents
1010
- [JDBC Sample](jdbc.md)
11+
- [Work Manager Sample](work_manager.md)

site/samples/work_manager.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
## Work Manager Sample
2+
3+
This WDT domain model sample section has typical configurations for a Work Manager and its related request classes and constraints. These elements are configured in the `SelfTuning` folder in the `resources` section of the model.
4+
```yaml
5+
resources:
6+
SelfTuning:
7+
Capacity:
8+
capacity40:
9+
Target: 'cluster-1'
10+
Count: 40
11+
MaxThreadsConstraint:
12+
threeMax:
13+
Target: 'cluster-1'
14+
Count: 3
15+
MinThreadsConstraint:
16+
twoMin:
17+
Target: 'cluster-1'
18+
Count: 2
19+
FairShareRequestClass:
20+
appFairShare:
21+
Target: 'cluster-1'
22+
FairShare: 50
23+
highFairshare:
24+
Target: 'cluster-1'
25+
FairShare: 80
26+
lowFairshare:
27+
Target: 'cluster-1'
28+
FairShare: 20
29+
ResponseTimeRequestClass:
30+
fiveSecondResponse:
31+
Target: 'cluster-1'
32+
GoalMs: 5000
33+
ContextRequestClass:
34+
appContextRequest:
35+
Target: 'cluster-1'
36+
ContextCase:
37+
Case1:
38+
GroupName: Administrators
39+
RequestClassName: highFairshare
40+
Target: 'cluster-1'
41+
Case2:
42+
UserName: weblogic
43+
RequestClassName: lowFairshare
44+
Target: 'cluster-1'
45+
WorkManager:
46+
myWorkManager:
47+
Capacity: capacity40
48+
ContextRequestClass: appContextRequest
49+
# FairShareRequestClass: appFairShare
50+
IgnoreStuckThreads: true
51+
MaxThreadsConstraint: threeMax
52+
MinThreadsConstraint: twoMin
53+
# ResponseTimeRequestClass: fiveSecondResponse
54+
Target: 'cluster-1'
55+
```
56+
In this sample, assignments for `FairShareRequestClass` and `ResponseTimeRequestClass` are included as comments under `myWorkManager`. A Work Manager can only specify one request class type.
57+
58+
There are additional sub-folders and attributes available for more configuration options. These can be determined using the [Model Help Tool](../model_help.md). For example, this command will list the attributes and sub-folders for the `WorkManager` folder:
59+
```yaml
60+
${WDT_HOME}/bin/modelHelp.sh -oracle_home /tmp/oracle resources:/WorkManager
61+
```
62+
63+
For this sample, the target cluster `cluster-1` should be defined elsewhere within this model, or should already exist in a domain that is being updated.

0 commit comments

Comments
 (0)