Skip to content

Commit

Permalink
change AD result index rollover setting (opendistro-for-elasticsearch…
Browse files Browse the repository at this point in the history
  • Loading branch information
ylwu-amzn committed May 6, 2020
1 parent 8109660 commit c44b951
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,18 @@ private AnomalyDetectorSettings() {}
public static final Setting<TimeValue> AD_RESULT_HISTORY_INDEX_MAX_AGE = Setting
.positiveTimeSetting(
"opendistro.anomaly_detection.ad_result_history_max_age",
TimeValue.timeValueHours(24),
TimeValue.timeValueHours(24 * 30),
Setting.Property.NodeScope,
Setting.Property.Dynamic
);

public static final Setting<Long> AD_RESULT_HISTORY_MAX_DOCS = Setting
.longSetting(
"opendistro.anomaly_detection.ad_result_history_max_docs",
10000L,
// Suppose generally per cluster has 200 detectors and all run with 1 minute interval.
// We will get 288,000 AD result docs. So set it as 300k to avoid multiple roll overs
// per day.
300 * 1000L,
0L,
Setting.Property.NodeScope,
Setting.Property.Dynamic
Expand Down

0 comments on commit c44b951

Please sign in to comment.