Skip to content

Commit 549fddb

Browse files
ES-10037 Tweak wording of autosharding logs (#126339)
ES-10037 #comment Tweaked wording of logging in #126339
1 parent 527d2a2 commit 549fddb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

server/src/main/java/org/elasticsearch/action/datastreams/autosharding/DataStreamAutoShardingService.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ public String toString() {
313313
return Strings.format(
314314
"For data stream %s: %s based on [inc/dec cooldowns %s/%s, %d-%d threads, "
315315
+ "write index %s has all-time/recent/peak loads %g/%g/%g, current shards %d, "
316-
+ "using %s value %g for increase gives %d shards%s]",
316+
+ "increase calculation gives %d shards using %s load %g for write index%s]",
317317
inputs.dataStream,
318318
result,
319319
inputs.increaseShardsCooldown,
@@ -325,19 +325,19 @@ public String toString() {
325325
inputs.writeIndexRecentLoad,
326326
inputs.writeIndexPeakLoad,
327327
inputs.currentNumberOfWriteIndexShards,
328+
increaseCalculation.optimalShardCountForIncrease,
328329
inputs.increaseShardsMetric,
329330
increaseCalculation.writeIndexLoadForIncrease,
330-
increaseCalculation.optimalShardCountForIncrease,
331331
decreaseCalculation == null
332332
? ""
333333
: Strings.format(
334-
", and using %s value %g for dec based on %s gives %d shards",
334+
", decrease calculation gives %d shards using %s load %g for %s",
335+
decreaseCalculation.optimalShardCountForDecrease,
335336
inputs.decreaseShardsMetric,
336337
decreaseCalculation.maxLoadWithinCooldown.load,
337338
decreaseCalculation.maxLoadWithinCooldown.previousIndexWithMaxLoad != null
338339
? decreaseCalculation.maxLoadWithinCooldown.previousIndexWithMaxLoad
339-
: "write index",
340-
decreaseCalculation.optimalShardCountForDecrease
340+
: "write index"
341341
)
342342
);
343343
}

0 commit comments

Comments
 (0)