http.asciidoc 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. [[modules-http]]
  2. == HTTP
  3. The http module allows to expose *elasticsearch* APIs
  4. over HTTP.
  5. The http mechanism is completely asynchronous in nature, meaning that
  6. there is no blocking thread waiting for a response. The benefit of using
  7. asynchronous communication for HTTP is solving the
  8. http://en.wikipedia.org/wiki/C10k_problem[C10k problem].
  9. When possible, consider using
  10. http://en.wikipedia.org/wiki/Keepalive#HTTP_Keepalive[HTTP keep alive]
  11. when connecting for better performance and try to get your favorite
  12. client not to do
  13. http://en.wikipedia.org/wiki/Chunked_transfer_encoding[HTTP chunking].
  14. [float]
  15. === Settings
  16. The following are the settings the can be configured for HTTP:
  17. [cols="<,<",options="header",]
  18. |=======================================================================
  19. |Setting |Description
  20. |`http.port` |A bind port range. Defaults to `9200-9300`.
  21. |`http.max_content_length` |The max content of an HTTP request. Defaults
  22. to `100mb`
  23. |`http.max_initial_line_length` |The max length of an HTTP URL. Defaults
  24. to `4kb`
  25. |`http.compression` |Support for compression when possible (with
  26. Accept-Encoding). Defaults to `false`.
  27. |`http.compression_level` |Defines the compression level to use.
  28. Defaults to `6`.
  29. |=======================================================================
  30. It also shares the uses the common
  31. <<modules-network,network settings>>.
  32. [float]
  33. === Disable HTTP
  34. The http module can be completely disabled and not started by setting
  35. `http.enabled` to `false`. This make sense when creating non
  36. <<modules-node,data nodes>> which accept HTTP
  37. requests, and communicate with data nodes using the internal
  38. <<modules-transport,transport>>.