David Reagan
05/06/2026, 3:13 PM2026-05-06T15:09:29.532431Z ERROR on_query{protocol="mysql"}: servers::mysql::writer: Failed to handle mysql query, code: EngineExecuteQuery, error: Too many files to read concurrently: 1528, max allowed: 384, db: public, would running manual compaction help?evenyag
05/06/2026, 3:31 PMmax_concurrent_scan_files option.
• https://github.com/GreptimeTeam/greptimedb/blob/main/config/datanode.example.toml#L525-L526
• https://github.com/GreptimeTeam/greptimedb/blob/main/config/standalone.example.toml#L26-L27
I think the default restriction may be too small. Could you share the vCPU number of your machine?
It’d be helpful if you provide the result of `select * from information_schema.ssts_manifest`;
We can inspect the files via the SQL.
If you have many table, you can also specify the table id.David Reagan
05/06/2026, 3:33 PMDavid Reagan
05/06/2026, 3:36 PMDavid Reagan
05/06/2026, 3:37 PMDavid Reagan
05/06/2026, 3:41 PMevenyag
05/06/2026, 3:43 PMDavid Reagan
05/06/2026, 3:46 PMevenyag
05/06/2026, 3:54 PMinformation_schema.tables.
Besides enlarging file concurrency, maybe we can adjust the swcs compaction time window to a smaller one. The default time window is 1 day. Seems there are too many small files.
https://docs.greptime.com/user-guide/deployments-administration/manage-data/compaction/#strict-window-compaction-strategy-swcs-and-manual-compaction
You can also upload the file so we can analyze that later. Maybe we can improve our compaction strategy and concurrent file limit.David Reagan
05/06/2026, 3:58 PMDavid Reagan
05/06/2026, 4:03 PMDavid Reagan
05/06/2026, 4:34 PMTotal rows: 38766659639
Min time: 2026-02-09 23:10:53.587109
Max time: 2026-05-06 15:44:01.368976
Days covered: 85
Average rows per day: 456078348David Reagan
05/06/2026, 4:36 PMevenyag
05/07/2026, 5:03 AMselect * from information_schema.ssts_manifest where min_ts > '2026-05-01 00:00:00';David Reagan
05/07/2026, 3:14 PMDavid Reagan
05/07/2026, 5:40 PMlaneintel-db | 5: Context("parallelize_scan", External(0: Too many files to read concurrently: 433, max allowed: 384, at src/mito2/src/read/series_scan.rs:311:14))) error when I should have the limit set o 1800.
default_timezone = "America/Los_Angeles"
max_in_flight_write_bytes = "8GB"
## The maximum current queries allowed to be executed. Zero means unlimited.
## NOTE: This setting affects scan_memory_limit's privileged tier allocation.
## When set, 70% of queries get privileged memory access (full scan_memory_limit).
## The remaining 30% get standard tier access (70% of scan_memory_limit).
max_concurrent_queries = 0
## Enable telemetry to collect anonymous usage data. Enabled by default.
enable_telemetry = false
## The data storage options.
[storage]
## The working home directory.
data_home = "/greptimedb_data"
## The storage type used to store the data.
## - `File`: the data is stored in the local file system.
## - `S3`: the data is stored in the S3 object storage.
## - `Gcs`: the data is stored in the Google Cloud Storage.
## - `Azblob`: the data is stored in the Azure Blob Storage.
## - `Oss`: the data is stored in the Aliyun OSS.
type = "File"
[logging]
dir = "/greptimedb_data/logs"
log_format = "json"
[[region_engine]]
[region_engine.mito]
max_concurrent_scan_files = 1800
That's my /etc/greptime/custom.toml file.
Docker's inspect says this is my ENV for the service:
GREPTIMEDB_STANDALONE__LOGGING__LEVEL=info",
"PATH=/greptime/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"TARGET_BIN=greptime",
"MALLOC_CONF=prof:true,prof_active:false"
Where am I messing up?David Reagan
05/07/2026, 6:05 PMevenyag
05/08/2026, 3:04 AMSmaller time frame queries do work. I just have some data I need to be able to use large time frames on.Oh, I meant that you can adjust the time range of the
ssts_manifest query if there are too many rows.
Maybe you have already get the full result set in the CSV. Could you share the CSV? I’d like to check why there are so many files haven’t been merged.
If you don’t mind, you can also tar the db logs and share it to me. Maybe you can DM me if you don’t want to share them in the channel.David Reagan
05/08/2026, 4:11 PMDavid Reagan
05/08/2026, 4:47 PMevenyag
05/09/2026, 4:04 AMDM’d you a zip with the results from wednesday.Thanks. 30 days may be a large time frame to query and may take some time if you run 17 queries together. You can run each query to check the response time and resource usage. If the response time is high, we can further enlarge the proxy timeout.