maytasm commented on a change in pull request #10510:
URL: https://github.com/apache/druid/pull/10510#discussion_r504336089



##########
File path: docs/operations/api-reference.md
##########
@@ -410,6 +410,32 @@ Returns total size and count for each datasource for each 
interval within given
 Returns the total size of segments awaiting compaction for the given 
dataSource. 
 This is only valid for dataSource which has compaction enabled. 
 
+##### GET
+
+* `/druid/coordinator/v1/compaction/status`
+
+Returns the status and statistics from the latest auto compaction run of all 
dataSource which has/had auto compaction enabled.
+The response payload includes a list of `latestStatus` object. Each 
`latestStatus` represent the status for a dataSource (which has/had auto 
compaction enabled). 
+The `latestStatus` object has the following keys:
+* `dataSource`: name of the datasource for this status information
+* `scheduleStatus`: auto compaction scheduling status. Possible values are 
`NOT_ENABLED` and `RUNNING`. Returns `RUNNING ` if the dataSource has an active 
auto compaction config submitted otherwise, `NOT_ENABLED`
+* `bytesAwaitingCompaction`: total byte of this datasource waiting to be 
compacted by the auto compaction (only consider intervals/segments that is 
eligible for auto compaction)
+* `bytesCompacted`: total byte of this datasource that is already compacted 
with the spec set in the auto compaction config.
+* `bytesSkipped`: total byte of this datasource that is skipped (not eligible 
for auto compaction) by the auto compaction.
+* `segmentCountAwaitingCompaction`: total number of segments of this 
datasource waiting to be compacted by the auto compaction (only consider 
intervals/segments that is eligible for auto compaction)
+* `segmentCountCompacted`: total number of segments of this datasource that is 
already compacted with the spec set in the auto compaction config.

Review comment:
       Done




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to