This message was deleted.
# troubleshooting
s
This message was deleted.
👍 1
g
the MSQ task runtime fetches input files one at a time and clears them when done we're planning to move compaction to this runtime which will improve the behavior here (and improve the behavior in other ways too — it's faster/more reliable than the native batch ingest runtime) if you want, right now you can use the MSQ runtime to do a form of "manual" compaction. for a table with no rollup it'd be like:
Copy code
REPLACE INTO <tbl>
OVERWRITE <some time range>
SELECT * FROM <tbl>
WHERE <same time range>
PARTITIONED BY <segment granularity>
CLUSTERED BY <any secondary partitioning dims>
for a table with rollup, it's a longer query: you'd also want to specify GROUP BY and the relevant aggregators and context properties as mentioned here https://druid.apache.org/docs/latest/multi-stage-query/concepts.html#rollup
note it still requires a good amount of local disk to store the output prior to generating output segments: we need this in order to do a resort of the data based on your the PARTITIONED BY CLUSTERED BY. so it does reduce the temp storage needs (no need to store both input and output) but is not a silver bullet as the output is still stored. in future we will have an ability to use deep storage for temporary storage of the output data for the MSQ task runtime. that would be the silver bullet 🙂
d
Can I configure MSQ to run on which MM tier? Because our general pool MM and compaction MM have wildly different spec.
g
the MSQ task engine is regular tasks with certain types, so you could use a worker select strategy
❤️ 1