Eric
Eric

Reputation: 5091

Mysql Cluster with django

I would like to use Mysql Cluster 7.2 with django. For High Avaibility, One should be able to specify into django : 2 SQL servers from the Mysql cluster with a failover behaviour : if one connection fails, django must use the second one.

How to configure that ?

Upvotes: 3

Views: 1339

Answers (1)

n3storm
n3storm

Reputation: 746

Failover feature is not in Django per se.

I am also looking for this for future improvements of a project I am involved in. I found the following module as one of the best chances to solve this problem:

https://github.com/brianjaystanley/django-failover

In resume: a monitor checks for database availability and if database is down or slow changes database connection settings on the fly. The module looks great cause takes care of cache and celery too.

Anyway, it depends of your architecture behind the scenes.

Upvotes: 1

Related Questions