Comments (11)
kubectl logs <pod>
from kubernetes-elasticsearch-cluster.
@tspacek this may be something else, namely the default value for ES_HEAP_SIZE
. I will be validating that ASAP.
from kubernetes-elasticsearch-cluster.
I'm not sure if this is ok to make the master node also a client and a data plus make the data a client as well
Elasticsearch documentation disrecommend this practice.
Other than that, we need to see pod logs to understand why it's crashing.
from kubernetes-elasticsearch-cluster.
ye but a single server that perform all roles actually work just fine,
I was more wondering whether the fabric8io unicast discovery should work when multiple roles are activated at once,
There are no errors.....
The only thing I see is this:
kubectl describe pod es-data-2599720219-u9axv
2h 8m 25 {kubelet 172.17.8.102} spec.containers{es-data} Normal Pulling pulling image "quay.io/pires/docker-elasticsearch-kubernetes:2.3.4"
2h 8m 25 {kubelet 172.17.8.102} spec.containers{es-data} Normal Pulled Successfully pulled image "quay.io/pires/docker-elasticsearch-kubernetes:2.3.4"
8m 8m 1 {kubelet 172.17.8.102} spec.containers{es-data} Normal Created Created container with docker id 817f72bd6eea
8m 8m 1 {kubelet 172.17.8.102} spec.containers{es-data} Normal Started Started container with docker id 817f72bd6eea
1h 12s 81 {kubelet 172.17.8.102} Warning FailedSync Error syncing pod, skipping: failed to "StartContainer" for "es-data" with CrashLoopBackOff: "Back-off 5m0s restarting failed container=es-data pod=es-data-2599720219-u9axv_default(330fb913-5f22-11e6-be3c-080027e9ede8)"
2h 12s 182 {kubelet 172.17.8.102} spec.containers{es-data} Warning BackOff Back-off restarting failed docker container
Any suggestions how to debug further?
Many thanks.
from kubernetes-elasticsearch-cluster.
yea well, same thing, nothing that seems to be suspicious (same errors as in describe)
I also tried to take a look at /data/log/.. but nothing,
Anyway, I keep this issue opened for a while, meanwhile I'll try to investigate it a bit more,
Thanks.
from kubernetes-elasticsearch-cluster.
@asaf Did you get to the bottom of this? I get the same. I suspect because I am using https://github.com/kubernetes/minikube
Here's an example of the pod logs:
➜ kubernetes-elasticsearch-cluster git:(master) kubectl logs es-master-3368190183-uhift
[2016-08-24 11:33:00,471][INFO ][node ] [Sluk] version[2.3.5], pid[11], build[90f439f/2016-07-27T10:36:52Z]
[2016-08-24 11:33:00,472][INFO ][node ] [Sluk] initializing ...
[2016-08-24 11:33:01,644][INFO ][plugins ] [Sluk] modules [reindex, lang-expression, lang-groovy], plugins [cloud-kubernetes], sites []
[2016-08-24 11:33:01,688][INFO ][env ] [Sluk] using [1] data paths, mounts [[/data (tmpfs)]], net usable_space [644.7mb], net total_space [896.2mb], spins? [no], types [tmpfs]
[2016-08-24 11:33:01,689][INFO ][env ] [Sluk] heap size [503.6mb], compressed ordinary object pointers [true]
Killed
from kubernetes-elasticsearch-cluster.
I can confirm this happens, pods are killed. Need to make sure why, though. My gut feeling is OOM.
My environment is 4 CoreOS alpha VM's, 1 vCPU + 4GB RAM, Kubernetes 1.3.5.
from kubernetes-elasticsearch-cluster.
Can confirm it's stable if I set ES_HEAP_SIZE
such that the sum of all pods' is lower than Minikube's default 1gb.
from kubernetes-elasticsearch-cluster.
@tspacek can confirm as well that's the case. I will be closing this by setting a very low value, 256MB
and adding a note on docs.
from kubernetes-elasticsearch-cluster.
@asaf try again and let us know!
from kubernetes-elasticsearch-cluster.
Just want to share my experience with this,
had the same issue, 4 hyper-v vm's with 1gb RAM each. Had random crashes all over the es cluster. I allocated 2gb Ram to each machine, crashes stop and the es cluster runs stable.
from kubernetes-elasticsearch-cluster.
Related Issues (20)
- Deprecated service HOT 1
- Missing required field "selector" in io.k8s.api.apps.v1.StatefulSetSpec HOT 2
- ingest-attachment does not work in Cluster HOT 1
- Master pods refuse to start with memory limits set on AWS EKS HOT 2
- Question: Memory requirements HOT 2
- enable discovery, other nodes to join the cluster HOT 1
- best way to add synonyms to an index
- Reloadable secure settings or restart master
- Unable to set MEMORY_LOCK to true HOT 1
- Statefulset not working with resize of pvc
- Re-election takes over 30 seconds when deleting master pod (but fast when killing the process directly) HOT 2
- how to set attributes HOT 1
- es-data nodes exceeding Xmx memory HOT 2
- Java heap space error for es-client and es-data when we specify memory limit
- plugin install ?
- ES production configuration HOT 2
- ES_PLUGINS_INSTALL breaks boot sequence HOT 2
- Why this project if we have it in an oficial ElasticSearch as Helm package? HOT 5
- Data nodes failing to restart
- es-ingest and es-data not connecting after restarting es-master
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kubernetes-elasticsearch-cluster.