Skip to Content.
Sympa Menu

devel - Re: [sympa-developpers] Sympa::Tools::Daemon

Subject: Developers of Sympa

List archive

Chronological Thread  
  • From: David Verdin <address@concealed>
  • Cc: address@concealed, Mark Overmeer <address@concealed>
  • Subject: Re: [sympa-developpers] Sympa::Tools::Daemon
  • Date: Wed, 27 Mar 2013 13:59:37 +0100


Le 27/03/13 10:16, Guillaume Rousse a écrit :
address@concealed">Le 26/03/2013 18:51, Guillaume Rousse a écrit :
Le 26/03/2013 17:37, Mark Overmeer a écrit :

Hi Guillaume,

I see that Sympa has its over daemon implementation.  I do not know
whether this is an old implementation or a new one...  A good daemon
needs only 50 lines, however very sensitive to mistakes.

It might be a good idea to look at Any::Daemon for comparison.  It is
well tested and used on various places.  It also ran the whois for .nl
for a few years (although in an earlier version)
Sure. But currently, I'm rather trying to understand what does the
current code base does, before trying to replace it. Hence the
documentation and testing effort.
After a bit of reflexion, tough, you got a point here. This part of the current code base if probably the easiest to replace by external code, as quite delimited. This may even be a 6.3 objective, if we can set some roadmap.
Actually, we hav worked on this already.
Most Sympa daemons have a far clearer code now, with most of their functions moved to external module, levaing only the initializations and ending parts and a very short loop.
address@concealed">
I'm however not decided between Any::Daemon, Net::Server, and the various similar alternatives available on CPAN. Do you have any idea of pros/cons of each ones ?
We did'nt look at them right now; Like you said, there are a lot of other parts in the code that need clarifications.
What we want, in the end, is a single daemon controlling all the other, checking whether the right number of daemons are running, etc.
For now, we have single instance daemons (such as archived.pl) and multiple instance daemons (such as bulk.pl and sympa.pl). We want all of them to be multiple instance, likely to increase and decrease the number of instances relatively to the charge.

--
A bug in Sympa? Quick! To the bug tracker!

 
David Verdin
Infrastructure pour les Services Informatiques
 
Tél : +33 2 23 23 69 71
Fax : +33 2 23 23 71 21
 
www.renater.fr
RENATER
263 Avenue du Gal Leclerc
35042 Rennes Cedex



PNG image

Attachment: smime.p7s
Description: Signature cryptographique S/MIME




Archive powered by MHonArc 2.6.19+.

Top of Page