Howdy! I created an AMQP river to feed in log events. It successfully
establishes a connection, and all works well... until I restart my
node.
When that happens, the river stays attached to the old node name,
rather than being started up anew. Thus, I end in a situation like the
following:
$ curl http://127.0.0.1:9200/_river/logstash_events/_status?pretty=true
{
"_index" : "_river",
"_type" : "logstash_events",
"_id" : "_status",
"_version" : 5, "_source" : {"ok":true,"node":
{"id":"mN0roKFeTOWNUVpq4mQZqg","name":"Captain
Fate","transport_address":"inet[/10.0.2.15:9300]"}}
}
$ curl http://127.0.0.1:9200/_cluster/state?pretty=true
...
"nodes" : {
"tklLqDDSRseHvn9Eq2V3Zw" : {
"name" : "Potts, Virginia "Pepper"",
"transport_address" : "inet[/10.0.2.15:9300]",
"attributes" : {
}
}
...
...notably, the river is still associated with Captain Fate, despite
Captain Fate having passed away in favor of Virginia "Pepper" Pots.
I can get things unstuck by deleting and recreating the river whenever
the condition occurs, but that's a fair sight less than graceful. Is
there a better approach?
Thanks!