How to use multiple IP address with “publish_host” (for network, transport, http…) ?
Even when I configure an array with multiple IP, the “transport_address” is configure with the first IP on the array, and my other node never try the other IP, so I don’t understand what is the purpose of publish_host in the configuration.
The publish_host of a node is used to make clients or other nodes can contact the node, and each node has only one publish_host, if you specifies multiple addresses for it, OpenSearch will choose one of them as the publish host, once node restarts, the publish host of that node may change because of the choosing strategy.
So, as far as I understand, it is not possible to have multiple IP in publish_host. But, I really don’t understand why we can give an array in the configuration for this
You said
the publish host of that node may change because of the choosing strategy.
What do you mean by strategy ? Where is this strategy defined ?
In OpenSearch, publish_host defines the IP address nodes use for communication and only supports a single IP. To use multiple IPs, configure network interfaces appropriately. The transport_address will use the first IP specified, and additional nodes won’t try other IPs.