Skip to main content
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.

Documentation

https://django-balancer.readthedocs.org/en/latest/

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.5.tar.gz (4.6 kB view details)

Uploaded Source

File details

Details for the file django-balancer-0.5.tar.gz.

File metadata

  • Download URL: django-balancer-0.5.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-balancer-0.5.tar.gz
Algorithm Hash digest
SHA256 0583b9897a68b739019f10cffba7fc507578407315ad4e92656e9d77054471d5
MD5 a1b9c3ad03e88be03fc8bf74641fbfa9
BLAKE2b-256 3cf404fbacd5853a43e5d2fed8a64ba00e1687d0de61be002ace2ad73936dd31

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.5 This release

1 file

0.4

1 file

0.3

1 file

0.2

1 file

0.1

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page