pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases/elasticsearch/files databases/elasticsearch:...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a4c0953bd233
branches:  trunk
changeset: 378370:a4c0953bd233
user:      fhajny <fhajny%pkgsrc.org@localhost>
date:      Fri Apr 06 15:48:46 2018 +0000

description:
databases/elasticsearch: Change default minimum and maximum heap to the same value, as recommended by Elasticsearch docs (improves performance, avoids locking lags).

diffstat:

 databases/elasticsearch/files/elasticsearch.sh |  4 ++--
 databases/elasticsearch/files/smf/manifest.xml |  2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diffs (32 lines):

diff -r 6d97294fc6a2 -r a4c0953bd233 databases/elasticsearch/files/elasticsearch.sh
--- a/databases/elasticsearch/files/elasticsearch.sh    Fri Apr 06 15:48:33 2018 +0000
+++ b/databases/elasticsearch/files/elasticsearch.sh    Fri Apr 06 15:48:46 2018 +0000
@@ -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 @@
 : ${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 -r 6d97294fc6a2 -r a4c0953bd233 databases/elasticsearch/files/smf/manifest.xml
--- a/databases/elasticsearch/files/smf/manifest.xml    Fri Apr 06 15:48:33 2018 +0000
+++ b/databases/elasticsearch/files/smf/manifest.xml    Fri Apr 06 15:48:46 2018 +0000
@@ -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/*' />



Home | Main Index | Thread Index | Old Index