yilisita
yilisita

Reputation: 1

how to enable an external couchdb for hyerledger fabric

I am following the official docs of hyperledger-fabric, paticularly the part https://hyperledger-fabric.readthedocs.io/en/latest/couchdb_tutorial.html. I am just using the "test-network" demo.However, I've encountered some problems when I try to use couchdb:

1.How should I config my core.yaml to switch from leveldb to couchdb, and should I config each core.yaml of each peer?

2.Is the couchdb on the chaincode or in the docker container and can I use my local database to store the state data?

Any answer will be hugely appreciated, thanks!

Upvotes: 0

Views: 382

Answers (1)

Dave Enyeart
Dave Enyeart

Reputation: 2573

  1. Configure each peer's core.yaml to point to the respective peer's CouchDB. See the CouchDB configuration documentation for details.

  2. You will need a separate CouchDB for each peer. Typically the CouchDB is deployed to a separate container but 'close' to the peer container, e.g. in the same Kubernetes pod.

Upvotes: 1

Related Questions