michaelhelmick / django-balancer

A set of tools for using Django's multi-db feature.
BSD 3-Clause "New" or "Revised" License
110 stars 5 forks source link

Slave connection not present #10

Open sebzur opened 12 years ago

sebzur commented 12 years ago

I've found a small issue in the balancer.

I've got the following configuration:

And the DB connections are defined as:

When ussing pinning routers it looks like the Second and Third instances are trying to use slave connection, while thre's no info about it in the settings.py I gues that this is stored somewhere with the session (I've been using PinningSessionMiddleware)... Anyway, I'm having the ConnectionDoesNotExist: The connection slave doesn't exist error.

I've switched to .WeightedMasterSlaveRouter and we'll see if the problem still occurs.