Re: Bug#435884: ITP: rsyslog -- enhanced multi-threaded syslogd
Hi All!
<disclaimer>
I have no connection with rsyslog. I don't know anything about this
program.
</disclaimer>
On Mon, 2007-08-06 at 08:15 +1000, Hamish Moffatt wrote:
>
> Since messages arrive on a single socket (usually connection-less)
> ultimately the messages enter through one process/thread. And they get
> written to a file or database which is ultimately not parallelable
> either. Is there a huge amount of processing in between which justifies
> multithreading?
At first if you poll for an fd in more than one thread you can balance
the load. (When a thread handle a message another thread can read. Just
like in spamassassin :)
At second there may be more than one destionation or you can connect to
a database with more than one connection. So it can be parallelable too.
At third there _may_ be some processing between log reading and writing.
Below this I couldn't answer the questions so I delete it.
Reply to: