network-host.asciidoc 1.2 KB

1234567891011121314151617181920212223242526272829
  1. [[network.host]]
  2. === `network.host`
  3. By default, Elasticsearch binds to loopback addresses only -- e.g. `127.0.0.1`
  4. and `[::1]`. This is sufficient to run a single development node on a server.
  5. TIP: In fact, more than one node can be started from the same `$ES_HOME`
  6. location on a single node. This can be useful for testing Elasticsearch's
  7. ability to form clusters, but it is not a configuration recommended for
  8. production.
  9. In order to form a cluster with nodes on other servers, your
  10. node will need to bind to a non-loopback address. While there are many
  11. <<modules-network,network settings>>, usually all you need to configure is
  12. `network.host`:
  13. [source,yaml]
  14. --------------------------------------------------
  15. network.host: 192.168.1.10
  16. --------------------------------------------------
  17. The `network.host` setting also understands some special values such as
  18. `_local_`, `_site_`, `_global_` and modifiers like `:ip4` and `:ip6`, details of
  19. which can be found in <<network-interface-values>>.
  20. IMPORTANT: As soon you provide a custom setting for `network.host`,
  21. Elasticsearch assumes that you are moving from development mode to production
  22. mode, and upgrades a number of system startup checks from warnings to
  23. exceptions. See <<dev-vs-prod>> for more information.