Create a read-only mode for Metacat MN
During a big os upgrade of a Metacat member node, we always face the issue that it will have a long down time. In order to minimize the down time, we can create a new node which has been installed the new version of the software, then migrate the content from the old node to the new node. In order to keep the same content, it will be great if the old node can be set to the read-only mode.
Here is my plan:
In the metacat.properties file, a new property database.readyOnly will be added. It it is the true, the following methods can be excecuted:
1. Metacat API:
- handlerPlugin ( we are not sure if they can update the content)
2. Metacat Replication API
3. Member node api (v1 and v2)