Re: How to add new orderer? #fabric-ca #raft

Yueming Xu

I got it working, as described in section "add new orderer node" of my project:
You need to update the system channel config with new consenter info (which includes base64 encoding of the new orderer's certificate).  I used the following jq filter to edit the channel config:
cat ${chan}-config.json | jq '.channel_group.values.OrdererAddresses.value.addresses += '"${addrs}"'' | jq '.channel_group.groups.Orderer.values.ConsensusType.value.metadata.consenters += '"${cons}"'' > ${chan}-config-modified.json

The limitation is that you can add only one node at a time, even though in principle, you should be able to add multiple nodes as long as you have more nodes running.  But, at least for the release 1.4.3, it allows me to add only one node in each update.

Besides, you have to use an orderer user to update the channels.  You have to update the system channel first, and then update other application channels separately.

Join to automatically receive all group messages.