Network Interfaces elasticsearch

Introduction

when configuring elasticsearch, I had a problem with binding listening interfaces. somehow the documentation does not provide how to configure several network interfaces ( network def and bind def )

description of the problem

I intend to establish network.bind_hosthow _eth1:ipv4_and_local_

even when trying to install bind_hostonly as an _local_  elastic search port 9200 only eth1 is still available (of course, I restarted the server)

solutions

I tested the firewall configuration by setting up a netcat server and it works fine for this port

, therefore, this leads to two questions:

  • how to set up multiple nics? (what is the designation?)
  • Do I need to change network.publish_host?!

.

  • ?

:

network.bind_host:    _eth1:ipv4_
network.publish_host: _eth1:ipv4_
network.host:         _eth1:ipv4_

:

network.bind_host:    _local_
network.publish_host: _eth1:ipv4_
network.host:         _local_

PS: afaik publish_host

+4
1
  • YAML :

    network.bind_host:
      - _local_
      - _en0:ipv4_
    
  • , publish_host _eth1:ipv4_. publish_host , elasticsearch bind_host.


, :

"bind_host" - , Elasticsearch node . , "" . "", . , . 0.0.0.0 " ". , "bind_host" .

"publish_host" . , node. "publish_host" , , node. "", "Publish_host".

"bind_host" "publish_host" , .

+4

Source: https://habr.com/ru/post/1584872/


All Articles