Closed subhasisbanik closed 5 years ago
This depends on your configuration.
If you have disableAutoDiscovery
set to false
(or the property is omitted from your config), then all you have to do is add one of the existing peers to the new Tessera node.
When the new Tessera node starts, it will communicate with the existing node, and then distribute that data to the others.
If you have disableAutoDiscovery
set to true
, then you will need to do one of two things:
Great thanks. I will surely try it out. Regarding "disableAutoDiscovery" set to true, if I choose to use option 2 ("add the new node's address without restarting by using this API"), can I perform that using any http call? If yes, can you please help?
Absolutely.
It requires that you have set up an Admin App in the configuration, in order to access this API. If you have not done that, then please see this link.
Then, you can do a PUT
request to http://<your-url>/config/peers
with the body:
{
"url": "<peer url here>"
}
Note: this will add the peer to your config file as well, so it will persist between restarts.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I have built a network with say 3 peers where each peer contains a tessera and geth running. I have added admin.addPeer(), raft.addPeer() and also passed the detail in tessera-config.json.
Now after having all the peers set up, I wish to add 1 more peer. What should be the step to do that? Do I need to stop all Tessera running in the previous machines to add the new peer?