[mirrorbrain-commits] r7718 - trunk/mod_mirrorbrain

From: <poeml_at_mirrorbrain.org>
Date: Wed, 29 Jul 2009 11:37:05 +0200
Author: poeml
Date: Wed Jul 29 11:37:05 2009
New Revision: 7718
URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain?view=revision&revision=7718

Log:
mod_mirrorbrain example config: 
further updates, reflecting the switch to PostgreSQL and disabled memcache support

Modified:
   trunk/mod_mirrorbrain/mod_dbd.conf
   trunk/mod_mirrorbrain/mod_mirrorbrain.conf

Modified: trunk/mod_mirrorbrain/mod_dbd.conf
==============================================================================
--- trunk/mod_mirrorbrain/mod_dbd.conf	Wed Jul 29 11:23:02 2009	(r7717)
+++ trunk/mod_mirrorbrain/mod_dbd.conf	Wed Jul 29 11:37:05 2009	(r7718)
@@ -1,18 +1,14 @@
 # This is configuration is per server.
 
-DBDriver mysql
-# reconnect=0 is needed with the mysql adapter. It means that connections
-# should not be "reanimated", because prepared statements would be lost anyway,
-# so dead connections should rather be invalidated and new ones made.
-# see https://issues.apache.org/bugzilla/show_bug.cgi?id=45407
-DBDParams "host=host, user=user, pass=pass, dbname=dbname, reconnect=0"
+DBDriver pgsql
+DBDParams "host=localhost user=mb password=foobar dbname=mb connect_timeout=15"
 
-
-# # optional; threaded MPMs only
-# <IfModule !prefork.c>
-#     DBDMin  1
-#     DBDMax  10
-#     DBDKeep 2
-#     DBDExptime 60
-# </IfModule>
+# applies to threaded MPMs only. Prefork will use one databae connection
+# per child.
+<IfModule !prefork.c>
+    DBDMin  0
+    DBDMax  32
+    DBDKeep 4
+    DBDExptime 10
+</IfModule>
 

Modified: trunk/mod_mirrorbrain/mod_mirrorbrain.conf
==============================================================================
--- trunk/mod_mirrorbrain/mod_mirrorbrain.conf	Wed Jul 29 11:23:02 2009	(r7717)
+++ trunk/mod_mirrorbrain/mod_mirrorbrain.conf	Wed Jul 29 11:37:05 2009	(r7718)
@@ -1,11 +1,6 @@
 
 <IfModule mod_mirrorbrain.c>
 
-    # enable / disable memcache usage
-    MirrorBrainMemcached On
-    # lifetime of objects in memcache daemon
-    MirrorBrainMemcachedLifetime 600
-
     # configure libGeoIP
     MirrorBrainGeoIPFile /var/lib/GeoIP/GeoIP.dat
 
@@ -71,6 +66,14 @@
     # AND enabled AND status_baseurl AND score > 0"
 
 
+    # the following two directives are only available if mod_mirrorbrain is
+    # compiled with memcache support. Normally, memcache support is not used.
+    # enable / disable memcache usage
+    #MirrorBrainMemcached On
+    # lifetime of objects in memcache daemon
+    #MirrorBrainMemcachedLifetime 600
+
+
     <Directory /srv/www/htdocs/base_dir>
         # create directory listings
         Options +Indexes


_______________________________________________
mirrorbrain-commits mailing list
Archive: http://mirrorbrain.org/archive/mirrorbrain-commits/

Note: To remove yourself from this list, send a mail with the content
 	unsubscribe
to the address mirrorbrain-commits-request_at_mirrorbrain.org
Received on Wed Jul 29 2009 - 09:37:06 GMT

This archive was generated by hypermail 2.2.0 : Wed Jul 29 2009 - 09:45:07 GMT