Distributed setup allows chaining devices enabling muliple physical ports. Typically a scenario would be where the host has not enough can ports.
The connected devices can be of different kind. Linux machines can coexist with Raspberry pie:s.
- Make sure all nodes (machines) have license installed.
- For all nodes - go to the beamylabs-start folder and do:
docker-compose down
NODE_NAME=xxx.xxx.xxx.xxx docker-compose up -d
make sure to replace
xxx.xxx.xxx.xxx
with the proper ip of the machine.
- Upload a valid configuration (or modify the configuration in this folder) to all the relevant nodes.
- Using the web interface you should now se all namespaces listed on all machines.
- Done!
All node names must be prefixed with node
. slaveX.com
and master.com
needs to be replaced with the proper ips's which are the same as were used when doing docker-compose up
above.
{
"master_node": "node@master.com",
"nodes": [
{
"node_name": "node@slave1.com",
"default_namespace": "VirtualInterface",
"chains": [
{
...
}
],
"gateway": {
"gateway_pid": "gateway_pid",
"tcp_socket_port": 4041
},
"auto_config_boot_server": {
"port": 4001,
"server_pid": "auto_config_boot_server_pid"
},
"grpc_server": {
"port": 50051
},
"reflectors": []
},
{
"node_name": "node@master.com",
"default_namespace": "UDPCanInterface",
"chains": [
{
...
}
],
"gateway": {
"gateway_pid": "gateway_pid",
"tcp_socket_port": 4042
},
"auto_config_boot_server": {
"port": 4002,
"server_pid": "auto_config_boot_server_pid"
},
"grpc_server": {
"port": 50051
},
"reflectors": []
}
]
}
To start from a clean configuration you could do:
rm beamylabs-start/configuration/boot