Configuring network.host and network.publish_host in dual stack environment

Need to create a elasticsearch cluster where the environment is dual stack.

From the document came to know that we can configure network.host: 0.0.0.0 to make it bind on all the available interfaces, in this case it can listen on both IPV4 and IPV6 interface.

Is there a possibility that we can configure network.publish_host to include both IPv4 and IPV6. So that other nodes can reach by using any of the IPV4/V6 address if there is any issue in reaching via either of them.

What is the best way to configure ES cluster in dual stack environment.

Thanks,
Mahudees

No. From the docs (emphasis mine):

You can specify a list of addresses for network.host and network.publish_host . You can also specify a single hostname which resolves to multiple addresses. If you do this then Elasticsearch chooses one of the addresses for its publish address. This choice uses heuristics based on IPv4/IPv6 stack preference and reachability and may change when the node restarts. You must make sure that each node is accessible at all possible publish addresses.

If a node is unreachable at its publish address then it will leave the cluster. This might happen occasionally, but as long as the cluster is designed for resilience then service will not be interrupted.

Thanks @DavidTurner, for the clarification.

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