Comments (1)
服务器下线时,如果正常执行spring 自带的destroy()方法,执行器会向xxljob admin 发送一个http请求,最终执行com.xxl.job.admin.core.thread.JobRegistryHelper#registryRemove方法,该方法会在registry表中把当前节点去掉,但是不会更新group表,而实际调度是根据group表中的address_list来选择pod。group表中的地址信息是30s更新一次。所以最快也要30s。如果destroy()方法没有执行,只能等xxljob admin 90s没有收到心跳,再去registry表中把当前节点去掉,再更新group表。建议1、com.xxl.job.admin.core.thread.JobRegistryHelper#registryRemove方法中同步更新group表。
2、如果多次因为网络调度失败,将当前节点排除。
from xxl-job.
Related Issues (20)
- xxl-job弹性资源 HOT 1
- 调度异常
- 修改Job出现415异常,如图所属 HOT 1
- 关于授权问题 HOT 2
- k8s部署,执行器用k8s的服务名,这样配置确实可以访问执行器,而且pod重启ip不一样的问题也可以解决,但是就只会注册一个节点了,任务路由就不准了吧
- 能不能把xxl-job能成spring boot starter方便我们更新维护
- 可以做一个sqlite版本么
- Spring Web UriComponentsBuilder URL解析不当漏洞(CVE-2024-22259)
- SnakeYAML版本升级
- 重启xxl-job,任务丢失
- 分布式锁优化
- 容器节点注册xxl-job执行器,已下线的节点移除延时严重
- XxlJobAdminConfig bug?
- callback的json value中存在“双引号,会一直重试打log,损耗资源
- 整合xxl-job后,存在注解@RequestLine 时,服务启动报错,去掉xxl-job启动器,就正常了
- No classes defined at reference '64'
- 升级ipv6后 节点注册列表不适配ipv6 HOT 1
- Spring Cloud架构下executor获取IP
- 2.4.2 调度日志展示的调度机器, 为什么展示的是 数据库的机器地址? 不是应该真是admin部署的机器地址吗?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xxl-job.