Reputation: 514
If I'm creating 4 peers in one namespace/org in Hyperledger, do I need to create separate CouchDB for each Peer? Like for for peer0-->CouchDB0, for peer1-->CouchDB1? And why?
Regards, Vikas
Upvotes: 1
Views: 381
Reputation: 721
Yes, separate CouchDB is needed for each peer if CouchDB is chosen as the state DB. As for why, Fabric peer and a CouchDB has been designed to have a one-to-one relationship, and there is no guarantee that all the peers will have same state even though they are in the same org, For example, Peers in the same Org may subscribe to different channels, in which case their Ledger and State will be different.
Upvotes: 1