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

增加作业和ip对应的运行关系 #26

Closed
terrymanu opened this issue Oct 29, 2015 · 4 comments
Closed

增加作业和ip对应的运行关系 #26

terrymanu opened this issue Oct 29, 2015 · 4 comments

Comments

@terrymanu
Copy link
Member

如果配置,只有特定的n个IP可以执行某个作业

@gl2001wl
Copy link
Contributor

gl2001wl commented Mar 4, 2016

这个功能列入开发计划了吗?
我们需要这个功能,是否能提供较好的实现思路?或许我们能实现。
目前的想法是

  1. 每个任务可选一个配置文件,<任务名.properties>在classpath下,注册任务的时候同时将文件中的ip列表注册至zookeeper作为任务白名单使用。
  2. 如果多个服务器都有相同任务的话,最后注册的任务会覆盖之前的白名单
  3. 通过console可以在线修改白名单
  4. leader启动job时,只筛选白名单内可用的server进行分片

@terrymanu
Copy link
Member Author

因为esjob整个实现中都未使用prop文件,为了保持一致性,最好还是将信息放入zk。
个人感觉调整zk的目录结构应该就可实现,但是要对原来的数据结构兼容可能还要好好想想

@terrymanu terrymanu changed the title [功能提升] 增加作业和ip对应的运行关系 [Improvement] 增加作业和ip对应的运行关系 Mar 9, 2016
@gl2001wl
Copy link
Contributor

gl2001wl commented May 12, 2016

fixed by #89

@terrymanu terrymanu changed the title [Improvement] 增加作业和ip对应的运行关系 增加作业和ip对应的运行关系 Jul 12, 2016
@terrymanu
Copy link
Member Author

duplicate with #117

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

No branches or pull requests

2 participants