docker-compose


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


I recently deployed the fabric network using Docker-compose, I was trying to simulate a downed peer. Essentially this is what happens:
4 peers are brought online using docker-compose running a fabric network
1 peer i.e the 4th peer goes down (done via docker stop command)
Invoke transactions are sent to the root peer which is verified by querying the peers after sometime (excluding the downed peer).
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.
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.
Hyperledger Fabric v0.6 does not support add peers dynamically. I am not sure for HF v1.0.

Related Links

How should docker-compose jobs discover etcd?
docker compose adding nodes dynamically to nginx frontend
Docker Swarm - dependencies definition
docker-compose volume not mounted
Exposing sentry service in docker-compose file
Yesod and docker-compose logs in development mode
Docker compose to always deploy using latest image
JHipster - Doubts in the development using Microservices Architecture
Gogs + Drone getsockopt: connection refused
Concourse result keeps loading
Docker-compose: AttributeError: 'module' object has no attribute 'ssl'
scaling a service with docker compose
Docker Compose apparently ignores COMPOSE_FILE
Where does Docker install gems on a mac
What is the difference between docker-machine and docker-compose?
Docker Compose port issue. Cannot launch docker project on localhost

Categories

HOME
repository
stata
customization
microcontroller
latex
overrides
localhost
virtualhost
wavefront
google-api-oauth
rtc
dcos
jpql
osrm
opendaylight
internet-explorer-7
vivado-hls
md2
google-street-view
audio-streaming
passbook
descriptor
procedural-generation
devexpress-mvc
sha
rancher
knapsack-problem
symlink
custom-fields
2checkout
concrete5
xlib
vtd-xml
machine-code
headphones
certbot
asp.net-webhooks
gem-fury
socketcluster
compiled-query
flume-ng
amazon-rds-aurora
firefox-developer-edition
pexpect
libzip
cakephp-3.2
npoco
easyquery
r-commander
totalview
sharing
cedar-bdd
dimensionality-reduction
particle-system
hfp
php-java-bridge
window.location
nugetgallery
taverna
self-join
textblob
dpkt
android-filterable
joomla3.3
nmock
web-standards
data-representation
minko
ultraedit
gmaps4jsf
parseexception
firebase-tools
connection-timeout
chrome-mobile
data-quality-services
google-experiments
mathics
douglas-peucker
fedena
illegalargumentexception
agent-based-modeling
livescript
twitter-finagle
code-smell
nodeunit
acrofields
ia-32
kohana-orm
extensibility
exi
architectural-patterns
pymel
database-restore
screensharing
invalidoperationexception
derived-class
bash4
utm
capitalization
file-processing
sessiontracking
hwnd
n2
meego-harmattan
azure-appfabric
conditional-operator
for-xml
qlibrary
scalable
paperless

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App