Sri davei
Sri davei

Reputation: 13

update crypto-config.yaml file and update in the network

Is there a way to update the crypto-config.yaml file and then update it over the network without bringing the network down in hyperledger fabric 1.4.

Upvotes: 0

Views: 318

Answers (1)

Kartik Chauhan
Kartik Chauhan

Reputation: 3068

If you want to extend your existing fabric network like adding a new peer, then first create artifacts for it.

Adding a new peer:

  1. Increase the peer count in crypto-config.yaml by increasing the value of Template.
  2. Generate certificates for new peer nodes using cryptogen extend --input="crypto-config" --config=config.yaml

where,

--input="crypto-config"  The input directory in which existing network place
--config=CONFIG          The configuration template to use
  1. Add the docker configuration for the new peer and CouchDB(if statedb=couchdb), then run docker-compose -f docker-compose-new-peer.yaml up -d new_couchdb_container new_peer_container.

You won't have to bring down the whole network to add a new peer node.

Refer to this for more information on how to add a new peer.

Upvotes: 1

Related Questions