Convoy Bridge

Convoy Bridge Integration
You're viewing a development version of router, the latest released version is 1.24.0
Go to the latest released version

The convoy-bridge is an optional integration service, pre-installed alongside the CDN Director which provides two-way communication between the CDN Director and a separate Convoy installation.

The convoy-bridge is designed to allow the Convoy account metadata to be available from within the CDN Director for such use-cases as inserting the account specific prefixes in the redirect URL and validating per-account internal security tokens. The service works by periodically polling the Convoy server for changes to the configuration, and when detected, the relevant configuration information is pushed to the CDN Director.

In addition, the convoy-bridge has the ability to integrate the CDN Director with the Convoy analytics service, such that client sessions started by the CDN Director are properly collected by Convoy, and are available in the dashboards.

Configuration

The convoy-bridge service is configured using confcli on the CDN Director host. All configuration for the convoy-bridge exists under the path integration.convoy.bridge.

{
  "logLevel": "info",
  "accounts": {
    "enabled": true,
    "dbUrl": "mysql://convoy:eith7jee@convoy:3306",
    "dbPollInterval": 60
  },
  "analytics": {
    "enabled": true,
    "brokers": ["broker1:9092", "broker2:9092"],
    "batchInterval": 10,
    "maxBatchSize": 500
  },
  "otherRouters": [
    {
      "url": "https://router2:5001",
      "apiKey": "key1",
      "validateCerts": true
    }
  ]
}

In the above configuration block, there are three main sections. The accounts section enables fetching account metadata from Convoy towards the CDN Director. The analytics section controls the integration between the CDN Director and the Convoy analytics service. The otherRouters section is used to synchronize additional CDN Director instances. The local CDN Director instance will always be implicitly included. Additional CDN Directors listed in this section will be handled by this instance of the convoy-bridge service.

Logging

The logs are available in the system journal and can be viewed using:

journalctl -u acd-convoy-bridge