My favorites | Sign in
Project Logo
                
Code license: MIT License
Labels: python, zope, zodb, s3, memcached
Feeds:
People details
Project owners:
  laurencerowe

s3storage - zope in the cloud

Setup

boto from http://code.google.com/p/boto

memcached bindings http://cheeseshop.python.org/pypi/memcached/

start a memcached server with the -M option so it won't garbage collect your locks..

Put this in your zope.conf

%import Products.s3storage
<zodb_db main>
    # Main S3Storage database
    mount-point /
    connection-class Products.s3storage.connection.StoragePerConnection
    <s3storage>
      aws_access_key_id 12345ABC...
      aws_secret_access_key abc123.....
      bucket_name mys3bucket
      memcache_servers 127.0.0.1:12345
    </s3storage>
</zodb_db>

Current Status

Dog slow ;-) Far too many writes to s3. Will be interesting to see what performance you get from ec2 when they have some more beta keys

Plan

Rip out the whole memcached stuff, move to storing on file per transaction on s3 - can probably reuse filestorage data structures.









Hosted by Google Code