DM Worker Task Load Balancing

This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: DM worker 任务负载均衡

| username: TiDBer_hwEZA4rV

How can I deploy 3 DM workers in a DM cluster with about a thousand tasks to achieve load balancing across all DM workers?

| username: buchuitoudegou | Original post link

Hello, the task load of the DM worker is only related to the number of upstream sources, because one worker can only be bound to one source (the migration task of one source can only be handled by one worker).

If you have only a few upstream instances, you can also distinguish the same instance with different source-ids. This way, when scheduling tasks, they will be considered different sources, allowing multiple workers to be utilized for the import.

| username: Hacker007 | Original post link

Tasks are distinguished by source, and each source is bound one-to-one with a DM worker.

| username: 大鱼海棠 | Original post link

Isn’t it possible to configure multiple source-ids for a task? The task bound by the worker, am I misunderstanding something?

| username: buchuitoudegou | Original post link

A worker is not bound to a task; a worker is bound to a source. A single worker can execute multiple tasks from the same source.