Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ElasticSearch discover all cores in a kubernetes pod instead the cores given in a statefulset #33055

Open
Dlorite opened this issue Aug 22, 2018 · 2 comments
Labels
:Core/Infra/Core Core issues without another label needs:reproduction Team:Core/Infra Meta label for core/infra team

Comments

@Dlorite
Copy link

Dlorite commented Aug 22, 2018

Hi, we have a cluster of elasticsearch v.5.2.2. in kubernetes with 20 workers and 3 electable masters dedicated. This cluster have machines with 8 cores but in our statefullset we have set the workers with only 2 cpu core in guarantee mode. The problem comes when the workers think they have 8 cores and the bulk thread pool has a size of 8 too. Then all workers are working more than they can ingest and suddenly they one of them start to reject all petitions and the cluster stop of index more documents, this problem is solved restarting the pods, but eventually the problem comes again. We can escalate the cluster with more workers and then the problem seems is solved until the number of documents is increased.
I think that will be solved if elasticearch would discover the cores available correctly in a pod in kubernetes.

@colings86 colings86 added the :Core/Infra/Core Core issues without another label label Aug 23, 2018
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

@rjernst rjernst added the Team:Core/Infra Meta label for core/infra team label May 4, 2020
@rjernst rjernst added the needs:triage Requires assignment of a team area label label Dec 3, 2020
@gwbrown
Copy link
Contributor

gwbrown commented Dec 14, 2020

I'm tagging this as needs:reproduction as we have made some changes since 5.2.2 to how Elasticsearch detects the number of cores in the context of containers that may have fixed this issue, but I don't have a Kubernetes cluster handy to test.

@gwbrown gwbrown added needs:reproduction and removed needs:triage Requires assignment of a team area label labels Dec 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Core/Infra/Core Core issues without another label needs:reproduction Team:Core/Infra Meta label for core/infra team
Projects
None yet
Development

No branches or pull requests

5 participants