pires / kubernetes-elasticsearch-cluster

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

Cannot launch the ES cluster because of insufficient CPU #195

Closed duchnguyen closed 6 years ago

duchnguyen commented 6 years ago

Hi,

I checked-out the code to my local and ran below commands in order

kubectl create -f es-discovery-svc.yaml
kubectl create -f es-svc.yaml
kubectl create -f es-master.yaml
kubectl create -f es-client.yaml
kubectl create -f es-data.yaml

-> couldn't launch the ES cluster because of insufficient CPU as below

Note that my Kubernetes Cluster has 3 nodes (machine type for each node : n1-standard-1 (1 vCPU, 3.75 GB memory).

The issue is the same when I change

es-insufficient-cpu

es-insufficient-cpu-02

Thanks, Duc

pires commented 6 years ago

Since no CPU requests are made, I don't know what's going on.

duchnguyen commented 6 years ago

Hi Pires,

Since no CPU requests are made, I don't know what's going on.

Can you please tell more detail about this? How can I fix it? I don't change anything related to resources.limits.cpu configuration.

Thanks, Duc

pires commented 6 years ago

Limits is not the problem here, since it guarantees that your pod will not consume more than 1000ms of cpu per second. But we don't define Requests, so I don't know why Kubernetes complains there's not enough CPU.

For more info, please read https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/.