MiniFabric Peer Hierarchy Questions
Brett Tiller
I’m attempting to use minifab to support a hierarchical car communication network I’ve created via the spec.yaml file. At the top of the network are managers followed by fleets (a fleet of cars) followed by individual cars. Essentially managers contain fleets and fleets contain cars. A car may drop off the fleet and join another fleet or rejoin the same. And a fleet could drop off from a manager and join another manager or rejoin the same. When a car or fleet rejoins they should be able to catch up on messages that were missed when they were offline. I’m a newbie to the blockchain technology, but I’ve reviewed the six minifabric training videos as well as the console app, and the sample networks. My environment is wsl using Ubuntu 20.0.4. I have questions below.
Thanks,
Brett Tiller Sr. Software Engineer 984-349-4239 (mobile)
https://www.linkedin.com/company/securboration
|
|
email4tong@gmail.com
Brett,
toggle quoted messageShow quoted text
Thanks for using Minifabric, as you have noticed, the channel join command puts all the peers in the org into the channel, it was done on purpose, like many aspect of Minifabric, it is to make things very easy for users. That of course comes with limitations. However, you can use channel update to do nearly every fabric operation, as it is the ultimate way of dealing with Fabric, all changes regardless channel join, channel creation, updates etc all results in channel configuration changes. In terms of the node chain code, if I remember right, Minifabric already include mounting a directory to Minifabric container, it could be just missing dependencies. I also think that Minifabric allows you to install chain code with the package, if your chain code is packaged correctly, it should not produce the errors. In terms of changing app, I think you need to change the mounting target directory, because, when you do app run command, it only copies at the first time, it would not copy every time for obvious reasons (cost). So if you make changes to your app, then you will need just to make changes to the app/go/main.go file I think. Also if you found some other issues and like to fix them, you are more than welcome to submit a PR, I will be happy to review and get it merged if it improves Minifabric. Best wishes. Tong.
|
|