Add sequence numbers to cat shards API
This commit adds the max sequence number and local and global checkpoints to the cat shards API. Relates #18772
This commit is contained in:
parent
d896886973
commit
ea0c91a165
|
@ -159,6 +159,10 @@ public class RestShardsAction extends AbstractCatAction {
|
|||
table.addCell("segments.version_map_memory", "alias:svmm,segmentsVersionMapMemory;default:false;text-align:right;desc:memory used by version map");
|
||||
table.addCell("segments.fixed_bitset_memory", "alias:sfbm,fixedBitsetMemory;default:false;text-align:right;desc:memory used by fixed bit sets for nested object field types and type filters for types referred in _parent fields");
|
||||
|
||||
table.addCell("seq_no.max", "alias:sqm,maxSeqNo;default:false;text-align:right;desc:max sequence number");
|
||||
table.addCell("seq_no.local_checkpoint", "alias:sql,localCheckpoint;default:false;text-align:right;desc:local checkpoint");
|
||||
table.addCell("seq_no.global_checkpoint", "alias:sqg,globalCheckpoint;default:false;text-align:right;desc:global checkpoint");
|
||||
|
||||
table.addCell("warmer.current", "alias:wc,warmerCurrent;default:false;text-align:right;desc:current warmer ops");
|
||||
table.addCell("warmer.total", "alias:wto,warmerTotal;default:false;text-align:right;desc:total warmer ops");
|
||||
table.addCell("warmer.total_time", "alias:wtt,warmerTotalTime;default:false;text-align:right;desc:time spent in warmers");
|
||||
|
@ -295,6 +299,10 @@ public class RestShardsAction extends AbstractCatAction {
|
|||
table.addCell(commonStats == null ? null : commonStats.getSegments().getVersionMapMemory());
|
||||
table.addCell(commonStats == null ? null : commonStats.getSegments().getBitsetMemory());
|
||||
|
||||
table.addCell(shardStats == null || shardStats.getSeqNoStats() == null ? null : shardStats.getSeqNoStats().getMaxSeqNo());
|
||||
table.addCell(shardStats == null || shardStats.getSeqNoStats() == null ? null : shardStats.getSeqNoStats().getLocalCheckpoint());
|
||||
table.addCell(commitStats == null || shardStats.getSeqNoStats() == null ? null : shardStats.getSeqNoStats().getGlobalCheckpoint());
|
||||
|
||||
table.addCell(commonStats == null ? null : commonStats.getWarmer().current());
|
||||
table.addCell(commonStats == null ? null : commonStats.getWarmer().total());
|
||||
table.addCell(commonStats == null ? null : commonStats.getWarmer().totalTime());
|
||||
|
|
|
@ -65,6 +65,9 @@
|
|||
segments.index_writer_memory .+ \n
|
||||
segments.version_map_memory .+ \n
|
||||
segments.fixed_bitset_memory .+ \n
|
||||
seq_no.max .+ \n
|
||||
seq_no.local_checkpoint .+ \n
|
||||
seq_no.global_checkpoint .+ \n
|
||||
warmer.current .+ \n
|
||||
warmer.total .+ \n
|
||||
warmer.total_time .+ \n
|
||||
|
|
Loading…
Reference in New Issue