Yes i am using transport client, i can add the all servers' address in transport client instantiation. But how do ES server will know each other ?? And are you telling me that i don't need to use Nginx as load balancer, ES transport client will automatically do it for me ??
On Monday, May 4, 2015 at 12:35:10 PM UTC+6, Jason Wee wrote: > > 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 > <javascript:>> 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 elasticsearc...@googlegroups.com <javascript:>. >> 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/c6b6562c-c01d-449c-a9e3-705d4ffadfd0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.