Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-9727

default cronjobs are not optimal

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Medium Medium
    • 3.9.0rc2
    • 3.6.11, 3.7.9, 3.8.6, 3.9.0rc1
    • Cronjobs, Documentation
    • None
    • Operating System: Linux
      PHP Version: (please be specific, like '4.4.3' or '5.1.5')
      Database and version:
      Browser (and version):

    Description

      According to the default settings (settings/cronjob.ini), running the "runcronjobs.php" script every 15 minutes (as it is set in the "ezpublish.cron" file) will execute 10 cronjobs. Most of these tasks do not need to be run so frequently. See also http://issues.ez.no/7713

      Since this problem can be fixed by changing only two files (settings/cronjob.ini and ezpublish.cron), I'd suggest to fix it for 3.9 in the following way:

      cronjob.ini:

      [CronjobSettings]
      Scripts[]=hide.php
      Scripts[]=indexcontent.php
      Scripts[]=ldapusermanage.php
      Scripts[]=rssimport.php
      Scripts[]=subtreeexpirycleanup.php
      Scripts[]=unpublish.php
      Scripts[]=updateviewcount.php
      
      [CronjobPart-infrequent]
      Scripts[]=basket_cleanup.php
      Scripts[]=internal_drafts_cleanup.php
      Scripts[]=linkcheck.php
      
      [CronjobPart-frequent]
      Scripts[]=notification.php
      Scripts[]=workflow.php
      
      

      ezpublish.cron:

      # The path to the eZ publish directory.
      EZPUBLISH=/var/www/ezpublish
      
      # Location of the PHP command line interface binary.
      PHPCLI=/usr/local/bin/php
      
      # Instruct cron to run the main set of cronjobs
      # at 6:35am every day
      35 6 * * * cd $EZPUBLISH && $PHPCLI runcronjobs.php -q -s example 2>&1
      
      # Instruct cron to run the "infrequent" set of cronjobs
      # at 5:20am every Monday
      20 5 * * 1 cd $EZPUBLISH && $PHPCLI runcronjobs.php infrequent -q -s example 2>&1
      
      # Instruct cron to run the "frequent" set of cronjobs
      # every 15 minutes
      0,15,30,45 * * * * cd $EZPUBLISH && $PHPCLI runcronjobs.php frequent -q -s example 2>&1
      

      Of course that's just an example based on http://ez.no/doc/ez_publish/technical_manual/3_8/features/cronjobs/the_cronjob_scripts

      Attachments

        Activity

          People

            vd vd
            sveta sveta
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: