InfluxDB relay High Availability

influxdb

#1

Hi! I am working on a simple InfluxDB High Availability setup using Relay. Writing and querying data works fine however, changing database configuration became very inconvenient. Essentially, now I have to execute each command (e.g. CREATE USER …) twice - once for each InfluxDB instance.

In order to solve this, I need to make sure that once any configuration changed on one node, it is reflected on another one. From what I’ve learned from the doc, I understand that InfluxDB stores data and meta configuration separately in (“data” and “meta” directories respectively). My idea was to add some NFS shared by both nodes and store meta there, this way no matter on which instance configuration has changed, it will be visible from another instance since they have a common “meta” directory.

The questions are: Does it really work this way? Is it safe to use it like this?

Thanks in advance!