Using the S3 StorageService

    Table of contents
    1. 1. Configuration
    2. 2. Caveats

    The S3StorageService is an alternative implementation of the StorageService using S3 instead of the local filesystem.

    Configuration

    All services are provided a default storage service plug by the host. By configuring the host to use S3, all services will automatically write to this storage. By including the below configuration section in the host config XML, the host will configure with the S3 Storage service instead of the filesystem based one.

    <storage type="s3">
      <bucket>{required}</bucket>
      <privatekey>{required}</privatekey>
      <publickey>{required}</publickey>
      
      <!-- the base path inside the bucket, i.e. the storage root -->
      <root>{optional, default: null}</root>
      
      <baseuri>{optional, default: http://s3.amazonaws.com}</baseuri>
      <timeout>{optional, default: 30 (seconds)}</timeout>
    </storage>

    Note: Currently there is a bug, requiring that <root> is specified. If none is wanted, use <root>/</root>

    Caveats

    There are certain caveats to using the S3 Storage service:

    • Directory GET or DELETE requests much have a trailing slash in their URI to be recognized as directories
    • Directory listing will not report expiration date or ttl, must HEAD the file to find out if expiration info exists
    • Directory listing always reports date.created with the date.modified value
    Tag page
    Viewing 2 of 2 comments: view all
    Thanks, @ArneC. This looks dead simple. One question: where do I find the host config XML file?
    Posted 09:15, 6 Oct 2010
    @kellya by default here is no host config file. you have to call mindtouch.host.exe config {configfilepath}

    Note, that once you use that commandline option all other args need to be specified in that configfile as well
    Posted 11:11, 19 Oct 2010
    Viewing 2 of 2 comments: view all
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by