Skip to main content

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

Project description

https://img.shields.io/pypi/v/django-balancer.svg?style=flat-square https://img.shields.io/pypi/dw/django-balancer.svg?style=flat-square https://img.shields.io/travis/michaelhelmick/django-balancer.svg?style=flat-square https://img.shields.io/coveralls/michaelhelmick/django-balancer/master.svg?style=flat-square

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.

Install

Install django-balancer via pip

$ pip install django-balancer

or, with easy_install

$ easy_install django-balancer

But, hey… that’s up to you.

Project details


Release history Release notifications

This version
History Node

0.5

History Node

0.4

History Node

0.3

History Node

0.3a1

History Node

0.2

History Node

0.2a1

History Node

0.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
django-balancer-0.5.tar.gz (4.6 kB) Copy SHA256 hash SHA256 Source None Sep 12, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page