network.asciidoc 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. [[modules-network]]
  2. == Network Settings
  3. There are several modules within a Node that use network based
  4. configuration, for example, the
  5. <<modules-transport,transport>> and
  6. <<modules-http,http>> modules. Node level
  7. network settings allows to set common settings that will be shared among
  8. all network based modules (unless explicitly overridden in each module).
  9. The `network.bind_host` setting allows to control the host different network
  10. components will bind on. By default, the bind host will be `_local_`
  11. (loopback addresses such as `127.0.0.1`, `::1`).
  12. The `network.publish_host` setting allows to control the host the node will
  13. publish itself within the cluster so other nodes will be able to connect to it.
  14. Currently an elasticsearch node may be bound to multiple addresses, but only
  15. publishes one. If not specified, this defaults to the "best" address from
  16. `network.bind_host`. By default, IPv4 addresses are preferred to IPv6, and
  17. ordinary addresses are preferred to site-local or link-local addresses.
  18. The `network.host` setting is a simple setting to automatically set both
  19. `network.bind_host` and `network.publish_host` to the same host value.
  20. Both settings allows to be configured with either explicit host address
  21. or host name. The settings also accept logical setting values explained
  22. in the following table:
  23. [cols="<,<",options="header",]
  24. |=======================================================================
  25. |Logical Host Setting Value |Description
  26. |`_local_` |Will be resolved to loopback addresses
  27. |`_local:ipv4_` |Will be resolved to loopback IPv4 addresses
  28. |`_local:ipv6_` |Will be resolved to loopback IPv6 addresses
  29. |`_non_loopback_` |Addresses of the first non loopback interface
  30. |`_non_loopback:ipv4_` |IPv4 addresses of the first non loopback interface
  31. |`_non_loopback:ipv6_` |IPv6 addresses of the first non loopback interface
  32. |`_[networkInterface]_` |Resolves to the addresses of the provided
  33. network interface. For example `_en0_`.
  34. |`_[networkInterface]:ipv4_` |Resolves to the ipv4 addresses of the
  35. provided network interface. For example `_en0:ipv4_`.
  36. |`_[networkInterface]:ipv6_` |Resolves to the ipv6 addresses of the
  37. provided network interface. For example `_en0:ipv6_`.
  38. |=======================================================================
  39. When the `cloud-aws` plugin is installed, the following are also allowed
  40. as valid network host settings:
  41. [cols="<,<",options="header",]
  42. |==================================================================
  43. |EC2 Host Value |Description
  44. |`_ec2:privateIpv4_` |The private IP address (ipv4) of the machine.
  45. |`_ec2:privateDns_` |The private host of the machine.
  46. |`_ec2:publicIpv4_` |The public IP address (ipv4) of the machine.
  47. |`_ec2:publicDns_` |The public host of the machine.
  48. |`_ec2_` |Less verbose option for the private ip address.
  49. |`_ec2:privateIp_` |Less verbose option for the private ip address.
  50. |`_ec2:publicIp_` |Less verbose option for the public ip address.
  51. |==================================================================
  52. [float]
  53. [[tcp-settings]]
  54. === TCP Settings
  55. Any component that uses TCP (like the HTTP, Transport and Memcached)
  56. share the following allowed settings:
  57. [cols="<,<",options="header",]
  58. |=======================================================================
  59. |Setting |Description
  60. |`network.tcp.no_delay` |Enable or disable tcp no delay setting.
  61. Defaults to `true`.
  62. |`network.tcp.keep_alive` |Enable or disable tcp keep alive. Defaults
  63. to `true`.
  64. |`network.tcp.reuse_address` |Should an address be reused or not.
  65. Defaults to `true` on non-windows machines.
  66. |`network.tcp.send_buffer_size` |The size of the tcp send buffer size
  67. (in size setting format). By default not explicitly set.
  68. |`network.tcp.receive_buffer_size` |The size of the tcp receive buffer
  69. size (in size setting format). By default not explicitly set.
  70. |=======================================================================