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

数据库支持 #8

Closed
aloasut opened this issue Feb 7, 2012 · 7 comments
Closed

数据库支持 #8

aloasut opened this issue Feb 7, 2012 · 7 comments
Assignees

Comments

@aloasut
Copy link

aloasut commented Feb 7, 2012

最好能在数据库配置并且有个前端显示。
在crontab失败的时候能够有通知。

@hfcorriez
Copy link
Owner

之前考虑过这个方式,但没有很好的模式,等确定好就加入进来。

暂时你可以自己做一个脚本来将数据库输出到文件来解决这个问题。

@ghost ghost assigned hfcorriez Apr 28, 2012
@hfcorriez
Copy link
Owner

新的版本已经支持

@aloasut
Copy link
Author

aloasut commented Jun 20, 2012

wow,感谢 :)

@hfcorriez
Copy link
Owner

不客气,只是比较简单的实现,要做好还有很多工作。

@aloasut
Copy link
Author

aloasut commented Jun 20, 2012

我来提供下我的做法吧:我做得很粗浅了,一个php后台运行,逢1分钟两分钟等设定的时间就用file_get_contents跑某个程序,在程序中记录开始和结束的时间,开始的时候往数据库写开始的标记,结束的时候写结束的标记。这样一天下来可以看看哪些程序用的时间过长,哪些程序没有执行完成。有些是数据太多了,有些是服务器不能访问了等。不成功的人手处理下。用PHP跑crontab的一般就会对这些东西有兴趣吧?

@hfcorriez
Copy link
Owner

明白了,就是数据上报模块。可以方便日后分析或者做什么事情对把。
我最近有时间会写一下,这个确实有必要。

多谢。

@hfcorriez
Copy link
Owner

刚提交了一个版本,看看是不是你想要的。

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