summaryrefslogtreecommitdiff
path: root/databases/elasticsearch
diff options
context:
space:
mode:
authorfhajny <fhajny@pkgsrc.org>2018-04-06 15:48:46 +0000
committerfhajny <fhajny@pkgsrc.org>2018-04-06 15:48:46 +0000
commit3e424b7741f81b59ab6aa2b92c701a9fda5cc986 (patch)
treeb658675317f8277d7ae786eaf3496e422e2c3e5c /databases/elasticsearch
parent3527dd45352755495776b438aa27fd880ea3598e (diff)
downloadpkgsrc-3e424b7741f81b59ab6aa2b92c701a9fda5cc986.tar.gz
databases/elasticsearch: Change default minimum and maximum heap to the same value, as recommended by Elasticsearch docs (improves performance, avoids locking lags).
Diffstat (limited to 'databases/elasticsearch')
-rw-r--r--databases/elasticsearch/files/elasticsearch.sh4
-rw-r--r--databases/elasticsearch/files/smf/manifest.xml2
2 files changed, 3 insertions, 3 deletions
diff --git a/databases/elasticsearch/files/elasticsearch.sh b/databases/elasticsearch/files/elasticsearch.sh
index e2f683772bf..3bb7d00c16b 100644
--- a/databases/elasticsearch/files/elasticsearch.sh
+++ b/databases/elasticsearch/files/elasticsearch.sh
@@ -1,6 +1,6 @@
#! @RCD_SCRIPTS_SHELL@
#
-# $NetBSD: elasticsearch.sh,v 1.4 2016/11/08 09:18:01 fhajny Exp $
+# $NetBSD: elasticsearch.sh,v 1.5 2018/04/06 15:48:46 fhajny Exp $
#
# PROVIDE: elasticsearch
# REQUIRE: DAEMON
@@ -17,7 +17,7 @@ start_precmd="elasticsearch_precmd"
: ${elasticsearch_user:=@ES_USER@}
: ${elasticsearch_group:=@ES_GROUP@}
: ${elasticsearch_config:="@PKG_SYSCONFDIR@/elasticsearch.yml"}
-: ${elasticsearch_min_mem:="256m"}
+: ${elasticsearch_min_mem:="1g"}
: ${elasticsearch_max_mem:="1g"}
: ${elasticsearch_props:=""}
: ${elasticsearch_fdlimit:="768"}
diff --git a/databases/elasticsearch/files/smf/manifest.xml b/databases/elasticsearch/files/smf/manifest.xml
index 472fbcd6811..490c7d602f6 100644
--- a/databases/elasticsearch/files/smf/manifest.xml
+++ b/databases/elasticsearch/files/smf/manifest.xml
@@ -24,7 +24,7 @@
<exec_method type='method' name='stop' exec=':kill' timeout_seconds='60' />
<exec_method type='method' name='refresh' exec=':kill -HUP' timeout_seconds='60' />
<property_group name='application' type='application'>
- <propval name='min_heap' type='astring' value='256m' />
+ <propval name='min_heap' type='astring' value='1g' />
<propval name='max_heap' type='astring' value='1g' />
<propval name='store_type' type='astring' value='niofs' />
<propval name='class_path' type='astring' value='@ES_BASEDIR@/lib/*' />