2. Start an edge node

Typically, an FogFlow edge node needs to deploy a Worker and an IoT broker. The Edge IoT Broker at the edge node can establish the data flows between all task instances launched on the same edge node. However, this Edge IoT Broker is optional, especially when the edge node is a very constrained device that can only support a few tasks without any data dependency.

Here are the steps to start an FogFlow edge node:

2.1. Install Docker Engine

To install Docker CE, please refer to |install_docker|, required version 18.03.1-ce, please also allow your user to execute the Docker Command without Sudo


Docker engine must be installed on each edge node, because all task instances in FogFlow will be launched within a docker container.

2.2. Download the deployment script

#download the deployment scripts
wget https://raw.githubusercontent.com/smartfog/fogflow/master/docker/edge/start.sh
wget https://raw.githubusercontent.com/smartfog/fogflow/master/docker/edge/stop.sh

#make them executable
chmod +x start.sh  stop.sh

2.3. Download the default configuration file

#download the configuration file
wget https://raw.githubusercontent.com/smartfog/fogflow/master/docker/edge/config.json

2.4. Change the configuration file accordingly

You can use the default setting for a simple test, but you need to change the following addresses according to your own environment:

  • coreservice_ip: please refer to the configuration of the cloud part. This is the accessible address of your FogFlow core services running in the cloud node;
  • external_hostip: this is the external IP address, accessible for the cloud broker. It is useful when your edge node is behind NAT;
  • internal_hostip is the IP of your default docker bridge, which is the “docker0” network interface on your host.
//you can see the following part in the default configuration file
    "coreservice_ip": "",
    "external_hostip": "",
    "internal_hostip": "",

2.5. Start both Edge IoT Broker and FogFlow Worker


if the edge node is ARM-basd, please attach arm as the command parameter

#start both components in the same script

# if the edge node is ARM-basd, please attach arm as the command parameter
#./start.sh  arm

2.6. Stop both Edge IoT Broker and FogFlow Worker

#stop both components in the same script