The relation between segment and shard?

in the coordinator console, i see a segment contain a lot of shards. i think segment should a big file, the shard is???


There is a good section in the Druid documentation on this

Best regards,


Eric Graham

Solutions Engineer -** **Imply

**cell: **303-589-4581


You would want to make sure that the segment size falls between 150MB to 700MB in size. This matters a lot for query perf.

Rommel Garcia
Director, Field Engineering

thanks all

thanks,i have see the document, but, I don't understand. a shard is a segment?

shards are segments with partition numbers. Each time chunk is partitioned, and the partition number is at the end of the segment identifier (except partition 0 is not included). You can see the segment identifiers in the coordinator console by clicking on the time chunk on the left to open the shard list.