Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database read/write splitting or failover #567

Open
mfournier opened this issue Dec 5, 2016 · 1 comment
Open

Database read/write splitting or failover #567

mfournier opened this issue Dec 5, 2016 · 1 comment

Comments

@mfournier
Copy link
Contributor

Currently postgresql is a SPOF. We can't reconfigure/resize/move/update it without putting the whole website offline for at least a few seconds.

We'd need either one of these:

  • having sqlalchemy sending write requests to a different DB connection than read requests.
  • having sqlalchemy being able to failover to a second (read-only) database in case the first one goes away.

In both cases, the app needs to be clever enough to gracefully handle the case where the (single) writeable database is gone. A sort of maintenance mode where everything is read-only, and the feedback to the user is unambiguous about it.

When discussing this with @tsauerwein this afternoon, he mentioned: camptocamp/c2cgeoportal#2223

@anayrat
Copy link

anayrat commented Jan 8, 2017

How do you deal if the replica server has a lag? IMHO you should use the replica only in case of switchover or failover.

@stef74 stef74 modified the milestones: V6.2, V6.1 Feb 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants