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

部分任务不运行了 #134

Closed
topicgit opened this issue Mar 6, 2019 · 7 comments
Closed

部分任务不运行了 #134

topicgit opened this issue Mar 6, 2019 · 7 comments

Comments

@topicgit
Copy link

topicgit commented Mar 6, 2019

Please answer these questions before submitting your issue. Thanks!
在你提交 issue 前,请先回答以下问题,谢谢!

  1. What version of Go and cronsun version are you using?
    你用的是哪个版本的 Go 和 哪个版本的 cronsun?
    cronsun-v0.3.5 直接下载的release包

  2. What operating system and processor architecture are you using (go env)?
    你用的是哪个操作系统,什么架构的?
    centos 7 3.10.0-327.22.2.el7.x86_64
    node01: etcd mongodb cronsun-web
    node02: etcd mongodb
    node03: etcd mongodb
    agent01: cronsun-node
    agent02: cronsun-node

  3. What did you do?
    If possible, provide a recipe for reproducing the error.
    A complete runnable program is good.
    你做了什么,遇到了什么问题?尽可能描述清楚问题,最好把操作步骤写下来,按这些步骤操作后能重现你的问题。

  4. mongodb节点出现问题,主节点变成从,之后我恢复了回来
    2.目前有一些任务无缘无故的就不执行了,日志中也没有内容;重新创建的job就可以执行,在日志中也可以查看到,请问应当如何进行排查,目前etcd和mongodb的状态正常,任务系统有很多任务不执行了,目前修复方法只能是创建新的job暂停原来的
    image

  5. What did you expect to see?
    你期望得到什么样的结果?
    处于运行状态的任务正常运行

  6. What did you see instead?
    现在你得到的结果是什么样的?
    处于运行状态的任务正常运行

@QLeelulu
Copy link
Contributor

QLeelulu commented Mar 6, 2019

不执行是指贴图上显示的执行失败了,还是完全没有调度呢 ?

@topicgit
Copy link
Author

topicgit commented Mar 6, 2019

@QLeelulu 是完全没有调度

@topicgit
Copy link
Author

topicgit commented Mar 6, 2019

某些任务不调度了,这如何查?

@QLeelulu
Copy link
Contributor

QLeelulu commented Mar 7, 2019

@topicgit 不调度的任务,在cronnode节点上执行的时候,会在本机输出日志吗?
我怀疑是不是任务是正常调度的,只是任务日志没有写入到mongodb而已,你有办法确认下这个吗?

@topicgit
Copy link
Author

topicgit commented Mar 7, 2019

image

node的日志里面没有任务的信息,任务面板上这个任务上次执行时间是03-05 14:22 下次是03:07 ,03 05的时候mongo状态出现过问题,但是已经修复。
目前新增的任务没有问题,有部分任务是有问题,很诡异.
node上只有下面这些日志,请问这个会有什么影响?
image

@QLeelulu 这个任务确实是没有执行的,这个任务里面是curl,当任务不执行的时候,在业务的nginx里面抓不到请求.
另外我们这任务数目有170个,而且很多是秒级别的,这个有什么需要注意的吗?
image

@QLeelulu
Copy link
Contributor

任务日志如果比较大、秒级任务又比较多的话,需要注意下,会导致日志量太多可能会把mongodb跑挂了。

@topicgit
Copy link
Author

image
请问这是什么原因

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

2 participants