问题
Right now I have a database (about 2-3 GB) in PostgreSQL, which serves as a data storage to RoR/Python LAMP-like application.
What kind tools are there that are simple and robust enough for replication of the main database to a second machine?
I looked through some packages (Slony-I and etc.) but it would be great to hear real-life stories as well.
Right now I'm not concerned with load balancing and etc. I am thinking about using simple Write-Ahead-Log strategy for now.
回答1:
If you are not doing replication, Write ahead Logs are the simplest solution.
回答2:
If you can upgrade to pg 9 I would looking to streaming replication - very simple setup. Or if you can't upgrade you can just look at a hot-standby (which you can query to).
See here: http://eggie5.com/15-setting-up-pg9-streaming-replication
来源:https://stackoverflow.com/questions/81404/postgres-replication