3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Elasticsearchコンテナを起動しても、数秒後には【Exit 78】で停止状態になる

Posted at

#はじめに
※修正などがあればコメント欄に書いていただけると嬉しいです!

症状

DockerでElasticsearchを起動しても、落ちるためNo alive nodes found in your clusterが出てElasticsearchとつなげることができなかった。

// 起動
$ docker-compose up -d elasticsearch

// 確認
$ docker ps -a
CONTAINER ID        IMAGE           COMMAND                  CREATED             STATUS              PORTS                      NAMES
xxxxxxxxx        elasticsearch   "/usr/local/bin/dock…"      5secounds        Up 5secounds         0.0.0.0:9200->9200/tcp       elasticsearch_1

// ログを確認
$ docker-compose logs elasticsearch

// エラー箇所(部分抽出)
[1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

#原因

単に、「elasticsearchのプロセスが使用するメモリが[65530]だと少なすぎるから[262144]まで増やしなさい!」と怒っている...

[1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

#解消法

// メモリマップ領域の増加
sudo sysctl -w vm.max_map_count=262144

これで動くはず!ぜひお試しあれ! (*´∀`)♪

#参考
このissueがかなり参考になりました。ありがとうございます!
https://github.com/laradock/laradock/issues/1699

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?