Cluster
Definition
SENSR operates within a Kubernetes environment to ensure system availability and to facilitate communication between Master and Algo nodes in distributed systems. For the successful execution of SENSR, it is necessary to establish a Kubernetes Cluster linked to a designated IP address on the host machine.
Setup Recommendation
In order to maintain the stability of SENSR, it is crucial to ensure that the cluster IP remains stable.
An unreliable network connection or a dynamic IP can potentially lead to instability within SENSR.
Distributed Systems
When you are setting up a distributed system, it is recommended to use the network interfaces which are under the common network gateway as the cluster IP and to ensure that the network connection is stable and reliable. For example, if the SENSR hosts are connected to a router, it is recommended to use the router's.
Single Machine
When you are setting up a single machine system, the choice of cluster IP depends on the network configuration:
If the machine has a reliable and stable external network connection, it is preferable to assign that external IP as the cluster IP.
If the machine lacks an external network connection or if the available connection is unreliable, it is recommended to set the cluster IP as the network interface which is connected to the LiDAR.
In situations where even the LiDAR interface is not deemed trustworthy, a dummy IP can be employed as the cluster IP.
The following commands illustrate how to create a dummy network interface named
dummy0
with the IP address192.0.2.2
:sudo ip link add dummy0 type dummy
sudo ip addr add 192.0.2.2/24 dev dummy0
sudo ip link set dummy0 upNote: when the host machine is restarted, the dummy network interface (
dummy0
) will be removed from the machine. Consequently, if a dummy IP is used, it is recommended to recreate the cluster after restarting the host with making dummy ip and before restarting SENSR.