How Do I Configure the Maximum Number of Concurrent Migration Subtasks?
Background
In a migration task, the maximum number of concurrent subtasks (threads) directly affects the CPU usage, network throughput, and migration speed. Too few threads lead to resource underutilization, while too many threads cause excessive context switching, degrading overall performance.
Based on actual test data, the following section provides recommended concurrent subtask configurations for different file sizes to optimize migration efficiency.
Small Files (< 1 KB, such as 40 bytes)
- Processing such small files incurs high CPU computational overhead.
- The serialization and metadata processing of each object consume CPU resources.
- Excessive threads lead to severe thread context switching, which reduces the migration efficiency.
| Item | Recommended Value | Expected Performance |
|---|---|---|
| Max. Concurrent Subtasks | Migration nodes: 2 |
|
Small Files (< 1 MB, such as 30 KB)
- CPU consumption remains relatively high when such small files (< 1 MB, such as 30 KB) are processed.
- Compared with 40-byte files, the I/O ratio slightly increases.
- You can increase the number of concurrent tasks to maximize CPU utilization.
| Item | Recommended Value | Expected Performance |
|---|---|---|
| Max. Concurrent Subtasks | Migration nodes: 3 |
|
Medium Files (< 10 MB, such as 1 MB)
- The file size is moderate, and the CPU and I/O load is well balanced.
- Larger files result in more time spent waiting for I/O operations.
- More concurrent tasks are supported.
| Item | Recommended Value | Expected Performance |
|---|---|---|
| Max. Concurrent Subtasks | Migration nodes: 4 to 6 |
|
Large Files (≥ 10 MB)
- The time required for migrating large files (≥ 10 MB) is heavily dominated by I/O operations.
- During the migration of large files, threads spend most of their time waiting for network I/O operations.
- Higher concurrency is supported to fully utilize the wait time.
| Item | Recommended Value | Expected Performance |
|---|---|---|
| Max. Concurrent Subtasks | Migration nodes: 6 to 10 |
|
Quick Reference Table
| File Size | Recommended Concurrency | Expected CPU Usage | Scenario |
|---|---|---|---|
| < 1 KB, such as 40 bytes | Nodes: 2 | 80% to 90% | Small object migration by list |
| < 1 MB, such as 30 KB | Nodes: 3 | 85% to 92% | Small object migration by list |
| < 10 MB, such as 1 MB | Nodes: 4 to 6 | 85% to 93% | Medium object migration |
| ≥ 10 MB | Nodes: 6 to 10 | 80% to 88% | Large object migration |
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot