Skip to main content

A set of tools for using Django's multi-db feature to balance database requests

Project description

A set of tools for using Django’s multi-db feature to balance database requests between multiple replicated databases. It currently provides some basic routers for using weighted random selection or round robin selection with a pool of databases, following a master/slave layout where the slaves are read-only copies of master, and pinning reads to master for a user after that user completes a write.

Since everything is implemented using base classes and mixins, this also serves as a construction kit for creating your own more complex routers. Feel free to contribute routers, and I’ll be happy to incorporate them into the project.

You can review the documentation on Read the Docs:

http://readthedocs.org/projects/bkonkle/django-balancer/docs/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-balancer-0.3a1.tar.gz (5.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page