Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>When you use MongoDB for logging, the concern is the <strong>lock contention</strong> by high write throughputs. Although MongoDB's insert is fire-and-forget style by default, calling a lot of insert() causes a heavy write lock contention. This could affect the application performance, and prevent the readers to aggregate / filter the stored logs.</p> <p>One solution might be using the <strong>log collector framework</strong> such as <a href="http://fluentd.org/" rel="nofollow">Fluentd</a>, <a href="http://logstash.net/" rel="nofollow">Logstash</a>, or <a href="http://flume.apache.org/" rel="nofollow">Flume</a>. These daemons are supposed to be launched at every application nodes, and takes the logs from app processes.</p> <p>They buffer the logs and <strong>asynchronously</strong> writes out the data to other systems like MongoDB / PostgreSQL / etc. The write is done by <strong>batches</strong>, so it's a lot more efficient than writing directly from apps. This link describes how to put the logs into Fluentd from PHP program.</p> <ul> <li><a href="http://docs.fluentd.org/articles/php" rel="nofollow">Fluentd: Data Import from PHP Applications</a></li> </ul> <p>Here's some tutorials about MongoDB + Fluentd.</p> <ul> <li><a href="http://blog.10gen.com/post/27619817959/fluentd-mongodb-the-easiest-way-to-log-your-data" rel="nofollow">Fluentd + MongoDB: The Easiest Way to Log Your Data Effectively</a> on 10gen blog</li> <li><a href="http://docs.fluentd.org/articles/apache-to-mongodb" rel="nofollow">Fluentd: Store Apache Logs into MongoDB</a></li> </ul>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload