bring-your-own-cloud
Rrq

RRQ (RunReveal Queue) Configuration Guide

RRQ is a data pipeline tool that ingests data from various sources and processes it through a unified pipeline. This documentation covers how to configure and run RRQ.

Table of Contents

Basic Configuration

RRQ uses a JSON configuration file. Here's a basic example:

{
  "chdsn": "clickhouse://user:password@localhost:9000/dbname",
  "pprof": "localhost:6060",
  "backfillProcessor": false,
  "parallelism": 4,
  "watchdogTimeout": 300,
  "common": {
    "baseurl": "https://your-domain.com",
    "pgdsn": "postgres://user:password@localhost/dbname?sslmode=disable"
  },
  "sources": [
    {
      "type": "cloudtrail",
      "sqsQueue": "your_cloudtrail_queue"
    }
  ]
}

Common Configuration Options

OptionTypeDescriptionRequired
chdsnstringClickHouse connection stringYes
pprofstringAddress for pprof debugging serverNo
backfillProcessorbooleanEnable backfill processingNo
parallelismintegerNumber of parallel workersNo
watchdogTimeoutintegerTimeout in seconds for watchdogNo
commonobjectCommon configuration shared across sourcesYes

Common Configuration Object

OptionTypeDescriptionRequired
baseurlstringBase URL for the applicationYes
pgdsnstringPostgreSQL connection stringYes

Running RRQ

RRQ can be run using the following command:

rrq run --config config.json

Command Line Arguments

FlagDescriptionDefault
--configPath to configuration fileconfig.json

Environment Variables

Configuration values can reference environment variables by prefixing the value with $. For example:

{
  "common": {
    "pgdsn": "$POSTGRES_DSN"
  }
}

Next Steps

  • See Source Types for detailed configuration of each source type
  • Check our troubleshooting guide for common issues
  • Refer to the monitoring documentation for operational best practices