Hagen Rother
03/12/2025, 11:11 AMsegmentGranularity parameter? Since the meta table already has start and end as timestamp, such segments should just work ™️ but I don't see how I could create one.John Kowtko
03/13/2025, 1:43 PMHagen Rother
03/13/2025, 1:55 PMts, which is more or less the current time, and also a source_ts, which is more or less a random timestamp within the last year. I would like to configure the ingestion such that:
• __time maps to source_ts
• start is [today - 180.days]
• end is [end of current day]
• if the event is outside the segment, drop it w/o an errorHagen Rother
03/13/2025, 1:57 PMHagen Rother
03/13/2025, 1:58 PMts and after 24h I do a index_parallel job that takes source_ts as __time. With the right tuning, this works out quite ok to never need a compaction.Hagen Rother
03/13/2025, 1:58 PMHagen Rother
03/13/2025, 2:02 PMHagen Rother
03/13/2025, 2:02 PMHagen Rother
03/13/2025, 2:05 PMts and then use source_ts inside the segment... shouldn't be too hard to do, but I thought I ask if there is any prio workJohn Kowtko
03/13/2025, 5:15 PMHagen Rother
03/13/2025, 5:25 PMdruid=> select
start,
"end",
count(1) as segments,
min(seg_size) as min_size,
sum(seg_size) as total_size,
max(seg_size) as max_size
from (
select *, ((convert_from(payload,'UTF8')::json->>'size')::bigint)/1024/1024 as seg_size
from druid_segments
where
datasource = 'cohorted'
and created_date like '2025-03-13%'
) as segments
group by 1,2;
start | end | segments | min_size | total_size | max_size
--------------------------+--------------------------+----------+----------+------------+----------
2024-07-01T00:00:00.000Z | 2024-10-01T00:00:00.000Z | 1 | 41 | 41 | 41
2024-10-01T00:00:00.000Z | 2025-01-01T00:00:00.000Z | 1 | 42 | 42 | 42
2025-01-01T00:00:00.000Z | 2025-04-01T00:00:00.000Z | 458 | 84 | 195166 | 623
(3 rows)Hagen Rother
03/13/2025, 5:26 PMJohn Kowtko
03/13/2025, 8:51 PMHagen Rother
03/13/2025, 11:39 PMHagen Rother
03/14/2025, 11:01 AMJohn Kowtko
03/14/2025, 3:47 PMHagen Rother
03/14/2025, 3:57 PMHagen Rother
03/14/2025, 3:59 PMHagen Rother
03/14/2025, 3:59 PMall and then manually changing the start and endHagen Rother
03/14/2025, 4:00 PMHagen Rother
03/14/2025, 4:01 PMstart and endHagen Rother
03/14/2025, 4:02 PMHagen Rother
03/14/2025, 4:02 PMJohn Kowtko
03/14/2025, 4:33 PMHagen Rother
03/14/2025, 7:10 PMJohn Kowtko
03/14/2025, 8:17 PMHagen Rother
03/17/2025, 9:59 AMJohn Kowtko
03/17/2025, 3:15 PM