JMeter-InfluxDB-Writer icon indicating copy to clipboard operation
JMeter-InfluxDB-Writer copied to clipboard

Writing to InfluxDB through influx-relay

Open Dmitry1987 opened this issue 7 years ago • 2 comments

Hi, I was using the plugin to write into single influxdb instance and it works perfect, we not created HA influx setup with 2 nodes, and used this influx-relay proxy module which writes simultaneously to several databases and allows caching. It receives writes on port 9096 and writes to 8086 on influx.

Trying to use relay endpoint of :9096 fails in jmeter with

Uncaught Exception java.lang.IllegalStateException: Failed calling setupTest. See log file for details.

and works only when 8086 direct endpoint of influxdb specified. (I thought the issue is port number, and set localhost:8086 iptables forwarding to "relay:9096" so jmeter setting was "localhost" and "8086", but it didn't help, so i guess it's something about endpoint protocol of relay, that it allows only /write and not /query commands?)

I want to ask if it's something that can be fixed\changed in the plugin to make it work? (I can try to submit a PR if you point me in right direction) Thanks a lot!

Dmitry1987 avatar Jul 09 '17 11:07 Dmitry1987

I keep seeing that error as well, but I'm not using influx-relay.

Edit: Fixed the error on my end by making sure influxdb was actually running. Other colleagues were playing around with it and I didn't notice it wasn't running.

shanep2300 avatar Aug 17 '17 11:08 shanep2300

For now I separated our main influx cluster, that works through influx-relay, from the instance into which i write from Jmeter. Thanks for sharing @shanep2300 :+1:

Dmitry1987 avatar Aug 17 '17 18:08 Dmitry1987