# WebServer on Same Machine As ES Instances

**URL:** <https://discuss.elastic.co/t/webserver-on-same-machine-as-es-instances/17526>\
**Category:** Elasticsearch\
**Created:** [May 15, 2014, 4:01am UTC](https://discuss.elastic.co/t/webserver-on-same-machine-as-es-instances/17526 "2014-05-15T04:01:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![webish](https://avatars.discourse-cdn.com/v4/letter/w/919ad9/32.png) [@webish](https://discuss.elastic.co/u/webish)\
**Post date:** [May 15, 2014, 4:01am UTC](https://discuss.elastic.co/t/webserver-on-same-machine-as-es-instances/17526/1 "2014-05-15T04:01:19Z")

</div>

Has anyone experimented with putting web servers (nginx) on the same  
machine as each ES node?

For APIs that require many queries and network round trips this could  
reduce network latency....

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/63ea4b36-394f-4976-b5ac-fbf5a8ad3b3d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/63ea4b36-394f-4976-b5ac-fbf5a8ad3b3d%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [May 15, 2014, 4:07am UTC](https://discuss.elastic.co/t/webserver-on-same-machine-as-es-instances/17526/2 "2014-05-15T04:07:38Z")

</div>

Or you could do the reverse and put a node on the webserver, that way you  
can limit access to the main cluster a little easier.

Regards,  
Mark Walkom

Infrastructure Engineer  
Campaign Monitor  
email: [markw@campaignmonitor.com](mailto:markw@campaignmonitor.com)  
web: [www.campaignmonitor.com](http://www.campaignmonitor.com)

On 15 May 2014 14:01, webish [gregory@yoursports.com](mailto:gregory@yoursports.com) wrote:

> Has anyone experimented with putting web servers (nginx) on the same  
> machine as each ES node?
> 
> For APIs that require many queries and network round trips this could  
> reduce network latency....
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/63ea4b36-394f-4976-b5ac-fbf5a8ad3b3d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/63ea4b36-394f-4976-b5ac-fbf5a8ad3b3d%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/63ea4b36-394f-4976-b5ac-fbf5a8ad3b3d%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/63ea4b36-394f-4976-b5ac-fbf5a8ad3b3d%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAEM624ZOEq\_iUTzDYc4JQTR1aF22r%2BscjNkBg0FWkZJ5oPm9wQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEM624ZOEq_iUTzDYc4JQTR1aF22r%2BscjNkBg0FWkZJ5oPm9wQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [May 15, 2014, 12:51pm UTC](https://discuss.elastic.co/t/webserver-on-same-machine-as-es-instances/17526/3 "2014-05-15T12:51:20Z")

</div>

Yes, I use nginx in front of Wildfly app servers that has TransportClients,  
because of middleware, not because of network latency.

Internal network (LAN) latency can be neglected when you expose service to  
the outside from your DC, the outside network (WAN) latency is much bigger.

Jörg

On Thu, May 15, 2014 at 6:01 AM, webish [gregory@yoursports.com](mailto:gregory@yoursports.com) wrote:

> Has anyone experimented with putting web servers (nginx) on the same  
> machine as each ES node?
> 
> For APIs that require many queries and network round trips this could  
> reduce network latency....
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/63ea4b36-394f-4976-b5ac-fbf5a8ad3b3d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/63ea4b36-394f-4976-b5ac-fbf5a8ad3b3d%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/63ea4b36-394f-4976-b5ac-fbf5a8ad3b3d%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/63ea4b36-394f-4976-b5ac-fbf5a8ad3b3d%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoFZxWe3oE4s%3DtL4bobEkJ24Q7PPHMnNFr\_Cr-z3bbtUqA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoFZxWe3oE4s%3DtL4bobEkJ24Q7PPHMnNFr_Cr-z3bbtUqA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 1:29am UTC](https://discuss.elastic.co/t/webserver-on-same-machine-as-es-instances/17526/4 "2017-07-06T01:29:10Z")

</div>

Closed on July 6, 2017, 1:29am UTC


