Lin Corey
Lin Corey

Reputation: 141

What value should peer.gossip.bootstrap property of a peer be set to?

Hyperledger Fabric official documentation( https://hyperledger-fabric.readthedocs.io/en/latest/gossip.html#external-and-internal-endpoints ) mentioned that "The peer.gossip.bootstrap property in the core.yaml of the peer is used to bootstrap gossip within an organization. If you are using gossip, you will typically configure all the peers in your organization to point to an initial set of bootstrap peers (you can specify a space-separated list of peers).". I don't quite understand that. My questions are:

  1. If an organization org1 has four peers, A,B,C and D, can A and B be set as bootstrap peers, and then both C and D are bootstrapped by A and B?
  2. If yes, should the peer.gossip.bootstrap property in C and D's core.yaml be set to a list of A and B's core addresses, such as "A:7051,B:7051"?
  3. Both A and B are bootstrap peers, what value should their peer.gossip.bootstrap property be set to?

Thanks very much.

Upvotes: 0

Views: 242

Answers (1)

Artem Barger
Artem Barger

Reputation: 41232

  1. If an organization org1 has four peers, A,B,C and D, can A and B be set as bootstrap peers, and then both C and D are bootstrapped by A and B?

Yes, you can setup A and B to be a bootstrap set. Then C and D will learn membership connecting thru these peers.

  1. If yes, should the peer.gossip.bootstrap property in C and D's core.yaml be set to a list of A and B's core addresses, such as "A:7051,B:7051"?

This is precisely how it works.

  1. Both A and B are bootstrap peers, what value should their peer.gossip.bootstrap property be set to?

Same as for C and D.

Upvotes: 1

Related Questions