This configuration seems incorrect.
I think I read that giving my client client.transport.sniff=true would
allow the client to discover other nodes.
With true it won't connect at all, with false it doesn't appear to use the
Could anyone confirm my setup is valid or invalid.
I created an EC2 instance with this config
I then snapshotted it and created an AMI. I started up two of this AMI. I
assigned one of the two a static IP.
Using http://staticip:9200/_plugin/head/ I can see both of these nodes.
My client connects explicitly to the static
final Settings settings = ImmutableSettings.settingsBuilder()
final String endpoint = theStaticIp
final int port = 9300;
final Client client = new TransportClient(settings)
So now my client is connecting to the static ip and I can index new data. I
shutdown the node with the static ip and expected the second node thats on
to get the work. Instead my client is throwing No Node Found.
I have a couple suspicions as to whats I am doing wrong, but am not sure
what else I should do.
- Is it valid for both of these EC2 instances to have the given config?
- Is the method I am using to connect my client to the static ip ES node