Hyperledger fabric couchdb persistent

风格不统一 提交于 2021-01-05 12:24:41

问题


background:

I am developing Hyperledger Fabric Network(v1.1) and are using couchdb. For continuing operation. It is necessary to persist data go each component(peer, orderer etc..).

Issue:

I don't know what I should persist couchdb's data for continuing operation in production environment.

Question:

(1)Should I persist these data in the below? And, if there is insufficient, please tell me that what I should persist data. /opt/couchdb/data /opt/couchdb/etc

(2)If I don't persist these couchdb's data. what will happen? (For example, querying error,clush the data and difference from block's data).Please tell me.

sincerely.


回答1:


If you don't persist the CouchDB data, then if you delete or upgrade the container you will lose the data. The good news is that if you have persisted the ledger from your peer, it will rebuild the data in CouchDB on startup but of course this will delay how long it takes for the peer to be able to serve any type of request.

The CouchDB image uses /opt/couchdb/data as the volume where it stores the data so you'll want to mount an external volume there.



来源:https://stackoverflow.com/questions/52794726/hyperledger-fabric-couchdb-persistent

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!