# Wordpress and Elasticsearch

**URL:** <https://discuss.elastic.co/t/wordpress-and-elasticsearch/75374>\
**Category:** Elasticsearch\
**Created:** [February 16, 2017, 4:48pm UTC](https://discuss.elastic.co/t/wordpress-and-elasticsearch/75374 "2017-02-16T16:48:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![michbsd](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@michbsd](https://discuss.elastic.co/u/michbsd)\
**Post date:** [February 16, 2017, 4:48pm UTC](https://discuss.elastic.co/t/wordpress-and-elasticsearch/75374/1 "2017-02-16T16:48:25Z")

</div>

Hi,

I have a small ES cluster (3 nodes).  
I am playing around with the elasticpress plugin for Wordpress.

However, a fixed IP is used to connect to the ES cluster. (e.g. my first cluster node)  
If the first cluster node is down, the plugin will no longer work.

What is the best way to get around this problem?

- DNS round robin for the cluster nodes?
- Varnish / HAproxy to load balance between cluster nodes, and check health ? (the haproxy/varnish will remain single point of failure)
- Some sort of client transport on my webserver that will detect cluster nodes / health and connect accordingly? (does this exist?)
- something else?

Many thanks,

Mike

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 16, 2017, 9:50pm UTC](https://discuss.elastic.co/t/wordpress-and-elasticsearch/75374/2 "2017-02-16T21:50:40Z")

</div>

> [@michbsd](#):
>
> DNS round robin for the cluster nodes?  
> Varnish / HAproxy to load balance between cluster nodes, and check health ? (the haproxy/varnish will remain single point of failure)  
> Some sort of client transport on my webserver that will detect cluster nodes / health and connect accordingly? (does this exist?)

Any of those are valid.

---

<div class="post-metadata">

**Author:** ![michbsd](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@michbsd](https://discuss.elastic.co/u/michbsd)\
**Post date:** [February 17, 2017, 8:21am UTC](https://discuss.elastic.co/t/wordpress-and-elasticsearch/75374/3 "2017-02-17T08:21:24Z")

</div>

Right. Thanks for the answer.

Is there a preferred method? I mean, Varnish/haproxy in front of the nodes, would allow me do manage health as well, this would obviously not work with DNS round-robin.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 17, 2017, 8:58am UTC](https://discuss.elastic.co/t/wordpress-and-elasticsearch/75374/4 "2017-02-17T08:58:03Z")

</div>

It's really whatever your preference is.

I know that's a non-answer, but we don't have recommendations here, just that there are options 🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 17, 2017, 8:58am UTC](https://discuss.elastic.co/t/wordpress-and-elasticsearch/75374/5 "2017-03-17T08:58:37Z")

</div>

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