cloudfoundry/cf-release — pull request #364 by wdneto (2014-04-23 02:55:08+00:00)
Title: nats_stream_forwarder

Following on from the use of gnatsd, instead of nats, because the stream forwarder is deployed together with nats, we started getting duplicate messages. Both forwarders were connecting to the same nats instance which didn't make sense for the purposes of troubleshooting.

This makes the stream forwarder connect to itself, which helps being able to identify a disagreeing nats cluster.

I'm not sure, however, how much value is there in connecting to each member of the nats cluster, so its possible that we should instead move the stream_forwarder to a separate job, connecting to one of the nats.machines addresses (and falling back to another in case it goes away).