Mounika Nakkala
05/21/2024, 6:04 PM- Number of rows per segment: it's generally recommended for each segment to have around 5 million rows. This setting is usually more important than the below "segment byte size". This is because Druid uses a single thread to process each segment, and thus this setting can directly control how many rows each thread processes, which in turn means how well the query execution is parallelized.
- Segment byte size: it's recommended to set 300 ~ 700MB. If this value doesn't match with the "number of rows per segment", please consider optimizing number of rows per segment rather than this value.
Some clarification questions around it -
• Segment here is one partition? In the screenshot I shared below, we have 5 partitions for a day segment granularity. Is each segment partition (we have 5 in the screenshot) one segment?
• Is Segment byte size mentioned in the documentation for one replica? We have two replicas, so the segment sizes of one replica for each partition in the screenshot is between 300 to 700 MB. Is that right? (the reason why we did not consider 5 million rows in this case is because it was creating only one partition reducing filtering when range partitioning is applied).Maytas Monsereenusorn
05/22/2024, 1:06 AMMaytas Monsereenusorn
05/22/2024, 1:07 AMMaytas Monsereenusorn
05/22/2024, 1:08 AMJohn Kowtko
05/22/2024, 1:46 PMMounika Nakkala
05/22/2024, 5:00 PMMounika Nakkala
05/22/2024, 5:08 PMBen Krug
05/23/2024, 12:48 AMBen Krug
05/23/2024, 12:50 AMBen Krug
05/23/2024, 12:51 AMMounika Nakkala
05/23/2024, 1:19 AMBen Krug
05/23/2024, 2:10 AMJohn Kowtko
05/23/2024, 10:33 PMMounika Nakkala
05/24/2024, 5:14 AMMounika Nakkala
06/13/2024, 6:00 PM