Safe Haskell | None |
---|---|
Language | Haskell2010 |
see also
https://hackage.haskell.org/package/parconc-examples
http://haskell-distributed.github.io/tutorials/1ch.html
This library:
- has basic working code to enable to start nodes and to connect them with each other
- may be extended however you are most likely to write your own code that does much more
- is simple on purpose
- exchanges pings with other nodes which are expected to pong back
- both pings & pongs are output to stdout
- when a node disconnects or stops, the other nodes stdout notifications about this
How to use the program that comes with this library:
start the same program in multiple consoles: 1 per node
pass 2 args:
- path to config.json (see enclosed test-conf.json)
- idx of this node in the cluster: 0 .. (length Cluster -1)
>>>
./raketka ./test-conf.json 0
stop (ctrl-C) any nodes, see notifications in live consoles
Documentation
one node