Using HAProxy in front of ES cluster?

Hi,

When using an Elasticsearch cluster, I understand that I can set the addresses of all the cluster nodes on my client application side.

But:

  • what occurs if I define only one node address on application side?
  • is there any benefit or drawback to put a single HAProxy server (with a single address), or a small active/active HAProxy cluster, between the ES cluster and the application to simplify application(s) configuration and future cluster evolutions?

Best regards,
Thierry

Hi @tflorac Just a couple thoughts... stuff you probably know...

You can get a hot node... also if you lose that node / or connectivity then app stops working

Benefit is to distribute the inbound request and abstract scaling the cluster or any other cluster... this is a pretty common option / pattern

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.