Where to configure Hudson node disk/temp space thresholds?

不想你离开。 提交于 2019-12-22 02:00:58

问题


I am currently running a Hudson instance on a VM slice. As I don't have a need to run more than a couple small applications from it, I'm minimizing how much space I devote to it. The sizes I've defined for this slice seem fine to me, however Hudson seems to have it's own ideas on what are considered minimum disk and temp space thresholds.

And then I look at the Node and I see the following:

546MB does not seem like too little space for running my small number of applications, but Hudson seems to disagree. Is there any place I can configure Hudson to redefine what it considers too low for disk and temp space?


回答1:


Since Hudson 1.339 it is configurable. See here http://wiki.hudson-ci.org/display/HUDSON/Features+controlled+by+system+properties

The property is called hudson.diagnosis.HudsonHomeDiskUsageChecker.freeSpaceTheshold




回答2:


It is configurable from the web interface:

Hudson > Nodes > Configure > Preventive Node Monitoring > Free Disk Space (defaulted to 1GB)

You might also want to change Free Temp Space whilst you're there.

Be aware that you'll need to give Hudson some time to pick up on the change after you save it. So if the free disk space warning doesn't disappear as soon as you return to the nodes page, don't worry - the disk space monitor only runs once an hour.




回答3:


It's not configurable. Just turn off the monitors, so your nodes stay online.

See issue HUDSON-2552 for a fix. The code is not yet part of Hudson though.



来源:https://stackoverflow.com/questions/1923406/where-to-configure-hudson-node-disk-temp-space-thresholds

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!