druid/docs
Kashif Faraz 9dc2569f22
Track and emit segment loading rate for HttpLoadQueuePeon on Coordinator (#16691)
Design:
The loading rate is computed as a moving average of at least the last 10 GiB of successful segment loads.
To account for multiple loading threads on a server, we use the concept of a batch to track load times.
A batch is a set of segments added by the coordinator to the load queue of a server in one go.

Computation:
batchDurationMillis = t(load queue becomes empty) - t(first load request in batch is sent to server)
batchBytes = total bytes successfully loaded in batch
avg loading rate in batch (kbps) = (8 * batchBytes) / batchDurationMillis
overall avg loading rate (kbps) = (8 * sumOverWindow(batchBytes)) / sumOverWindow(batchDurationMillis)

Changes:
- Add `LoadingRateTracker` which computes a moving average load rate based on
the last few GBs of successful segment loads.
- Emit metric `segment/loading/rateKbps` from the Coordinator. In the future, we may
also consider emitting this metric from the historicals themselves.
- Add `expectedLoadTimeMillis` to response of API `/druid/coordinator/v1/loadQueue?simple`
2024-08-03 13:14:21 +05:30
..
api-reference Add task report fields in response of SQL statements endpoint (#16808) 2024-08-01 10:26:04 +05:30
assets Add supervisor actions (#16276) 2024-04-24 13:14:01 -07:00
comparisons remove ref to plywood repo (#12809) 2022-07-26 10:12:13 +08:00
configuration remove batchProcessingMode from task config, remove AppenderatorImpl (#16765) 2024-07-22 13:56:44 -07:00
data-management Kill segments by versions (#15994) 2024-03-13 09:37:30 +05:30
design Added new use cases and description of the use case - 5/14/24 (#16451) 2024-06-04 09:47:49 -07:00
development remove Firehose and FirehoseFactory (#16758) 2024-07-19 14:37:21 -07:00
ingestion [Docs} Remove avro_ocf support from Kafka & Kinesis streaming sources (Revert changes from #11865) (#16807) 2024-07-26 13:06:22 -07:00
misc Update the youtube link for druid presentations page (#16601) 2024-06-14 09:47:46 +08:00
multi-stage-query Add query context parameter to remove null bytes when writing frames (#16579) 2024-06-26 15:00:30 +05:30
operations Track and emit segment loading rate for HttpLoadQueuePeon on Coordinator (#16691) 2024-08-03 13:14:21 +05:30
querying [docs] batch 5 updating functions (#16812) 2024-07-30 17:30:01 -07:00
release-info doc: minor fixes to migration guides (#16784) 2024-07-23 13:09:51 -07:00
tutorials [docs] Updating Rollup tutorial (#16762) 2024-07-26 15:43:31 -07:00