Skip to content

Commit

Permalink
Set explicit limits on elasticsearch file descriptors (#7788)
Browse files Browse the repository at this point in the history
Co-authored-by: Dustin Ingram <[email protected]>
  • Loading branch information
alanbato and di authored Apr 10, 2020
1 parent c488578 commit 9019b5e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ services:
image: docker.elastic.co/elasticsearch/elasticsearch:6.8.7
environment:
- xpack.security.enabled=false
ulimits:
nofile:
soft: 65536
hard: 65536

camo:
image: pypa/warehouse-camo:latest
Expand Down
4 changes: 2 additions & 2 deletions docs/development/getting-started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ application.

If you are using Linux, you may need to configure the maximum map count to get
the `elasticsearch` up and running. According to the
`documentation <https://www.elastic.co/guide/en/elasticsearch/reference/6.2/vm-max-map-count.html>`_
`documentation <https://www.elastic.co/guide/en/elasticsearch/reference/6.8/vm-max-map-count.html>`_
this can be set temporarily:

.. code-block:: console
Expand All @@ -177,7 +177,7 @@ application.
Also check that you have more than 5% disk space free, otherwise
elasticsearch will become read only. See ``flood_stage`` in the
`elasticsearch disk allocation docs
<https://www.elastic.co/guide/en/elasticsearch/reference/6.2/disk-allocator.html>`_.
<https://www.elastic.co/guide/en/elasticsearch/reference/6.8/disk-allocator.html>`_.


Once ``make build`` has finished, run the command:
Expand Down

0 comments on commit 9019b5e

Please sign in to comment.