I've been using policyd-weight on a busy server for a week with no
problems.  Last night, while checking the logs, I saw a small handful
of messages (about five) saying connection refused by policyd-weight,
indicating to me that I had used up the number of available processes.
So I increased $MAX_PROCS from 150 to 200, and $MIN_PROCS from 10 to
20, and issued "policyd-weight reload".  At the same time, I increased
the maximum number of smtpd processes for postfix from 200 to 300, as
it also had indicated it had run out of available processes.  After
this, policyd-weight no longer works.

When it is started, and 'ps aux | grep policyd-weight' run, sometimes
it simply doesn't show up at all, or only the cache will show up.
Sometimes the master will show up with no child processes.  While it is
running, if it manages to start, sometimes it will successfully work,
but frequently postfix reports "warning: premature end-of-input on
127.0.0.1:12525 while reading input attribute name".

I have tried restoring $MAX_PROCS and $MIN_PROCS to their default
values, but there is no change.  I also set $DEBUG=1 but got no extra
logging.  I tried running "policyd-weight -d" from the command line
(see output below), which will generally keep the master running, but
spawn no children.  I have checked ps, netstat, and lsof to see if any
stale files or sockets are being left around.

This is on Gentoo.  Perl is "v5.8.8 built for i686-linux", Sys::Syslog
is 0.18, Net::DNS is 0.58.  policyd-weight was originally 0.1.13
beta-11, but is now "0.1.13 beta-14, CacheVer: 3"

output of 'policyd-weight -d':
policyd-weight version: 0.1.13 beta-14, CacheVer: 3
System: Linux mailtemp 2.6.17-gentoo-r7 #4 SMP Thu Sep 14 15:31:30 EDT
2006 i686 Intel(R) Xeon(TM) CPU 2.80GHz GNU/Linux Perl version: 5.008008
Net::DNS version: 0.58
config: /etc/policyd-weight.conf
$MAX_PROC = 50;
$MIN_PROC = 3;
$REJECTLEVEL = 10;
  @dnsbl_score = (
    'dynablock.njabl.org',    3.25,          0,        'DYN_NJABL',
    'dnsbl.njabl.org',        4.25,       -1.5,        'BL_NJABL',
    'relays.ordb.org',        3.25,          0,        'ORDB_ORG',
    'bl.spamcop.net',         3.75,       -1.5,        'SPAMCOP'
);
$MAXDNSBLHITS = 2;
$MAXDNSBLSCORE = 8;
   @rhsbl_score = (
    'postmaster.rfc-ignorant.org', 0.1,      0,        'PM_RFCI',
    'abuse.rfc-ignorant.org',      0.1,      0,        'ABUSE_RFCI'
);
$CACHESIZE = 1000;
$CACHEMAXSIZE = 1500;
$POSCACHESIZE = 1000;
$POSCACHEMAXSIZE = 1500;

debug: using port 12526
debug: USER:  polw
debug: GROUP: polw
debug: issuing user:  root
debug: issuing group: root


-- 
Marshal Newrock, Ideal Solution LLC
http://www.idealso.com

____________________________________________________________
Policyd-weight Mailinglist - http://www.policyd-weight.org/

Reply via email to