Centos

“INFO(RANDOM_DELAY 如果使用,將按 84% 的比例縮放)”實際上是什麼意思?

  • July 15, 2020

以下日誌行是什麼意思?

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

Google搜尋沒有找到有意義的答案:答案是否僅在來源中?

(作業系統為 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.

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.

引用自:https://serverfault.com/questions/1025359