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

[需求]业务需求有个周报定时刷新的任务,如果水平扩展多节点的场景本框架如何处理只需有一个节点处理了,其他的节点就跳过这个逻辑 #309

Closed
guozanhua opened this issue Mar 10, 2025 · 4 comments
Assignees
Labels

Comments

@guozanhua
Copy link

场景

水平扩展多节点的服务部署场景

需求说明

有些业务,只要有一个节点处理,其他节点就跳过处理,有什么比较优雅的做法

@guozanhua
Copy link
Author

现状是有几个节点就执行了几次业务逻辑,执行的次数和部署的节点数量一致

@zhou-hao
Copy link
Member

  1. 使用分布式调度框架。
  2. 使用redis做类似锁的判断。

@guozanhua
Copy link
Author

  1. 使用分布式调度框架。
  2. 使用redis做类似锁的判断。

2我们现在方案已经采用了,1的方案是哪个分布式调度框架

@zhou-hao
Copy link
Member

网上搜搜呗。分布式调度挺多的。

ps. 如果你是用的JetLinks。目前JetLinks企业版里可以使用FluxCluster来实现集群下的定时任务。

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

No branches or pull requests

2 participants