influxdata / influxdb

Scalable datastore for metrics, events, and real-time analytics
https://influxdata.com
Apache License 2.0
28.84k stars 3.55k forks source link

Epic: Sync time series data to a remote InfluxDB Instance #21918

Open russorat opened 3 years ago

russorat commented 3 years ago

Target Customer / Background data / Context / Market Size

Goals

The goal of this epic is to provide a way for users to replicate data at the bucket level to one or more remote instances of InfluxDB

Acceptance Crit

Release Plan

TBD

Notes

Unanswered questions

Team

lesam commented 2 years ago

Added: Assumption(Sam): Only writes are streamed. Other data operations (e.g. deletes, backup restores) do not affect replication. This can cause data in the local bucket to be different than the remote.

williamhbaker commented 2 years ago

Most of the work for this feature is now complete. It can be tried out using the latest nightly builds on influxd and the influx CLI for managing replications/remotes.

Warning: Running the latest nightly build of influxd will apply migrations to any existing bolt/sqlite db files it is pointed at specific to replications. If you later start an "older" version of influxd (for example, the latest 2.1.1 release), it will fail to startup since these migrations don't exist in anything we have released yet. You could recover from this using the influxd downgrade command to revert the metadata dbs to the 2.0 version, although this will delete the 2.1 specific migration data...like notebooks and annotations. It probably goes without saying, but I'd strongly recommend not running the nightly with data that you don't want to lose!

Nightly influxd server builds are available here, following the general pattern of these URLs for your desired arch (there is no nightly docker image)

Nightly influx CLI builds are available at similar paths:

Most notable work in progress still:

williamhbaker commented 2 years ago

I've updated my previous post to reflect the fact that all of the in-progress work that was still to be completed is now complete.

Also, we have removed the server and CLI feature flags for remotes/replications, so those flags do not have to be turned on if you are working with the latest nightlies. You should be able to use the CLI normally and see the commands listed in the top-level help, and start the server without the replicationStreamBackend flag (you will actually get an error if you try to use this flag since it doesn't exist anymore).

tcurdt commented 2 years ago

Is there a rough ETA for this? This is exactly what I was searching for.

lesam commented 2 years ago

It is available now in the nightly release and will be in the next OSS release.