Fabric Network - what happens when a downed peer connects back to the network?

自闭症网瘾萝莉.ら 提交于 2019-12-23 19:16:09

问题


I recently deployed the fabric network using Docker-compose, I was trying to simulate a downed peer. Essentially this is what happens:

  1. 4 peers are brought online using docker-compose running a fabric network
  2. 1 peer i.e the 4th peer goes down (done via docker stop command)
  3. Invoke transactions are sent to the root peer which is verified by querying the peers after sometime (excluding the downed peer).
  4. The downed peer is brought back up with docker start. Query transaction run fine on the always on peers but fail on the newly woken up peer.

Why isn't the 4th peer synchronizing the blockchain, once its up.Is there a step to be taken to ensure it does? Or is it discarded as a rogue peer.


回答1:


This might be due to the expected behavior of PBFT (assuming you are using it). As explained on issue 933,

I think what you're seeing is normal PBFT behavior: 2f+1 replicas are making progress, and f replicas are lagging slightly behind, and catch up occasionally.

If you shut down another peer, you should observe that the one you originally shut off and restarted will now participate fully, and the network will continue to make progress. As long as the network is making progress, and the participating nodes share a correct prefix, you're all good. The reason for f replicas lagging behind is that those f may be acting byzantine and progress deliberately slowly. You cannot tell a difference between a slower correct replica, and a deliberately slower byzantine replica. Therefore we cannot wait for the last f stragglers. They will be left behind and sync up occasionally. If it turns out that some other replica is crashed, the network will stop making progress until one correct straggler catches up, and then the network will progress normally.




回答2:


Hyperledger Fabric v0.6 does not support add peers dynamically. I am not sure for HF v1.0.



来源:https://stackoverflow.com/questions/40398253/fabric-network-what-happens-when-a-downed-peer-connects-back-to-the-network

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!