I'm a beginner in elasticsearch. I'm using also ubuntu for
elasticsearch(version 1.1.0). My issue : where should I set the
ES_MIN/MAX_SIZE(= ES_HEAP_SIZE)? In /etc/elasticsearch/elasticsearch.yml or
/etc/default/elasticsearch or /etc/init.d/elasticsearch? From what i read i
should set the ES_MIN/MAX_SIZE = ram / 2.
My application is reading data from a Sqs and pushing it to elasticseach.
This is done from 2 consumers each with a thread pool of 5 threads. That
means 10 threads who are inserting documents in elasticsearch. I have a
separate server for elasticsearch with 8gb of ram.
From my configuration : I set ES_MIN/MAX_SIZE = 4g(=ram / 2) only in
/etc/elasticsearch/elasticsearch.yml and restarting the elasticsearch. When
I call the htop, I see for elasticsearch user the next command which is
duplicated(..10 threads => more line like this one) :
/usr/lib/jvm/java-7-openjdk-amd64//bin/java -Xms256m -Xmx1g -Xss256k
-Djava.awt. Shouldn't it be -Xms2g -Xmx2g, because I set in
elasticsearch.yml 2g?
From what i read in other posts I should set this in "service wrapper
configuration". But which file is linked to "service wrapper configuration"
/etc/default/elasticsearch or /etc/init.d/elasticsearch?
Should I have same values in elasticsearch.yml ES_MIN_MEM/ES_MAX_MEM
like in "service wrapper configuration" (ES_HEAP_SIZE) ?
I'm a beginner in elasticsearch. I'm using also ubuntu for
elasticsearch(version 1.1.0). My issue : where should I set the
ES_MIN/MAX_SIZE(= ES_HEAP_SIZE)? In /etc/elasticsearch/elasticsearch.yml or
/etc/default/elasticsearch or /etc/init.d/elasticsearch? From what i read i
should set the ES_MIN/MAX_SIZE = ram / 2.
My application is reading data from a Sqs and pushing it to elasticseach.
This is done from 2 consumers each with a thread pool of 5 threads. That
means 10 threads who are inserting documents in elasticsearch. I have a
separate server for elasticsearch with 8gb of ram.
From my configuration : I set ES_MIN/MAX_SIZE = 4g(=ram / 2) only in
/etc/elasticsearch/elasticsearch.yml and restarting the elasticsearch. When
I call the htop, I see for elasticsearch user the next command which is
duplicated(..10 threads => more line like this one) :
/usr/lib/jvm/java-7-openjdk-amd64//bin/java -Xms256m -Xmx1g -Xss256k
-Djava.awt. Shouldn't it be -Xms2g -Xmx2g, because I set in
elasticsearch.yml 2g?
From what i read in other posts I should set this in "service wrapper
configuration". But which file is linked to "service wrapper configuration"
/etc/default/elasticsearch or /etc/init.d/elasticsearch?
Should I have same values in elasticsearch.yml ES_MIN_MEM/ES_MAX_MEM
like in "service wrapper configuration" (ES_HEAP_SIZE) ?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.