If you are using java transport client in elasticsearch, you just add one of the elasticsearch node with setting sniff to on. The the transport client should have all the information it needed. When the transport client index, iirc, it is in round robin fashion. The es cluster node is intelligent enough to replicate the write to the other es nodes.
hth jason On Mon, May 4, 2015 at 2:12 PM, Shohedul Hasan <sha...@qianalysis.com> wrote: > Hi, > I have installed ES in one server. I want to create 3-4 servers for my ES > cluster. But when i send request in which server i should send from my > java code and how? I have read once, putting one user's data in one primary > shard helps to improve performance. I have also read that using Nginx as > load balancer also improve performance. Now my question is, how can i put > these two things together? Also how one ES server knows about other ES > servers ? Finally can you give me some useful links by which i can try to > scale ES in multiple server. > > -- > 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+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/345f86bd-bf6d-4f10-9ef3-7f429b0b17f5%40googlegroups.com > <https://groups.google.com/d/msgid/elasticsearch/345f86bd-bf6d-4f10-9ef3-7f429b0b17f5%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAHO4itw1iP9QHX%2BYxgAJEf2mQ0%2Bgu6-myX6g-EbmEwDUc2VjEg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.