1 Jan 2011 15:30
Re: MongoDB destination driver
Gergely Nagy <algernon <at> madhouse-project.org>
2011-01-01 14:30:41 GMT
2011-01-01 14:30:41 GMT
A little update on the state of the driver: last night, I arrived to a state where I consider it good enough for my own purposes (already using it in production), today I did some benchmarking (completely unscientific, mind you) to see if and where I can improve the driver. A standard setup, logging to a file resulted in 24k message/sec, we'll use that for comparsion. Logging the same data to a capped (at 1000 messages) mongodb collection netted 18k messages/sec, while logging to an uncapped and unindexed mongodb collection is around 13k messages/sec. All tests were run on the same computer, using the same loggen commandline, the only change is the destionation in the syslog-ng config. Each test ran for 10 minutes. The numbers could probably be upped with suitable configuration and a more appropriate test environment, but I'm not really into that stuff, the current performance fits my needs perfectly well. I haven't tested an SQL destination, but my gut feeling is, mongodb's a lot faster already. And there's obviously a lot of cases I haven't tested: query speed while writes are flowing in; how indexing affects it all, and so on, since those scenarios are either not part of my use case, or I don't feel knowledgable enough to draw the proper conclusions. I'll let someone else do proper benchmarking, I'll stick to coding :) Now, the next thing I explored is if I can speed things up easily: for this reason, I had a look at callgrind's output, and concluded that(Continue reading)
RSS Feed