-
Notifications
You must be signed in to change notification settings - Fork 49
Batch Metrics API #159
Batch Metrics API #159
Conversation
9686ab8
to
0f90bf4
Compare
...mazon/opendistro/elasticsearch/performanceanalyzer/config/PerformanceAnalyzerController.java
Show resolved
Hide resolved
...mazon/opendistro/elasticsearch/performanceanalyzer/config/PerformanceAnalyzerController.java
Outdated
Show resolved
Hide resolved
3f927dd
to
ef67704
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm again, just small nits, leaving a +1 because I trust that you'll make the small edits before you merge this
...mazon/opendistro/elasticsearch/performanceanalyzer/config/PerformanceAnalyzerController.java
Show resolved
Hide resolved
private static final String ENABLED = "enabled"; | ||
private static final String SHARDS_PER_COLLECTION = "shardsPerCollection"; | ||
private static final String CURRENT = "currentPerformanceAnalyzerClusterState"; | ||
private static final String NAME = "PerformanceAnalyzerClusterConfigAction"; | ||
private static final String BATCH_METRICS_RETENTION_PERIOD_MINUTES = "batchMetricsRetentionPeriodMinutes"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We aren't adding logic to update this via the API then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, this will be a read-only parameter that the cluster owner can modify.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please address comments before merging.
...mazon/opendistro/elasticsearch/performanceanalyzer/config/PerformanceAnalyzerController.java
Outdated
Show resolved
Hide resolved
@@ -95,13 +107,15 @@ public int getCurrentClusterSettingValue() { | |||
* @return the cluster setting value | |||
*/ | |||
private Integer initializeClusterSettingValue( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have we tested this across 1/ multi-node scenarios, 2/ clusters with nodes on different versions of this code (one node with this change and another on a version before this change) ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ran these tests manually. See the test list in opendistro-for-elasticsearch/performance-analyzer-rca#315
README.md
Outdated
|
||
Note, the maximum number of datapoints that a single query can request for via API is capped at 100,800 datapoints. If a query exceeds this limit, an error is returned. The query parameters can be adjusted on such queries to request for fewer datapoints at a time. | ||
|
||
The retention period for batch metrics can be adjusted by setting batch-metrics-retention-period-minutes in performance-analyzer.properties. The default value is 7, and values can range from 1 to 60 (inclusive). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should be explicit that a really high value of the batch-metrics-retention-period-minutes
will lead to heavy disk consumption. We should also have a max this can be set to, to avoid mistakes of setting it too high and then a read through the rest API crippling the cluster.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already have a bounding range (1-60 inclusive). Will add the note about the disk consumption.
907bbc7
Issue #, if available:
opendistro-for-elasticsearch/performance-analyzer-rca#335
Description of changes:
Batch metrics API
Associated RCA change: opendistro-for-elasticsearch/performance-analyzer-rca#315
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.