How is defined "transport_address"?

Hi,

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.

Thanks

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.

Thanks for your answer.

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 ?

You cannot define the strategy, that’s inside OpenSearch. You can configure multiple addresses for publich_host, but only one takes effect.

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.