etishor / Metrics.NET

The Metrics.NET library provides a way of instrumenting applications with custom metrics (timers, histograms, counters etc) that can be reported in various ways and can provide insights on what is happening inside a running application.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting a spurious EnableSingleNode error

jan-grant opened this issue · comments

We're generating a config automatically. In a simple single-node case, influxdb is failing to start, complaining that EnableSingleNode must be enabled in order to proceed.

It transpires the problem was that the precomputed set of influxdb nodes was being inserted into the config file (it's an ansible template we're using) and triggering this condition to be false (from store.go):

    config.EnableSingleNode = (len(s.peers) == 0)

Although we've fixed the template, the condition could, perhaps, be revised to:

    config.EnableSingleNode = (len(s.peers) <= 1)

(... or have I misuderstood the use of the peers setting - should the current node be excluded from the configuration?)

Cheers

I think you probably what to post this on the influxdb issue tracker, not on the metrics repo.

Hnng. You're right. Thanks.