<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>44842</bug_id>
          
          <creation_ts>2023-01-09 06:28:08 +0300</creation_ts>
          <short_desc>Изменить таймер запуска задания</short_desc>
          <delta_ts>2023-01-09 17:38:52 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>osec-cronjob</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexei Takaseev">taf</reporter>
          <assigned_to name="Alexey Gladkov">legion</assigned_to>
          <cc>legion</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>219785</commentid>
    <comment_count>0</comment_count>
    <who name="Alexei Takaseev">taf</who>
    <bug_when>2023-01-09 06:28:08 +0300</bug_when>
    <thetext>Для систем в виртуалках фиксированный запуск osec чреват высоким io у хост-систем, поэтому предлагается внести в файл /lib/systemd/system/osec.timer такие изменения:

--- osec.timer.old      2020-09-30 19:03:19.000000000 +0800
+++ osec.timer  2023-01-09 10:43:00.000000000 +0800
@@ -2,7 +2,8 @@
 Description=Run OSEC every day at midnight
 
 [Timer]
-OnCalendar=*-*-* 00:00:00
+OnCalendar=*-*-* 3:00
+RandomizedDelaySec=60m
 
 [Install]
 WantedBy=multi-user.target

С одной стороны это сдвигает запуск osec с 00:00 на 03:00, и за одно включает рандомизацию запуска в период с 2:00 до 4:00, таким образом более-менее равномерно перераспределяя нагрузку на дисковую подсистему хост-систем.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>219844</commentid>
    <comment_count>1</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2023-01-09 17:38:52 +0300</bug_when>
    <thetext>osec-1.3.1-alt3 -&gt; sisyphus:

 Mon Jan 09 2023 Alexey Gladkov &lt;legion@altlinux.ru&gt; 1.3.1-alt3
 - osec.timer: Randomize startup time (ALT#44842).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>