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

你好,看到刚刚支持windows,很好啊,打算使用看看。顺便提几个小建议。 #15

Closed
chaomz opened this issue Apr 26, 2020 · 4 comments

Comments

@chaomz
Copy link

chaomz commented Apr 26, 2020

1、为了因应小场景使用,建议redis作为可选使用,存储数据库建议支持sqlite3,这样整个系统会比较轻灵,更加方便易用。
2、建议worker增加在其执行任务过程中向中心提交任务执行进度的报告。
3、建议worker与中心之间以http交互,这样方便可以对接其它语言开发的worker。

最后,感谢作者的无私奉献。

@labulakalia
Copy link
Owner

labulakalia commented Apr 27, 2020

1.加入redis是为了多调度中心来防止单点挂掉的问题,主要是用来做分布式锁,保存任务状态,及接收实时日志的,如果想用sqlite3,v1.1.0前的版本是支持sqlite3和mysql的,调度节点可以使用v1.1.0以前的版本,worker节点需要最新的版本,以前的版本没提供windows的版本,可能需要重新变一下
2.这个没办法发送执行任务进度吧,如果你想知道任务的运行状况,可以在你运行的程序输出日志,页面上是可以查看到实时日志的。
3.目前是采用grpc交互的,如果想使用其他语言,可以实现proto文件定义的接口就可以,http这块因为需要worker定时发送心跳信息,注册等问题目前没法支持http。

@l-we
Copy link

l-we commented Apr 28, 2020

还不如用etcd呢,原生 内嵌 高性能 分布式

@labulakalia
Copy link
Owner

@l-we 当初想过,但是放弃了,因为要存储list,这个主要保存实时日志的,etcd这个没有办法实现的吧

@l-we
Copy link

l-we commented Apr 29, 2020

@l-we 当初想过,但是放弃了,因为要存储list,这个主要保存实时日志的,etcd这个没有办法实现的吧

我目前用的是 Dkron,可以参考一下 核心用的是 https://github.com/hashicorp/go-pluginhttps://github.com/tidwall/buntdb

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

3 participants