samuelclay / NewsBlur

NewsBlur is a personal news reader that brings people together to talk about the world. A new sound of an old instrument.
http://www.newsblur.com
MIT License
6.84k stars 995 forks source link

Elasticsearch RAM usage on local install #1848

Open VlaK0r opened 7 months ago

VlaK0r commented 7 months ago

Hello! Thank you for your hard work.

The instance is installed on raspberrypi (Debian GNU/Linux 12 64bit / Linux 6.1.0-rpi8-rpi-v8)

image image image image

The installation uses a large amount of RAM. But after the installation is finished, the RAM remains occupied, plus it starts to fill up SWAP. If you stop the db_elasticsearch container, then the consumption of RAM drops significantly.

Please tell me, is this the normal state of a working NewsBlur? Or is something not working correctly?

VlaK0r commented 7 months ago
  db_elasticsearch:
    container_name: db_elasticsearch
    image: docker.elastic.co/elasticsearch/elasticsearch:7.16.3
    mem_limit: 512mb

I found this line in the file docker-compose.yml But it turns out that this restriction does not work.

VlaK0r commented 7 months ago

image

I read the documentation on elasticsearch. mem_limit: 512mb - not right. It is necessary to specify in bytes mem_limit: 536870912 Everything is working correctly now.