Version Compatibility Rules - Read before proceeding
Before installing SENTIENT Edge, ensure that SENTIENT Server is installed and updated to the latest version.
Additionally, verify that the SENTIENT Edge and SENTIENT Server versions are compatible.
Compatibility rules:
SENTIENT Edge version X.Y.Z works with SENTIENT Server version X.Y.Z and the next two versions.
Example: SENTIENT Edge 3.8.0 works with SENTIENT Server 3.8.0 and two later versions (3.9.0 and 3.9.1). View the SENTIENT Server Release Notes here.
SENTIENT Edge version X.Y.Z does not work with older SENTIENT Server versions.
Example: SENTIENT Edge 3.9.1 does not support SENTIENT Server 3.8.0 or earlier versions. The SENTIENT Server must be upgraded to the latest version first.
Note: If you run an older version of SENTIENT Edge (e.g., version 3.6.0), the SENTIENT team cannot guarantee the availability or proper functioning of all features.
This guide provides step-by-step instructions for running SENTIENT Edge on Linux or Mac OS using Docker.
Prerequisites
To start running SENTIENT Professional Edition Edge, you will need an active SENTIENT Professional Edition account that supports Edge functionality.
Sign up for a SENTIENT Cloud account, which is the easiest way to get started. Throughout the rest of this tutorial, this URL will be referred to as SERVER_URL
Log in using your SENTIENT Cloud tenant credentials.
You can install the SENTIENT Professional Edition local server. For this, please refer to the SENTIENT installation guide.
The local server can be accessed via http://localhost:8080. Throughout this tutorial, we will refer to this URL as SERVER_URL. Log in with:
Username: tenant@sentient.org
Password: tenant
Edge Hardware Requirements
The hardware requirements for SENTIENT Edge are determined by the number of connected devices and the intensity of interactions with the platform interface.
To ensure optimal performance, we recommend the following:
At least 1GB of RAM (Light workload): It is suitable for minimal interactions with the platform interface, such as dashboards and device management, and fewer than 100 connected devices.
At least 4GB of RAM (Heavy workload): This configuration is suitable for intense platform interactions and 100+ devices connected to a single machine.
Deploying a New Edge Instance
To create a new Edge:
Sign in to your SENTIENT Professional Edition instance and navigate to the Edge Management > Instances section. Click the ”+” icon in the top right corner and select the “Add new edge” option.
Enter a name for the Edge you are creating. For example, “My New Edge”. If needed, update the cloud endpoint.
If the Edge runs in a Docker container, do not use “localhost” as the endpoint. Instead, use the IP address of the machine where SENTIENT Professional Edition is hosted and accessible by the Edge container. For example, http://10.7.2.143:8080.
If you are using the SENTIENT Cloud, there’s no need to change this setting — keep it as is.
Click the “Add” button to confirm the addition of the Edge instance.
Your new Edge is created and will appear at the top of the list, as entries are sorted by creation time by default.
Sign in to your SENTIENT Professional Edition instance and navigate to the Edge Management > Instances section. Click the ”+” icon in the top right corner and select the “Add new edge” option.
Enter a name for the Edge you are creating. For example, “My New Edge”. If needed, update the cloud endpoint.
If the Edge runs in a Docker container, do not use “localhost” as the endpoint. Instead, use the IP address of the machine where SENTIENT Professional Edition is hosted and accessible by the Edge container. For example, http://10.7.2.143:8080.
If you are using the SENTIENT Cloud, there’s no need to change this setting — keep it as is.
Click the “Add” button to confirm the addition of the Edge instance.
Your new Edge is created and will appear at the top of the list, as entries are sorted by creation time by default.
Docker Installation
SENTIENT supports Docker Compose V2 (Docker Desktop or Compose plugin) starting from 3.4.2 release.
We strongly recommend upgrading to and using Docker Compose V2, as Docker no longer supports docker-compose as a standalone setup.
Guided Installation Using SENTIENT Server Pre-configured Instructions
Once the Edge instance has been created, the installation instructions will be available for use.
Each Edge has preset configurations that contain important credentials, such as Edge Secret, Edge Key, etc. To access these configurations:
Click on the Edge entity to open its details.
Click the “Install & Connection Instructions” button.
Follow the instructions to install Edge and connect it to the server.
Click on the Edge entity to open its details.
Click the “Install & Connection Instructions” button.
Follow the instructions to install Edge and connect it to the server.
Manual Installation and Configuration
If for any reason you are unable to use the prepared SENTIENT Server Instructions above, please follow the steps below.
These steps will guide you through installing and configuring the Edge by yourself.
Click on Copy Edge Key and Copy Edge Secret in the edge details section.
This will copy your edge credentials to your clipboard.
Be sure to store them in a secure location, as these values will be needed in the following steps.
Step 2. Choose Queue and/or Database Services
SENTIENT Edge is able to use different messaging systems/brokers for storing the messages and communication between SENTIENT services. How to choose the right queue implementation?
In Memory queue implementation is built-in and default. It is useful for development (PoC) environments and is not suitable for production deployments or any sort of cluster deployments.
Kafka is recommended for production deployments. This queue is used on most of the SENTIENT production environments now.
Hybrid implementation combines PostgreSQL and Cassandra databases with Kafka queue service. It is recommended if you plan to manage 1M+ devices in production or handle high data ingestion rate (more than 5000 msg/sec).
Create a docker compose file for the SENTIENT Edge service:
version: '3.8'
services:
mytbedge:
restart: always
image: "sentient/tb-edge-pe:4.3.1.1EDGEPE"
ports:
- "8080:8080"
- "1883:1883"
- "5683-5688:5683-5688/udp"
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/tb-edge
EDGE_LICENSE_INSTANCE_DATA_FILE: /data/instance-edge-license.data
CLOUD_ROUTING_KEY: PUT_YOUR_EDGE_KEY_HERE # e.g. 19ea7ee8-5e6d-e642-4f32-05440a529015
CLOUD_ROUTING_SECRET: PUT_YOUR_EDGE_SECRET_HERE # e.g. bztvkvfqsye7omv9uxlp
CLOUD_RPC_HOST: PUT_YOUR_CLOUD_IP # e.g. 192.168.1.1 or sentient.cloud
CLOUD_RPC_SSL_ENABLED: 'false' # set it to 'true' if you are connecting edge to sentient.cloud
volumes:
- tb-edge-data:/data
- tb-edge-logs:/var/log/tb-edge
postgres:
restart: always
image: "postgres:16"
ports:
- "5432"
environment:
POSTGRES_DB: tb-edge
POSTGRES_PASSWORD: postgres
volumes:
- tb-edge-postgres-data:/var/lib/postgresql/data
volumes:
tb-edge-data:
name: tb-edge-data
tb-edge-logs:
name: tb-edge-logs
tb-edge-postgres-data:
name: tb-edge-postgres-data
Where:
restart: always: SENTIENT Edge automatically starts on system reboot or after a failure.
8080:8080: Connect local port 8080 to the container’s internal HTTP port 8080.
1883:1883: Connect local port 1883 to the container’s internal MQTT port 1883.
5683-5688:5683-5688/udp: Connect local UDP ports 5683–5688 to the container’s internal CoAP and LwM2M ports.
sentient/tb-edge-pe:4.3.1.1EDGEPE: The SENTIENT Edge PE Docker image.
CLOUD_ROUTING_KEY: Enter the actual Edge key.
CLOUD_ROUTING_SECRET: Enter the actual Edge secret.
CLOUD_RPC_HOST: he IP address or hostname of the machine running the SENTIENT platform.
CLOUD_RPC_SSL_ENABLED: Defines whether SSL is used for the connection between Edge and the SENTIENT server. Use true to enable SSL, or false to disable it.
Please set CLOUD_RPC_HOST with an IP address of the machine where SENTIENT Professional Edition version is running:
DO NOT use ‘localhost’ - ‘localhost’ is the ip address of the edge service in the docker container.
Use sentient.cloud if you are connecting Edge to the SENTIENT Cloud.
NOTE: sentient.cloud uses SSL protocol for edge communication. Please change CLOUD_RPC_SSL_ENABLED to true as well.
Use X.X.X.X IP address if the Edge is connected to the Cloud instance in the same network or Docker environment.
If SENTIENT Edge is set to run on the same machine where the SENTIENT Professional Edition server is operating, you need to update port configuration to prevent port collision between the SENTIENT server and SENTIENT Edge.
Ensure that the ports 18080, 11883, 15683-15688 are not used by any other application.
To update the port configuration in the docker-compose.yml file, run:
restart: always: SENTIENT Edge automatically starts on system reboot or after a failure.
8080:8080: Connect local port 8080 to the container’s internal HTTP port 8080.
1883:1883: Connect local port 1883 to the container’s internal MQTT port 1883.
5683-5688:5683-5688/udp: Connect local UDP ports 5683–5688 to the container’s internal CoAP and LwM2M ports.
sentient/tb-edge-pe:4.3.1.1EDGEPE: The SENTIENT Edge PE Docker image.
CLOUD_ROUTING_KEY: Enter the actual Edge key.
CLOUD_ROUTING_SECRET: Enter the actual Edge secret.
CLOUD_RPC_HOST: he IP address or hostname of the machine running the SENTIENT platform.
CLOUD_RPC_SSL_ENABLED: Defines whether SSL is used for the connection between Edge and the SENTIENT server. Use true to enable SSL, or false to disable it.
Please set CLOUD_RPC_HOST with an IP address of the machine where SENTIENT Professional Edition version is running:
DO NOT use ‘localhost’ - ‘localhost’ is the ip address of the edge service in the docker container.
Use sentient.cloud if you are connecting Edge to the SENTIENT Cloud.
NOTE: sentient.cloud uses SSL protocol for edge communication. Please change CLOUD_RPC_SSL_ENABLED to true as well.
Use X.X.X.X IP address if the Edge is connected to the Cloud instance in the same network or Docker environment.
If SENTIENT Edge is set to run on the same machine where the SENTIENT Professional Edition server is operating, you need to update port configuration to prevent port collision between the SENTIENT server and SENTIENT Edge.
Ensure that the ports 18080, 11883, 15683-15688 are not used by any other application.
To update the port configuration in the docker-compose.yml file, run:
restart: always: SENTIENT Edge automatically starts on system reboot or after a failure.
8080:8080: Connect local port 8080 to the container’s internal HTTP port 8080.
1883:1883: Connect local port 1883 to the container’s internal MQTT port 1883.
5683-5688:5683-5688/udp: Connect local UDP ports 5683–5688 to the container’s internal CoAP and LwM2M ports.
sentient/tb-edge-pe:4.3.1.1EDGEPE: The SENTIENT Edge PE Docker image.
CLOUD_ROUTING_KEY: Enter the actual Edge key.
CLOUD_ROUTING_SECRET: Enter the actual Edge secret.
CLOUD_RPC_HOST: he IP address or hostname of the machine running the SENTIENT platform.
CLOUD_RPC_SSL_ENABLED: Defines whether SSL is used for the connection between Edge and the SENTIENT server. Use true to enable SSL, or false to disable it.
Please set CLOUD_RPC_HOST with an IP address of the machine where SENTIENT Professional Edition version is running:
DO NOT use ‘localhost’ - ‘localhost’ is the ip address of the edge service in the docker container.
Use sentient.cloud if you are connecting Edge to the SENTIENT Cloud.
NOTE: sentient.cloud uses SSL protocol for edge communication. Please change CLOUD_RPC_SSL_ENABLED to true as well.
Use X.X.X.X IP address if the Edge is connected to the Cloud instance in the same network or Docker environment.
If SENTIENT Edge is set to run on the same machine where the SENTIENT Professional Edition server is operating, you need to update port configuration to prevent port collision between the SENTIENT server and SENTIENT Edge.
Ensure that the ports 18080, 11883, 15683-15688 are not used by any other application.
To update the port configuration in the docker-compose.yml file, run:
Our website uses cookies to ensure site security and optimize your experience on our website. By continuing to browse this site, you agree to the use of these cookies, in accordance with our Cookie Policy. For details on managing cookies, please adjust your browser settings.