Replicate data to a remote InfluxDB instance

  1. Download and install the influx CLI.

  2. In your local InfluxDB OSS instance, use the command to create a remote connection to replicate data to. Provide the following:

    • Remote InfluxDB instance URL
    • Remote InfluxDB API token (API token must have write access to the target bucket)
    • Remote InfluxDB organization ID
  3. In your local InfluxDB OSS instance, use the command to create a replication stream. Provide the following:

    • Replication stream name
    • Remote connection ID
    • Remote bucket ID to replicate writes to

Once a replication stream is created, InfluxDB OSS will replicate all writes to the specified bucket to the remote InfluxDB bucket. Use the command to view information such as the current queue size, max queue size, and latest status code.

Important things to note

  • Only write operations are replicated. Other data operations (like deletes or restores) are not replicated.
  • In InfluxDB OSS, large write request bodies are written entirely. When replicated, write requests are sent to the remote bucket in batches. The maximum batch size is 500 kB (typically between 250 to 500 lines of line protocol). This may result in scenarios where some batches succeed and others fail.

Replicate downsampled or processed data

  1. Create a bucket in your InfluxDB OSS instance to store downsampled or processed data in.

  2. Create an InfluxDB task that downsamples or processes data and stores it in the new bucket. For example: