Files
datastore/programs/server/user_defined_executable_function_drivers
Alexey Milovidov 062015257b Scale DockerC CPU quota with pool_size
The persistent `DockerC` container hosts the whole `executable_pool`, so the previous default `--cpus=1.0` throttled all pooled workers to one core total.

Default the Docker CPU quota to `pool_size`, while preserving the explicit `CLICKHOUSE_C_DRIVER_CPUS` override.

Tests:
- `python3 -m py_compile programs/server/user_defined_executable_function_drivers/c_driver_common.py`
- `CLICKHOUSE_BINARY=./build/programs/clickhouse tests/queries/0_stateless/04241_executable_udf_driver.sh`
- `CLICKHOUSE_BINARY=./build/programs/clickhouse tests/queries/0_stateless/04242_executable_udf_driver_errors.sh`
- real `DockerC` `clickhouse-local` query with `numbers_mt(5000000)` and `max_threads = 64`
2026-05-17 02:13:55 +02:00
..