Setting Up On Premise Sync Agent

Updated: February 19, 2024

Introduction

The sync agent lets Resplendent customers connect their internal databases to Resplendent without having to expose their databases to the internet. The sync agent is installed in the same local network as the database and can run on the same server as the database or on another machine in the network. The sync agent is installed via Docker, so Docker will need to be installed on your target machine before installing the sync agent.

Prerequisites

  • Docker installed
  • Tutorial on installing Docker here: https://docs.docker.com/engine/install/
  • If the machine you’re installing the sync agent is an Ubuntu machine, you can install Docker by running:
    sudo snap install docker
  • At least 2 GB of RAM
  • The sync agent needs to be installed on a machine that has network access to the database
  • A read only database user that can login via a password

Step-by-Step

Stage 1: Start the Sync Agent

1. Download the sync agent Docker configuration by running the following command on the server that you’re going to install the sync agent, :

curl -o docker-compose.yaml https://gist.githubusercontent.com/malachibazar/9d765313de5f5aee5d62e8a7fc205e7b/raw/7c14a7356cfb934f201389271676be8903fc2788/docker-compose.yaml

This will download the docker compose configuration.

2. Start the sync agent by running the following command in the same directory:

docker compose up -d

Docker will download the sync agent and setup the service.

3. After the sync agent has started, navigate to http://<server-ip>:8050. You should see a screen similar to this:

Stage 2: Configure the Sync Agent

1. Navigate to your Resplendent account at: https://app.resplendentdata.com

2. Click “Data Settings”

3. Click “Sync Agents

4. Click “Add”

5. Name the Sync Agent

6. Click “Save” and you’ll be provided with an Agent UUID and Agent Key.

7. Copy and paste the Agent UUID and Agent Key into the sync agent dashboard.

8. Click “Set Creds” and wait about 10 seconds for the Sync Agent to connect.

Connecting a Database

1. In your Resplendent Data account and click “Integrations”

2. Select the on-premise database you want to connect to and click “Connect”

3. Fill out the connection details

4. Click the switch at the bottom of the page to enable on-premise connections

5. Select your Sync Agent and click “Save and Test”

Summary

That’s it! Your Resplendent Data account is now connected to your custom data source and ready for use in widgets and dashboards for all your data magic needs.