forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Respect operation purpose for s3 stats collection
A new no-op OperationPurpose parameter is added in elastic#99615 to all blob store/container operation method. This PR updates the s3 stats collection code to actually use this parameter for finer grained stats collection and reports. Stats are reported per combination of operation and operation purpose. A sample output is as the follows: ``` { "ListObjects": 2, "GetObject": 1, "PutObject": 2, "PutMultipartObject": 0, "AbortMultipartObject": 0, "DeleteObjects": 1, "GetObject/ClusterState": 1, "PutObject/ClusterState": 1, "DeleteObjects/Translog": 1, "ListObjects/Indices": 1 } ``` The changes are made with BWC in mind, i.e. existing stats reports with default operation purpose will remain unchanged. For an example, the key "ListObjects" is equivalent "ListObjects/Snapshot". But we omit the default purpose in the stats key so that it is backwards compatible. Relates: elastic#99615 Relates: ES-6800
- Loading branch information
Showing
4 changed files
with
129 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.