I'm currently in a process of providing our applications of a high availability capability.
Our applications have an auto update feature (using Mongeez) that ensures that the structure of all databases/collections/documents are on correct format for that application version.
The problem is that I'm having a hard time, on how to resolve the replication and versioning problem.
I'll use the following example to better explain the problem.
I need to update Application X to Application X2.0 on both servers without downtime, so I do the following:
How can I solve this issue? What am I doing wrong in the previous "workflow"?
Let's suppose:
If F2 is compatible with F1, you can make XA & XB run together. It seems that this cause isn't what you described :)
If F2 is not compatible with F1, there is a lot of work to do.
=============== SIMPLE METHOD ==================
version
field to your document (or use a field to distinguish between F1 and F2) =============== COMMON BUT COMPLEX METHOD ==================
Let's define some concepts first:
Steps:
You need some programs(scripts) to do step2 & step3.
If you don't care about cold data, you can skip step2&step3, let XB run for some time to migrate hot data.
=============== another method ==================
there are risks:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.