crocodile icon indicating copy to clipboard operation
crocodile copied to clipboard

多调度器部署存在多次执行风险

Open hulu20 opened this issue 2 years ago • 0 comments

经过多次测试

  1. 如果每个调度器的时间不一致,会存在多次执行的风险
  2. 如果脚本执行的时间过短,如10ms内执行完成,也会存在多次执行风险

一个想法 crocodile_host 表添加一个调度器ip的字段,任务运行根据匹配调度器ip来决定是否运行任务(需取消redis 锁控制),调度器ip字段由客户端注册来维护

hulu20 avatar Mar 08 '22 11:03 hulu20