Deploying a Standalone Roadrunner
  • 06 Feb 2024
  • 4 Minutes to read
  • Contributors
  • Dark
    Light
  • PDF

Deploying a Standalone Roadrunner

  • Dark
    Light
  • PDF

Article Summary

To set up a Roadrunner instance run without connecting to a Skylight performance analytics system, configure Roadrunner to send its metrics to a customer-provided SFTP server, rather than into the Analytics ingestion pipeline.


Note: Starting with Release 23.08, the Standalone Roadrunner bundle is being updated to be more in line with the bundle created for the connected Roadrunner use case.
The instructions following immediately below apply to the new bundle format. For instructions related to the Standalone Roadrunner in version 23.04 and earlier, refer to Release 23.04 and Earlier.

Download a Standalone Roadrunner Bundle

Standalone Roadrunner bundles can be downloaded from: https://software.accedian.io/?prefix=roadrunner

Extract The Bundle

Copy the Roadrunner tarball to the location from which you will be running your Roadrunner, and uncompress it with the following command:

> tar -xzvf adh-roadrunner-sa-{VER}.tar.gz

Prepare Your Configuration

Environment Variables

The following environment variables can be overridden if needed by changing their default values in the .env file included in the Roadrunner bundle. In most cases, there will be no need to change the defaults, however, it might be necessary to do so if, for example, you are attempting to run multiple standalone Roadrunner instances on the same machine and need to avoid container name and port conflicts.

VariableDescriptionDefault
CONNECTOR_ZONEIdentifier for this Roadrunner instance. This name is incorporated into the Docker container name when Roadrunner is started.standalone
DATA_GTWY_PORTPort that the Metrics Gateway will listen on for web socket connections.55888
DATA_GTWY_TLSWhether or not to enable TLS on the Metrics Gateway web socket server.true

Roadrunner Configuration File

The adh-roadrunner.yml configuration file includes some parameters related to the SFTP server that must be set initially:

sftpserver:
  host: {_SFTP_SERVER_HOST_}
  port: {_SFTP_SERVER_PORT_}
  user: {_SFTP_SERVER_USER_}
  keyfile: "ssh_host_sftp"
  filepath: "/upload"
  compress: true

Set the host, port, and user parameters to the appropriate values for your SFTP server.

The following parameters also apply to the SFTP server but do not need to be set up unless you need to change the defaults:

  • keyfile - If you are using RSA key authentication with the SFTP server and want to use a different filename for your key file, change this value.
  • filepath - This is the path on the SFTP server where Roadrunner will write the .csv files to. You can change this default if you need or prefer a different location on the SFTP server.
  • compress - determines whether or not gzip compression will be applied to the files when they are written to the SFTP server.

SFTP Server Authentication

Before it can connect successfully to the SFTP server, Roadrunner must be configured with the appropriate authentication method.

Regardless of which method of authentication you will use between Roadrunner and the SFTP server, you must configure Roadrunner to use the appropriate username for its connection.

This is set in the adh-roadrunner.yml file, by setting the sftpserver.user parameter to match the user name set up on the SFTP server.

Once done, the remainder of the setup depends on the authentication method to be used:

RSA Key

If you are using an RSA key to authenticate with the SFTP server, the key must be copied to the expected location so that Roadrunner can find it on startup.

By default, this is the .rr_ssh directory in the Roadrunner working directory (that is, the directory where you uncompressed the Roadrunner tarball, and from where you will run Roadrunner).

Copy your key to this location as follows:

> mkdir -m 755 ./.rr_ssh
> cp <keyfile> ./.rr_ssh/ssh_host_sftp
> chmod 700 ./.rr_ssh/ssh_host_sftp

Username Password

If you are using a username/password combination for authenticating with the SFTP server, there is no additional configuration to be prepared.

When Roadrunner is started for the first time, there will be a user prompt to enter the password to use for accessing the SFTP server. Once the password is entered, Roadrunner will continue its start-up and will attempt to connect to the server with the supplied username and password.

Subsequent restarts of Roadrunner will not require a password to be entered manually.

Starting Roadrunner

To start your Roadrunner instance, the process is the same as for the connected Roadrunner - execute the [run.sh](http://run.sh) script:

> run.sh

Release 23.04 And Earlier

To make deployment more straightforward, a type of Roadrunner archive has been created, which bundles together the Roadrunner docker image, as well as a docker image for a sidecar service called Postoffice that acts as a stand in for the usual Analytics entry point, and all required configuration files, docker compose files, and scripts.

Documentation related to the Roadrunner bundle can be found in the README.md file for the bundler project.

Download a Standalone Roadrunner Bundle

Stand alone Roadrunner bundles can be downloaded from: https://software.accedian.io/?prefix=roadrunner

Copy the Bundle

Copy your adh-connector-bundle.tar.gz file to the location you will be running your Roadrunner/Shipper from.

Extract the Bundle

Uncompress the tarball with the following command:

> tar -xzvf adh-roadrunner-bundle.tar.gz

Update the Configuration

Open the adh-postoffice-csv.ym file and replace the following placeholder values:

  • _SFTP_SERVER_HOST_OR_IP_ - Replace with the hostname or IP address of the SFTP server you want your metrics shipped to.
  • _SFTP_SERVER_PORT_ - Replace with the port which we should be connecting to the SFTP server on.
  • _SFTP_USERNAME_ - Replace with the username we should use to log in to the SFTP server

If authenticating via username/password:

  • uncomment #password: "password" and replace “password” with the password to use for logging into the SFTP server.

If authenticating via public/private key pair:

  • uncomment #keyfile: "/.ssh/id_rsa" and replace “/.ssh/id_rsa” with the filepath to the key file to use for authentication

Launch the Services

Start both Roadrunner and its side car shipper service using the provided run script:

> ./run.sh

© 2024 Accedian Networks Inc. All rights reserved. Accedian®, Accedian Networks®,  the Accedian logo™, Skylight™, Skylight Interceptor™ and per-packet intel™, are trademarks or registered trademarks of Accedian Networks Inc. To view a list of Accedian trademarks visit: http://accedian.com/legal/trademarks/. 


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.