Comments (12)
In case someone lands here looking for a workaround, I used the suggestion from @davidopp in kubernetes/kubernetes#3945: set a hostPort for the datanode pod. That prevents two instances of from being scheduled on the same node.
ports:
- containerPort: 65535
name: anti-affinity
hostPort: 65535
It is sub optimal because the anti-affinity port number needs to be unique for the pod template, but it avoids the need to match pod resources to node resources (I still want to run other pods on the node)
from kubernetes-elasticsearch-cluster.
I have a workaround for this that is related to kubernetes/kubernetes#3945 in the sense that we can limit the number of Elasticsearch data-nodes, which I think are the only ones needing to persist data, running on a minion. Sorry, node :-p
from kubernetes-elasticsearch-cluster.
we can limit the number of Elasticsearch data-nodes
Yes, by simply using replicas: 1
. In what sense does kubernetes/kubernetes#3945 factor in here? Your issue seems a lot fancier because its about smart resource allocation wherein e.g. its impossible to schedule more than one pod per machine because e.g. it doesn't make sense for throughput.
So while we have "solution" with replicas: 1
its a very limiting one of course because we cannot scale that pod. The replicationController
part is a lie for now : )
from kubernetes-elasticsearch-cluster.
I think we can set the number of replicas we wish. We just need a couple
things:
- nodeSelector for pods to be scheduled in specific machines marked with
predefined labels - set data-node pods resources (like ram) to match the VM allocated ram in
a way that said machine can't hold more than one data-node.
This way you can have multiple data-nodes and as many replicas as machines
available.
On Feb 3, 2015 12:07 AM, "Jason Kuhrt" [email protected] wrote:
we can limit the number of Elasticsearch data-nodes
Yes, by simply using replicas: 1. In what sense does
kubernetes/kubernetes#3945
kubernetes/kubernetes#3945 factor in
here? Your issue seems a lot fancier because its about smart resource
allocation wherein e.g. its impossible to schedule more than one pod per
machine because e.g. it doesn't make sense for throughput.So while we have "solution" with replicas: 1 its a very limiting one of
course because we cannot scale that pod. The replicationController part
is a lie for now : )—
Reply to this email directly or view it on GitHub
#2 (comment)
.
from kubernetes-elasticsearch-cluster.
Ok, I'm curious to see what you will come up with. I'm trying things on my fork and will share anything useful.
from kubernetes-elasticsearch-cluster.
You can see some issues I am running into with PD
here: kubernetes/kubernetes#4052
from kubernetes-elasticsearch-cluster.
Has there been any solution to this problem? I can't figure out how to provide persistent storage for my Elasticsearch cluster, which makes it useless :(
from kubernetes-elasticsearch-cluster.
@mlamina this is not a bug so it doesn't need to be fixed. This is something that you, as an user, should change to match your environment. I can't force a volume setup other than the emptyDir
nor can I support every possibility in existence. I urge you to learn about Kubernetes volume plug-ins and adapt the data node replicationController
as you see fit.
from kubernetes-elasticsearch-cluster.
I understand that! Do you have a recommendation which scales with the ReplicationController? GCE PersistentDisk doesn't seem to work and I feel like setting up a GlusterFS cluster seems to be overkill?
from kubernetes-elasticsearch-cluster.
There are more plug-ins than those two. Choose what's best to your use-case.
from kubernetes-elasticsearch-cluster.
You can also try integration with flocker
.
from kubernetes-elasticsearch-cluster.
I agree with you
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.