influxdata / influxdb-relay

Service to replicate InfluxDB data for high availability
MIT License
855 stars 350 forks source link

how to do query in relay? #11

Closed zhiwzhao closed 8 years ago

zhiwzhao commented 8 years ago

any body use query in relay? i setup two relay, relay1[http:9096] relay2[http:9096] when i write point, everything works fine, but when i query, seems with port 9096 doesnot work? so how to query in the load balance?

thanks Vita

shanab commented 8 years ago

I don't think relay is supposed to be used to do queries other than write queries. If you take a look at the diagram in the readme, you can see that /query goes right to the InfluxDB box and not the relay box.

gunnaraasen commented 8 years ago

Yup, @shanab is correct. Relay is only meant to be used on the write path. The load balancer should send queries directly to the InfluxDB instances.

Relay may support some query handling in the future, but no work is planned at the moment.

zhiwzhao commented 8 years ago

@shanab @gunnaraasen you are may right. now i am looking for a whole solution with high availability. currently, there is only influxdb-relay which implement write. how to build the load balancer? is there any guidance?

gunnaraasen commented 8 years ago

@zhiwzhao I opened up a new issue to track docs around setting up a load balancer for Relay. See https://github.com/influxdata/influxdb-relay/issues/14