motleyagency / influxdb-incremental-restore

InfluxDB incremental restore script
MIT License
14 stars 0 forks source link

Shard restoration is painfully slow #10

Open egeexyz opened 6 years ago

egeexyz commented 6 years ago

I was looking for a solution to keep two InfluxDB instances in sync when I found this repo. I tried restoring a backup from our Influx01 to Influx02 running on a t2.medium and it took 15 minutes for a modestly sized dataset.

Also, the merge attempt failed several times before completing.

Any ideas on what is causing this issue? Is merging the data that resource intensive?

petetnt commented 6 years ago

Hi @egee-irl,

yep, we are suffering from the same issue. The merging is resource intensive AND InfluxDB (endpoint and the db) chokes rather easily when doing the INSERT INTO clause.

Some things you could try:

There's also more insights on the InfluxDB issue from another user: https://github.com/influxdata/influxdb/issues/9593#issuecomment-416812425