This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Easily and instantaneously attach read only datasets to multiple postgres instances using AWS EFS.

Usage

Install pefs:

pip install pefs

Create some date in a local postgres instance:

echo "CREATE TABLE test (id int, value varchar); INSERT INTO test VALUES (1, 'test');" | psql mydb

Attach the EFS volume to /mnt/efs (or elsewhere), then use pefs to clone the database to the EFS:

pefs clone mydb /mnt/efs

On a different machine, mount the EFS volume and link the local postgres instance to it:

pefs link mynewdb /mnt/root
echo "SELECT * FROM test" | psql mynewdb

Warning

Pefs will shutdown postgres servers and issue file cache flushes. Pefs is an experiment.

How it works

Cloning a database works by shutting down the postgres server and doing a file cache flush to write all data to disk. The postgres server is started back up and queried to determine all the tables in a database and where all those page files are located. The page files are copied on the EFS volume along with the DDL generated by pg_dump.

Linking a database works by taking all the DDLs on the EFS volume and applying them on the local postgres server, the paths to the empty page files are noted. The postgres server is shutdown and another file cache flush is performed. The empty page files are deleted and replaced with symlinks onto the EFS volume. The postgres server is started up again.

Release History

Release History

0.0.1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting