Skip to content

Commit 395f5e9

Browse files
kolchfa-awsLingxi ChenLindsay-00natebower
authored
Update workload management topic and doc review of workload management in dashboards (#10673)
* added wlm dashboard documentation Signed-off-by: Lingxi Chen <[email protected]> * added more pics Signed-off-by: Lingxi Chen <[email protected]> * more action-oriented Signed-off-by: Lingxi Chen <[email protected]> * added more detailed description Signed-off-by: Lingxi Chen <[email protected]> * Doc review and rewrite of workload management Signed-off-by: Fanit Kolchina <[email protected]> * Apply suggestions from code review Signed-off-by: Nathan Bower <[email protected]> * Add a better screenshot Signed-off-by: Fanit Kolchina <[email protected]> --------- Signed-off-by: Lingxi Chen <[email protected]> Signed-off-by: Fanit Kolchina <[email protected]> Signed-off-by: Nathan Bower <[email protected]> Co-authored-by: Lingxi Chen <[email protected]> Co-authored-by: Lindsay-00 <[email protected]> Co-authored-by: Nathan Bower <[email protected]>
1 parent 096100c commit 395f5e9

File tree

14 files changed

+481
-448
lines changed

14 files changed

+481
-448
lines changed

_install-and-configure/additional-plugins/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ There are many more plugins available in addition to those provided by the stand
3535
| `repository-s3` | 1.0.0 |
3636
| `store-smb` | 1.0.0 |
3737
| `transport-grpc` | 3.0.0 |
38+
| `workload-management` | 2.18.0 |
3839

39-
## Related articles
40+
## Related documentation
4041

4142
[Installing plugins]({{site.url}}{{site.baseurl}}/install-and-configure/plugins/)
4243
[`ingest-attachment` plugin]({{site.url}}{{site.baseurl}}/install-and-configure/additional-plugins/ingest-attachment-plugin/)

_install-and-configure/configuring-opensearch/plugin-settings.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,8 @@ For information about security analytics settings, see [Security Analytics setti
9797

9898
## SQL plugin settings
9999

100-
For information about settings related to SQL and PPL, see [SQL settings]({{site.url}}{{site.baseurl}}/search-plugins/sql/settings/).
100+
For information about settings related to SQL and PPL, see [SQL settings]({{site.url}}{{site.baseurl}}/search-plugins/sql/settings/).
101+
102+
## Workload Management plugin settings
103+
104+
For information about workload management settings, see [Workload management settings]({{site.url}}{{site.baseurl}}/tuning-your-cluster/availability-and-recovery/workload-management/wlm-feature-overview/#workload-management-settings).

_tuning-your-cluster/availability-and-recovery/rule-based-autotagging/autotagging.md

Lines changed: 10 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
layout: default
33
title: Rule-based auto-tagging
4-
nav_order: 20
5-
parent: Workload management
6-
grand_parent: Availability and recovery
4+
nav_order: 80
5+
parent: Availability and recovery
6+
has_children: true
77
---
88

99
# Rule-based auto-tagging
@@ -44,7 +44,7 @@ The following rule schema includes matching attributes and a feature-specific va
4444
```json
4545
{
4646
"_id": "fwehf8302582mglfio349==",
47-
"index_patterns": ["logs-prod-*"],
47+
"index_pattern": ["logs-prod-*"],
4848
"other_attribute": ["value1", "value2"],
4949
"workload_group": "production_workload_id",
5050
"updated_at": 1683256789000
@@ -53,30 +53,7 @@ The following rule schema includes matching attributes and a feature-specific va
5353

5454
### Managing rules
5555

56-
Use the following API operations to manage rules for workload management.
57-
58-
#### Create or update a rule
59-
60-
```http
61-
PUT /_rules/workload_group
62-
{
63-
"index_patterns": ["prod-logs-*"],
64-
"other_attribute": ["value1"],
65-
"workload_group": "production_workload_id"
66-
}
67-
```
68-
69-
#### List rules
70-
71-
```http
72-
GET /_rules/workload_group
73-
```
74-
75-
#### Delete a rule
76-
77-
```http
78-
DELETE /_rules/workload_group/{rule_id}
79-
```
56+
Use the [Rules API]({{site.url}}{{site.baseurl}}/tuning-your-cluster/availability-and-recovery/rule-based-autotagging/rule-lifecycle-api/) to manage rules.
8057

8158
## Attribute matching
8259

@@ -123,13 +100,13 @@ These examples demonstrate how rule-based auto-tagging works in workload managem
123100

124101
```json
125102
{
126-
"index_patterns": ["logs-prod-*"],
103+
"index_pattern": ["logs-prod-*"],
127104
"request_type": ["search", "count"],
128105
"workload_group": "production_search_workload_id"
129106
}
130107

131108
{
132-
"index_patterns": ["logs-prod-*"],
109+
"index_pattern": ["logs-prod-*"],
133110
"workload_group": "production_workload_id"
134111
}
135112
```
@@ -138,12 +115,12 @@ These examples demonstrate how rule-based auto-tagging works in workload managem
138115

139116
```json
140117
{
141-
"index_patterns": ["logs-*"],
118+
"index_pattern": ["logs-*"],
142119
"workload_group": "general_workload_id"
143120
}
144121

145122
{
146-
"index_patterns": ["logs-prod-service-*"],
123+
"index_pattern": ["logs-prod-service-*"],
147124
"workload_group": "prod_service_workload_id"
148125
}
149126
```
@@ -199,4 +176,4 @@ You can resolve both issues by validating your configuration using one of the fo
199176

200177
- **Test rules with sample requests**: First, create a rule using the REST API, and then send a request that matches the rule's attributes. For example, for a rule with `"index_pattern": ["logs*", "events*"]`, you can send a request to a `logs` or `events` index. Then verify the workload management statistics by querying the [Workload Management Stats API]({{site.url}}{{site.baseurl}}/tuning-your-cluster/availability-and-recovery/workload-management/wlm-feature-overview/#workload-management-stats-api).
201178

202-
- **Use the [List rules API](#list-rules)** to confirm rule definitions.
179+
- **Use the [Get Rule API]({{site.url}}{{site.baseurl}}/tuning-your-cluster/availability-and-recovery/rule-based-autotagging/rule-lifecycle-api/#get-a-rule)** to confirm rule definitions.

_tuning-your-cluster/availability-and-recovery/rule-based-autotagging/rule-lifecycle-api.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
layout: default
3-
title: Rule Lifecycle API
3+
title: Rules API
44
nav_order: 20
5-
parent: Rule based autotagging
5+
parent: Rule-based auto-tagging
66
grand_parent: Availability and recovery
77
---
88

9-
# Rule Lifecycle API
9+
# Rules API
1010

11-
The Rule Lifecycle API allows you to create, update, retrieve, and delete rules. Each rule is associated with a specific feature type and contains a feature value and at least one attribute.
11+
The Rules API allows you to create, update, retrieve, and delete rules. Each rule is associated with a specific feature type and contains a feature value and at least one attribute.
1212
These rules are designed to automatically assign feature values to incoming queries based on the specified attributes, helping to categorize and manage queries automatically.
1313

1414
## Endpoints
@@ -81,7 +81,7 @@ The following table lists the fields available in the request body.
8181

8282
## Example requests
8383

84-
The following example demonstrates how to use the Rule Lifecycle API to create a rule.
84+
The following example demonstrates how to use the Rules API to create a rule.
8585

8686
### Create a rule
8787

@@ -114,7 +114,7 @@ PUT _rules/workload_group/0A6RULxkQ9yLqn4r8LPrIg
114114
You can't change the `feature_type`. Fields that are not updated can be omitted.
115115
{: .note }
116116

117-
### Get a rule
117+
### Retrieve a rule
118118

119119
The following request retrieves a rule by ID:
120120

@@ -143,7 +143,7 @@ To retrieve the next page, send another request to the same endpoint using the s
143143
The following example continues the search for all rules of the `workload_group` feature type where the `index_pattern` attribute contains the values `a` or `b`:
144144

145145
```json
146-
"GET /_rules/workload_group?index_pattern=a,b&search_after=z1MJApUB0zgMcDmz-UQq"
146+
GET /_rules/workload_group?index_pattern=a,b&search_after=z1MJApUB0zgMcDmz-UQq
147147
```
148148
{% include copy-curl.html %}
149149

_tuning-your-cluster/availability-and-recovery/workload-management/create-workload-group-rules-api.md

Lines changed: 0 additions & 162 deletions
This file was deleted.

0 commit comments

Comments
 (0)