markmcdowell/NLog.Targets.ElasticSearch

Multiple Elasticsearch Target Urls

hmlmartins opened this issue · 2 comments

Hello,

This more of a question than an actual issue, but I could not find anywhere else to present this doubt I am having.

Given the possibility to have multiple elasticsearch urls in nlog config, how are these managed? It will always send requests to both targets? will it detect if the node is available, and forward to the first available node? will it balance between node urls?

Thank you,

Hi, if you specify multiple urls it'll use a Static Connection Pool that will ping the nodes to make sure they're healthy. It can issue requests against any healthy node.

Thank you for your reply. Should be enough to get me going and to understand how to "balance" connections to our cluster.