Skip to content

Commit

Permalink
elasticsearch 5.x vm.max_map_count issue alleviated, by docker-librar…
Browse files Browse the repository at this point in the history
  • Loading branch information
uschtwill committed Jan 15, 2017
1 parent d17965c commit 725931b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
6 changes: 0 additions & 6 deletions install-prerequisites.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@ echo "############################### Making docker-compose executable..."
echo "------------------------------------------------------------"
chmod +x /usr/local/bin/docker-compose

echo "------------------------------------------------------------"
echo "############################### Increases maximum memory map areas on host..."
# This is a new requirement for Elasticsearch in 5.x, which HAS to be changed on the host and can not be accounted for on the image/container side of things. See https://github.com/docker-library/elasticsearch/issues/98 ...
echo "------------------------------------------------------------"
sudo sysctl -w vm.max_map_count=262144

echo "------------------------------------------------------------"
echo "############################### Installing apache2-utils so we have at our disposal htpasswd..."
apt-get install apache2-utils -y --install-recommends
Expand Down
1 change: 1 addition & 0 deletions logging/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ services:
volumes:
- ../storage/elasticsearch:/usr/share/elasticsearch/data
restart: always
command: elasticsearch -Etransport.host=127.0.0.1
labels:
container_group: logging
logging:
Expand Down

0 comments on commit 725931b

Please sign in to comment.