“INFO(如果使用,RANDOM_DELAY 将按 84% 的倍数缩放)”实际上是什么意思?

“INFO(如果使用,RANDOM_DELAY 将按 84% 的倍数缩放)”实际上是什么意思?

以下日志行是什么意思?

INFO (RANDOM_DELAY will be scaled with factor 84% if used.)

谷歌搜索没有找到有意义的答案:答案只在来源中吗?

(操作系统为CentOS 7)

编辑

这条线路是从 收到的logwatch,即:

 ################### Logwatch 7.4.0 (03/01/11) ####################
        Processing Initiated: Wed Jul 15 09:38:02 2020
        Date Range Processed: yesterday
                              ( 2020-Jul-14 )
                              Period is day.
        Detail Level of Output: 0
        Type of Output/Format: mail / text
        Logfiles for Host: laptop.local
 ##################################################################

 --------------------- Cron Begin ------------------------

 **Unmatched Entries**
 INFO (RANDOM_DELAY will be scaled with factor 84% if used.)
 INFO (RANDOM_DELAY will be scaled with factor 47% if used.)
 INFO (RANDOM_DELAY will be scaled with factor 74% if used.)
 INFO (Shutting down)
 INFO (RANDOM_DELAY will be scaled with factor 23% if used.)

 ---------------------- Cron End -------------------------

这些行的实际来源日志是/var/log/cron

答案1

crontab(5) 手册页给出了答案:

   The RANDOM_DELAY variable allows delaying job startups by random
   amount of minutes with upper limit specified by the variable. The
   random scaling factor is determined during the cron daemon startup so
   it remains constant for the whole run time of the daemon.

因此,如果您将RANDOM_DELAY=60其放入 crontab 中,则作业开始前的实际延迟将是记录的百分比,例如 60 分钟的 84%。如果您不使用,则不会发生任何事情RANDOM_DELAY

相关内容