Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

同一任务 一定case下 被不同server 调度到 不同 worker 节点 #894

Open
qiufang1314 opened this issue Apr 15, 2024 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@qiufang1314
Copy link

Question

请问下大佬们,多Server下,在一定case下,同一个task,是否会被调度到不同的worker节点运行?

1)worker A 成功注册到 server A,current discover server= server A

2)worker B 请求 server B , acquire server信息

3)server A 获取到 待运行到任务 task X,放入到时间轮

4)同时 server B ping server A不同,成功选举Server B;server B 获取到 待运行到任务 task X,放入到时间轮

task X 可能 同时被 server A, server B 调度到不同worker 节点运行?

@qiufang1314 qiufang1314 added the question Further information is requested label Apr 15, 2024
@Echo009 Echo009 self-assigned this Apr 16, 2024
@Echo009
Copy link
Member

Echo009 commented Apr 16, 2024

你想问的是在网络分区的情况下,任务是否有可能被重复调度?

像你提到的这种情形,如果 server a ,worker a ,和 server b ,worker b 正好被划分成了两个分区,且这两个分区内访问数据库都正常的情况下的确是有可能会出现任务被重复调度的情况,不过概率也很小,只有在两个 server 触发扫描待调度任务的时间间隔小于处理间隔的时候才有可能发生。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants