Decoupling Controller from the Data Path
Decouple the controller from the data path for real-time Pinot tables.
Ingestion bottleneck on the Pinot Controller
For real-time tables, when a Pinot server finishes consuming a segment, the segment goes through a completion protocol sequence. By default, the segment is uploaded to the lead Pinot controller which in turn persists the segment to deep store (for example, NFS, S3 or HDFS). As a result, because all real-time segments flow through the controller, it may become a bottleneck and slow down the overall ingestion rate. To overcome this limitation, we've added a new stream-level configuration to bypass the controller and upload the completed segment to deep store directly.
Upload completed segment to deep store directly
Pinot now supports both a server-level default and a table-level override for direct-to-deep-store segment uploads during realtime segment completion.
Set the server-level default in server.conf:
pinot.server.instance.segment.upload.to.deep.store=trueIf you only want to enable this for specific real-time tables, or if you want to override the server default, add the following stream-level configuration:
realtime.segment.serverUploadToDeepStore = trueWhen direct-to-deep-store upload is enabled, Pinot servers attempt to upload the completed segment to the segment store directly, bypassing the controller. When finished, Pinot updates the controller with the corresponding segment metadata.
If realtime.segment.serverUploadToDeepStore is present in the table config, it overrides the server-level default. If the table config omits the property, Pinot falls back to pinot.server.instance.segment.upload.to.deep.store.
Overview of peer download policy
Peer download policy allows failure recovery in case uploading the completed segment to the deep store fails. If the segment store is unavailable, the corresponding segments can still be downloaded directly from the Pinot servers.
Enable peer download for segments
This scheme only works for real-time tables using the Low Level Consumer (LLC) mode. To enable peer download for segments, update the controller, server, and table configurations as follows:
Server Config
Add the following things to the server configuration:
Here. the URI of segment store should point to the full path in the corresponding data directory, with both the filesystem scheme and path (eg: file://dir or hdfs://path or s3://path).
Replace pinot.server.storage.factory.class.(scheme) with the corresponding scheme (for example, hdfs, s3 or gcs) of the segment store URI configured above. Then, add the PinotFS subclass for the scheme as the config value.
Table config
Add the following to the real-time segments config:
In this case, the peerSegmentDownloadScheme can be either http or https.
Config for failure case handling
Enabling peer download may incur LLC segments failed to be uploaded to segment store in some failure cases, e.g. segment store is unavailable during segment completion. Add the following controller config to enable the upload retry by a controller periodic job asynchronously.
Last updated
Was this helpful?

