我在gitlab服务器上设置了一个钩子,以便从post-update钩子调用salt-run fileserver.update。
如何禁用每60次更新一次的计划,以减少gitlab服务器上的负载?
发布于 2016-04-16 21:49:01
更新Git文件系统的60秒间隔由loop_interval设置定义,您可以在主配置文件中设置该设置:
# The loop_interval option controls the seconds for the master's maintenance
# process check cycle. This process updates file server backends, cleans the
# job cache and executes the scheduler.
#loop_interval: 60但是,此时间间隔不仅控制GitFS更新计划,还控制许多其他维护任务,因此您不应将此时间间隔增加太多。
从一个快速的reading of the source code (虽然我不是一个核心的Salt开发人员,所以我可能是错的),GitFS更新是硬编码的,以便按照与其他维护任务相同的计划运行。似乎没有一种方法可以禁用或仅更改GitFS更新计划的间隔。
https://stackoverflow.com/questions/36664803
复制相似问题