Hyperledger Fabric CouchDB持久性 [英] Hyperledger fabric couchdb persistent

查看:48
本文介绍了Hyperledger Fabric CouchDB持久性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

背景:

我正在开发Hyperledger Fabric Network(v1.1),并且正在使用couchdb.继续运行.有必要将数据持久化到每个组件(对等设备,订购者等).

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..).

问题:

我不知道在生产环境中继续运行该如何保存ouchdb的数据.

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

问题:

(1)我应该在下面保留这些数据吗?并且,如果不足,请告诉我应该保留哪些数据./opt/couchdb/data/opt/couchdb/etc

(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)如果我不保留这些beddb的数据.会发生什么?(例如,查询错误,清除数据和与块数据的差异.)请告诉我.

(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.

此致.

推荐答案

如果不保留CouchDB数据,则如果删除或升级容器,则数据将丢失.好消息是,如果您保留了对等方的分类帐,它将在启动时在CouchDB中重建数据,但是这当然会延迟对等方能够处理任何类型的请求所需的时间.

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.

CouchDB映像使用/opt/couchdb/data 作为存储数据的卷,因此您需要在此安装外部卷.

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.

这篇关于Hyperledger Fabric CouchDB持久性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆