pires / kubernetes-elasticsearch-cluster

Elasticsearch cluster on top of Kubernetes made easy.
Apache License 2.0
1.51k stars 687 forks source link

es-master getting killed #151

Closed mortensorensen closed 6 years ago

mortensorensen commented 6 years ago

I figure it's a memory issue so I have increased the memory of minikube to 4G and have set ES_JAVA_OPTS to -Xms1024m -Xmx1024m. What am I doing wrong here?

$ kubectl logs po/es-master-86944cc9bb-d9gtl -f
[2017-11-11T15:51:07,752][INFO ][o.e.n.Node               ] [es-master-86944cc9bb-d9gtl] initializing ...
[2017-11-11T15:51:08,299][INFO ][o.e.e.NodeEnvironment    ] [es-master-86944cc9bb-d9gtl] using [1] data paths, mounts [[/data (/dev/sda1)]], net usable_space [13.9gb], net total_space [16.1gb], spins? [possibly], types [ext4]
[2017-11-11T15:51:08,301][INFO ][o.e.e.NodeEnvironment    ] [es-master-86944cc9bb-d9gtl] heap size [1007.3mb], compressed ordinary object pointers [true]
[2017-11-11T15:51:08,307][INFO ][o.e.n.Node               ] [es-master-86944cc9bb-d9gtl] node name [es-master-86944cc9bb-d9gtl], node ID [FBHVpYnmT0mlDvmQ52-UZA]
[2017-11-11T15:51:08,309][INFO ][o.e.n.Node               ] [es-master-86944cc9bb-d9gtl] version[5.6.0], pid[8], build[781a835/2017-09-07T03:09:58.087Z], OS[Linux/4.9.13/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/1.8.0_131/25.131-b11]
[2017-11-11T15:51:08,310][INFO ][o.e.n.Node               ] [es-master-86944cc9bb-d9gtl] JVM arguments [-XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -XX:+DisableExplicitGC, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -Djdk.io.permissionsUseCanonicalPath=true, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Dlog4j.skipJansi=true, -XX:+HeapDumpOnOutOfMemoryError, -Xms1024m, -Xmx1024m, -Des.path.home=/elasticsearch]
[2017-11-11T15:51:19,015][INFO ][o.e.p.PluginsService     ] [es-master-86944cc9bb-d9gtl] loaded module [aggs-matrix-stats]
[2017-11-11T15:51:19,018][INFO ][o.e.p.PluginsService     ] [es-master-86944cc9bb-d9gtl] loaded module [ingest-common]
[2017-11-11T15:51:19,020][INFO ][o.e.p.PluginsService     ] [es-master-86944cc9bb-d9gtl] loaded module [lang-expression]
[2017-11-11T15:51:19,023][INFO ][o.e.p.PluginsService     ] [es-master-86944cc9bb-d9gtl] loaded module [lang-groovy]
[2017-11-11T15:51:19,025][INFO ][o.e.p.PluginsService     ] [es-master-86944cc9bb-d9gtl] loaded module [lang-mustache]
[2017-11-11T15:51:19,026][INFO ][o.e.p.PluginsService     ] [es-master-86944cc9bb-d9gtl] loaded module [lang-painless]
[2017-11-11T15:51:19,026][INFO ][o.e.p.PluginsService     ] [es-master-86944cc9bb-d9gtl] loaded module [parent-join]
[2017-11-11T15:51:19,034][INFO ][o.e.p.PluginsService     ] [es-master-86944cc9bb-d9gtl] loaded module [percolator]
[2017-11-11T15:51:19,034][INFO ][o.e.p.PluginsService     ] [es-master-86944cc9bb-d9gtl] loaded module [reindex]
[2017-11-11T15:51:19,034][INFO ][o.e.p.PluginsService     ] [es-master-86944cc9bb-d9gtl] loaded module [transport-netty3]
[2017-11-11T15:51:19,034][INFO ][o.e.p.PluginsService     ] [es-master-86944cc9bb-d9gtl] loaded module [transport-netty4]
[2017-11-11T15:51:19,035][INFO ][o.e.p.PluginsService     ] [es-master-86944cc9bb-d9gtl] no plugins loaded
Killed
mortensorensen commented 6 years ago

Ok, helps if I decrease the number of replicas.