[mirrorbrain-commits] r8004 - /trunk/docs/installation/initial_config.rst

From: <poeml_at_mirrorbrain.org>
Date: Sun, 14 Mar 2010 21:51:13 -0000
Author: poeml
Date: Sun Mar 14 22:51:12 2010
New Revision: 8004

URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain?rev=8004&view=rev
Log:
Notes about necessity of local file tree, and alternatives.

Modified:
    trunk/docs/installation/initial_config.rst

Modified: trunk/docs/installation/initial_config.rst
URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain/trunk/docs/installation/initial_config.rst?rev=8004&r1=8003&r2=8004&view=diff
==============================================================================
--- trunk/docs/installation/initial_config.rst (original)
+++ trunk/docs/installation/initial_config.rst Sun Mar 14 22:51:12 2010
_at_@ -3,6 +3,43 @@
 
 Initial configuration steps on all platforms
 ============================================
+
+
+Create a file tree
+------------------
+
+If you haven't got a file tree yet, you should create it now.
+
+Make the directory for the file tree and fill it::
+
+  mkdir /srv/mytree
+  rsync .... /srv/mytree
+
+Note that this file tree is a necessary prerequisite to running MirrorBrain,
+even though it intercepts the requests to those files and redirects them to
+mirrors.
+
+Having said that, there *is* a way to get by without local files, which is by
+using the :program:`null-rsync` (found in the source tree) tool instead of
+:program:`rsync` to pull the files. :program:`null-rsync` is used exactly as
+rsync, but it will create a pseudo file tree that requires very few local
+space. However, since those files are filled with zeroes (!), it is important
+to make sure that MirrorBrain *never* delivers content from those files. That
+is achieved by using the ``MirrorBrainFallback`` directive to define some
+mirrors that are *always* available and are guaranteed to have *all* those
+files. (The directive can be configured individually per directory in Apache
+config.) See the `2.11.0 release notes`_ for details.
+
+Note that if you have the files locally, you can automatically maintain
+cryptographic hashes of them in the database; running with pseudo files cuts on
+some very useful features. In addition, the local files are always available to
+deliver them directly, which is a good fallback behaviour for files that are
+not mirrored at all, files that have not arrived on any mirror just yet, and so
+on.
+
+.. _`2.11.0 release notes`: http://mirrorbrain.org/docs/changes/#release-2-11-0-r7896-dec-2-2009
+
+
 
 Create mirrorbrain.conf
 ~~~~~~~~~~~~~~~~~~~~~~~
_at_@ -373,12 +410,6 @@
 
   sudo mkdir /var/log/apache2/mirrors.example.org/
 
-Make the download directory (for the file tree)::
-
-  sudo mkdir /var/www/downloads
-
-If you haven't done so yet, fill the file tree with the download tree.
-
 
 Enable the site::
 




_______________________________________________
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 Sun Mar 14 2010 - 21:51:15 GMT

This archive was generated by hypermail 2.3.0 : Mon Feb 20 2012 - 23:47:04 GMT