stefanpejcic / OpenPanel

A highly customizable web hosting control panel built with Docker 🐳
https://openpanel.com
216 stars 33 forks source link

Elasticsearch ccan not be enabled on lower than 2.2GB RAM #90

Closed stefanpejcic closed 7 months ago

stefanpejcic commented 7 months ago

OpenPanel version(s) affected

0.1.5

Description

ealsticsearch service can NOT be started if user plan has less than 2GB ram.

How to reproduce

start service

root@175:/# service elasticsearch start 
 * Starting Elasticsearch Server                                                                                                                                                                                                              sysctl: setting key "vm.max_map_count", ignoring: Read-only file system

/usr/share/elasticsearch/bin/elasticsearch: line 100:  5410 Killed                  exec "$JAVA" "$XSHARE" $ES_JAVA_OPTS -Des.path.home="$ES_HOME" -Des.path.conf="$ES_PATH_CONF" -Des.distribution.flavor="$ES_DISTRIBUTION_FLAVOR" -Des.distribution.type="$ES_DISTRIBUTION_TYPE" -Des.bundled_jdk="$ES_BUNDLED_JDK" -cp "$ES_CLASSPATH" org.elasticsearch.bootstrap.Elasticsearch "$@" <<< "$KEYSTORE_PASSWORD"

Possible Solution

disable elastic as admin on plans with less than 2gb

Additional Context

No response

stefanpejcic commented 7 months ago

elastic is now disabled by default in versions 0.1.7 and newer