Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions site/samples/samples.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ ${WDT_HOME}/bin/modelHelp.sh -oracle_home /tmp/oracle resources:/JDBCSystemResou
```
## Contents
- [JDBC Sample](jdbc.md)
- [Work Manager Sample](work_manager.md)
63 changes: 63 additions & 0 deletions site/samples/work_manager.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
## Work Manager Sample

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.
```yaml
resources:
SelfTuning:
Capacity:
capacity40:
Target: 'cluster-1'
Count: 40
MaxThreadsConstraint:
threeMax:
Target: 'cluster-1'
Count: 3
MinThreadsConstraint:
twoMin:
Target: 'cluster-1'
Count: 2
FairShareRequestClass:
appFairShare:
Target: 'cluster-1'
FairShare: 50
highFairshare:
Target: 'cluster-1'
FairShare: 80
lowFairshare:
Target: 'cluster-1'
FairShare: 20
ResponseTimeRequestClass:
fiveSecondResponse:
Target: 'cluster-1'
GoalMs: 5000
ContextRequestClass:
appContextRequest:
Target: 'cluster-1'
ContextCase:
Case1:
GroupName: Administrators
RequestClassName: highFairshare
Target: 'cluster-1'
Case2:
UserName: weblogic
RequestClassName: lowFairshare
Target: 'cluster-1'
WorkManager:
myWorkManager:
Capacity: capacity40
ContextRequestClass: appContextRequest
# FairShareRequestClass: appFairShare
IgnoreStuckThreads: true
MaxThreadsConstraint: threeMax
MinThreadsConstraint: twoMin
# ResponseTimeRequestClass: fiveSecondResponse
Target: 'cluster-1'
```
In this sample, assignments for `FairShareRequestClass` and `ResponseTimeRequestClass` are included as comments under `myWorkManager`. A Work Manager can only specify one request class type.

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:
```yaml
${WDT_HOME}/bin/modelHelp.sh -oracle_home /tmp/oracle resources:/WorkManager
```

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.