Skip to content

Commit b64b9dc

Browse files
committed
Add justification for extrapolation
1 parent fc9d9f8 commit b64b9dc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

x-pack/plugin/write-load-forecaster/src/main/java/org/elasticsearch/xpack/writeloadforecaster/LicensedWriteLoadForecaster.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,9 @@ static OptionalDouble forecastIndexWriteLoad(List<IndexWriteLoad> indicesWriteLo
168168
// any write-load data beyond their lifetime.
169169
// To avoid making assumptions about periods for which we have no data, we'll weight
170170
// each index's contribution to the forecast by the maximum shard uptime observed in
171-
// that index.
171+
// that index. It should be safe to extrapolate our weighted average out to the
172+
// maximum uptime observed, based on the assumption that write-load is roughly
173+
// evenly distributed across shards of a datastream index.
172174
allIndicesWriteLoad += totalIndexWriteLoad * maxShardUptimeInMillis;
173175
allIndicesUptime += maxShardUptimeInMillis;
174176
}

0 commit comments

Comments
 (0)