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

请问为什么要选一个Job Node Leader 呢? #7

Open
yiippee opened this issue Mar 25, 2022 · 1 comment
Open

请问为什么要选一个Job Node Leader 呢? #7

yiippee opened this issue Mar 25, 2022 · 1 comment

Comments

@yiippee
Copy link

yiippee commented Mar 25, 2022

感谢你开源的分布式任务调度平台。
请教一个问题,为什么要选一个Job Node Leader 呢?我想了下,不选主,而是全部都是无状态的运行,任何一个node接受到了请求然后将任务投递到etcd,感觉不会有什么问题啊?还是我哪里理解错了吗?谢谢。

@busgo
Copy link
Owner

busgo commented May 5, 2022

感谢你开源的分布式任务调度平台。 请教一个问题,为什么要选一个Job Node Leader 呢?我想了下,不选主,而是全部都是无状态的运行,任何一个node接受到了请求然后将任务投递到etcd,感觉不会有什么问题啊?还是我哪里理解错了吗?谢谢。

  1. 如果不选择一个Leader 则会出现如下问题: 维护一个任务由哪个调度节点进行调度。并且要维护调度节点下线状态下 任务分配策略如:(所有任务节点被重新分配至其他在线的节点上)【参考:当当的 elastic-job-lite】。
  2. 没有主调度节点和有主调度节点是两种不同实现的方式,具体采用哪种看个人选择。

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

No branches or pull requests

2 participants