JNSimba opened a new pull request, #71017:
URL: https://github.com/apache/doris/pull/71017

   ### Background
   
   For FROM TO streaming jobs, FE selects a backend for each snapshot task and 
calculates automatic snapshot parallelism from that backend's CPU cores. The 
effective parallelism controls the snapshot splits assigned to the task and the 
readers requested from the CDC client.
   
   ### What problem does this PR solve?
   
   Issue Number: None
   Related PR: None
   PR Type: Enhancement
   
   Problem Summary:
   
   Reduce the automatic snapshot concurrency assigned to each backend by 
changing the CPU-based calculation from `max(1, CPU cores / 2)` to `max(1, CPU 
cores / 4)`. On an 8-core backend, the automatic value becomes 2. Existing jobs 
with automatic parallelism pick up the new calculation on their next snapshot 
task.
   
   ### Details
   
   - **Before and after:** The default uses one quarter of backend CPU cores, 
with integer division and a minimum of one. The existing unit test now covers 
the revised expectations, small CPU counts, truncation, the configured maximum 
and server ID range limits.
   - **Configs and defaults:** Automatic `snapshot_parallelism` uses the new 
CPU ratio. Explicit values, `streaming_cdc_max_snapshot_parallelism` and 
applicable `server_id` range limits continue to determine the effective value.
   - **Impact on existing users:** Jobs using automatic parallelism receive 
fewer concurrent snapshot readers where the CPU-derived value determines 
concurrency. Explicit `snapshot_parallelism` values retain their existing 
behavior.
   
   ### Testing
   
   - Ran `bash run-fe-ut.sh --run 
org.apache.doris.job.extensions.insert.streaming.StreamingMultiTblTaskParallelismTest`
 on a Linux development host with JDK 17. The target test ran successfully with 
0 failures, 0 errors and 0 skipped tests.
   - End-to-end ingestion regression was not run.
   
   ### Release note
   
   Automatic snapshot parallelism for FROM TO streaming jobs now uses one 
quarter of backend CPU cores, with a minimum of one. Set `snapshot_parallelism` 
explicitly to select a specific concurrency, subject to the existing limits.
   
   ### Check List (For Author)
   
   - Behavior changed: Yes (see Details)
   - Does this need documentation: No
   - Pre-submission status: Ready
   
   ### AI Disclosure
   
   - Tool: Codex (GPT-6.1 Sol)
   - Generated: Code, test updates and this description
   - Human review: Not stated
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to