Open kshcherban opened 7 years ago
Getting the same error with a TICK stack in Kubernetes (two InfluxDB + Relay pairs). Everything was working fine until I restarted the Kapacitor Pod.
ts=2018-05-24T14:05:53.535Z lvl=error msg="encountered error" service=run err="open server: open service *influxdb.Service: failed to link subscription on startup: creating sub kapacitor-188228cb-aa37-425d-9042-8ea82a10d816 for db \"_internal\" and rp \"monitor\": subscription already exists"
run: open server: open service *influxdb.Service: failed to link subscription on startup: creating sub kapacitor-188228cb-aa37-425d-9042-8ea82a10d816 for db "_internal" and rp "monitor": subscription already exists
Relates to issue #679. I have following configuration: all services run in AWS, 2 influxdb servers, kapacitor runs in a container ECS and had following env variables:
KAPACITOR_INFLUXDB_0_URLS_0=http://influx-server1:8086
,KAPACITOR_INFLUXDB_0_URLS_1=http://influx-server2:8086
. When one of the servers dies kapacitor stops sending alerts. Here's the error:Probably it connects to the first server only and ignores the second. Not sure how container reads configuration cause i didn't find any documentation on environment variables interpretation.
So i switched influxdb to be behind ALB and configured
KAPACITOR_INFLUXDB_0_URLS_0
to ALB dns name, but kapacitor refused to start.Please advise if that's an issue with my configuration or kapacitor can't work with load balanced influxdb or that's kapacitor's bug.