Zend_Daemon_Abstract job ...

0 views
Skip to first unread message

scramatte

unread,
Aug 21, 2009, 3:11:14 PM8/21/09
to concentre-daemon

Denis ! As I told you on the chat I believe that Zend_Daemon_Abstract
only include low level operations mainly :

- main process forking to daemon
- pool, queue and process management

I think that each extende daemon will have is main loop logic.

We can give methods to handle queue and process but
Zend_Daemon_Abstract can't and should't do everything and anything.

Example "Concentre_Daemon_Simple" :

1 Main parent process
No forked child process in the main loop (no queue, no pool)

Example "Concentre_Daemon_Socket" :

- queue must be handle automatically by the main loop.
- each new client connection will added to the queue as a task.
- 10 clients per process for example.
- the main loop must handle the queue and process forking it it
necessary


Example "Concentre_Daemon_Snmpchecker" :

- the daemon will execute a separate process to update hosts lists
each 5mn
- 1 process by 50/100 hosts block
- the main loop must handle the queue and process forking it it
necessary








Reply all
Reply to author
Forward
0 new messages