==================================================================
  Please DO NOT REPLY to this mail or send email to the developers
  about this bug. Please follow-up to Bugzilla using this link:
    http://bugs.contribs.org/show_bug.cgi?id=8944

  Have you checked the Frequently Asked Questions (FAQ)?
    http://wiki.contribs.org/SME_Server:Documentation:FAQ

  Please also take the time to read the following useful guide:
    http://www.chiark.greenend.org.uk/~sgtatham/bugs.html
==================================================================

            Bug ID: 8944
           Summary: NFR: configurable time to execute the cron job
    Classification: Contribs
           Product: SME Contribs
           Version: 9.0
          Hardware: ---
                OS: ---
            Status: CONFIRMED
          Severity: normal
          Priority: P3
         Component: smeserver-mailstats
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected], [email protected]
        Depends on: 5781

+++ This bug was initially created as a clone of Bug #5781 +++

This would be an improvement from our point of view (or nice to have for
others) for this contrib. We see a need to be able to customise the time that
the cron job is executed for individual installations.

It currently runs at midnight each night on all servers:
0 0 * * * root perl xxxxxxx

The incoming emails at that time from our customers in combination with other
emails that we receive at that time end in a bit of a resource bottleneck at
our (receiving) server end (extract from spamd logfile):

2010-02-09 00:01:35.810545500 [2284] info: spamd: clean message (-0.8/6.0) for
qpsmtpd:1005 in 25.8 seconds, 1898 bytes.
2010-02-09 00:01:35.810706500 [2284] info: spamd: result: . 0 -
BAYES_00,MIME_BASE64_BLANKS,MIME_BASE64_TEXT
scantime=25.8,size=1898,user=qpsmtpd,uid=1005,re
quired_score=6.0,rhost=localhost,raddr=127.0.0.1,rport=60271,mid=<745305863-1265626796-cardhu_decombobulator_blackberry.rim.net-21023961...@bda032.bisx.produ
k.on.blackberry>,bayes=0.002729,autolearn=no
2010-02-09 00:01:35.898032500 [27365] info: prefork: child states: BBBBB
2010-02-09 00:01:35.898072500 [27365] info: prefork: server reached
--max-children setting, consider raising it
2010-02-09 00:01:35.898819500 [2284] info: spamd: connection from localhost
[127.0.0.1] at port 60276

Ideally we could specify the execution time via db command or maybe the cron
script could run at random times like this:

0 0 * * * root  sleep $[ $RANDOM \% 600 ];  perl /usr/bin/spamfilter-stats-7.pl
xxx

This spreads execution over 10 minutes.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
_______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at http://lists.contribs.org/mailman/public/contribteam/

Reply via email to