influxdb-relay icon indicating copy to clipboard operation
influxdb-relay copied to clipboard

data inconsistency

Open tessus opened this issue 6 years ago • 4 comments

I was looking at the architecture and I'm a bit puzzled by the fact that data inconsistency can occur and I'm wondering how I'm supposed to fix those.

Here's an example:

  • client writes to relay
  • relay writes to InfluxDB A and InfluxDB B
  • InfluxDB A write is successful
  • InfluxDB B write is not successful
  • client got success message, because the write to A was first

So now I have 2 databases with different data. Although A has all the correct and complete data. Now imagine the same process as above again, but B gets the successful write and the client also gets the success message, because the write to B was first (and successful). In this case now both databases have incorrect and incomplete data.

Or am I missing something here?

tessus avatar Oct 25 '18 20:10 tessus

@tessus You're right. I've noticed the same. Do you know of any alternatives?

kashifmin avatar May 09 '19 09:05 kashifmin

Nope, but I guess that's the reason why they are selling the influxdb-cluster. They don't even want to solve this in the free relay code....

tessus avatar May 09 '19 21:05 tessus

Please take a look on https://github.com/veepee-moc/influxdb-relay.

We tried to implement some useful features without conflicting with the paid version in InfluxDB (which is really great).

rockyluke avatar May 15 '19 08:05 rockyluke

That's a lot of really interesting work @rockyluke, was there ever a PR to upstream it?

jhg03a avatar May 15 '19 15:05 jhg03a