Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

CouchDB Replicas and Copies

$
0
0

Is it safe to copy and replicate CouchDB databases interchangeably? Or will there be problems because of the UUID of the database instance? Here's what I mean.

I ran out of disk space on my CouchDB database server, and there's not enough space left to do a compaction. So I'm replicating to another server.

Here are the steps I was thinking of doing (please stop me if this is a bad idea):
1. Replicating the primary to the secondary via continuous replication.
2. Once the replication is done (of course, it won't be totally done since it's continuous), point the application servers to the secondary database.
3. Copy the secondary database files to the primary server.
4. Replicate from the secondary to the primary (to pick up any updates).
5. Point my application servers back to the primary.

Is it safe to copy the replicated database back to my primary server after the replication is finished? Or will the UUIDs cause an issue?

Unfortunately I need to minimize the time that the database is unavailable, which is why I'm doing these steps like this. I can't think of a better way to do it.


Viewing all articles
Browse latest Browse all 17268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>