Commit Graph

33 Commits

Author SHA1 Message Date
Tanguy Leroux 168238dab6 Add properties files to configure startup and installation scripts
Many scripts are used to start/stop and install/uninstall elasticsearch. These scripts share a lot of configuration properties like directory paths, max value for a setting, default user etc. Most of the values are identical but some of them are different depending of the platform (Debian-based or Redhat-based OS), depending of the way elasticsearch is started (shell script, systemd, sysv-init...) or the way it is installed (zip, rpm, deb...). Today the values are duplicated in multiple places, making it difficult to maintain the scripts or to update a value.

This pull request make this more uniform: values used in scripts must be defined in a common packaging.properties file. Each value can be overridden in another specific packaging.properties file for Debian or Redhat. All startup and installation scripts are filtered with the common then the custom packaging.properties files before being packaged as a zip/tar.gz/rpm/dpkf archive.
2015-04-02 18:09:43 +02:00
Andreas Kohn 01b8479179 Allow configuration of the GC log file via an environment variable
Enabling GC logging works now by setting the environment variable ES_GC_LOG_FILE
to the full path to the GC log file. Missing directories will be created as needed.

The ES_USE_GC_LOGGING environment variable is no longer used.

Closes #8471
Closes #8479
2015-02-12 17:07:57 +01:00
Simon Willnauer 09b4d0e097 [EXEC] Remove reduced stack size
We used to reduces the stack size to 256kb. This commit removes
this optimization and relies on the JVMs default.

Closes #9135
2015-01-06 17:35:45 +01:00
Robert Muir 01fc84dbb3 Wire utf-8 encoding, so unicode filenames work
Sets -Dfile.encoding=UTF-8 by default.

Closes #8847
2014-12-15 10:36:43 -05:00
Robert Muir a3d5381392 Disable explicit GC by default
We don't rely upon GC to cleanup mappedbytebuffers, we unmap them
explicitly on close in lucene. But the JDK has crazy loops with
explicit GCs in exceptional cases to try to force unmapping.

In general we don't want any of our code or library code calling
this method: so its banned in forbidden-apis as well.
2014-06-27 14:09:44 +02:00
Costin Leau ffe502ddc2 remove unused setting 2013-09-27 00:35:34 +03:00
Phil Kates 8f5bca43fb Make elasticsearch.in.sh more configurable via env
It's easier to manage a configuration through environment variables than
through a config file if that config file has static values that need to
change each version (such as the ES_CLASSPATH). Trying to keep that in
Chef is tedious whereas just controlling these few settings with
environment variables like most of the other settings in here is simple
and straightforward.
2012-12-19 21:38:40 +01:00
Shay Banon 8dcee09868 expose the max direct memory allowed in jvm info, and guess better then receive buffer size predictor size based on it 2012-07-31 15:06:21 +02:00
Shay Banon 2b893fe1e5 Use bloom filter when flushing (applying deletes), closes #2058. 2012-06-26 16:45:29 +02:00
Shay Banon d5b84bb81b make sure we run in headless mode
applies mainly to the attachments (tika) plugin
2012-06-14 13:14:03 +02:00
Aurelien Requiem 18f4caaef7 lintian rule : executable-not-elf-or-script in /usr/share/elasticsearch/bin/elasticsearch.in.sh
* added a proper shell on top on the script
2012-06-11 12:29:08 +02:00
Shay Banon c56218a41f JDK 7 requires minimum of 256k stack size, update scripts to set it, closes #1892. 2012-04-29 17:17:15 +03:00
Shay Banon 70268a6c41 JDK 7 requires minimum of 160k stack size, update scripts to set it, closes #1892. 2012-04-29 17:13:36 +03:00
Shay Banon 70de95373c JVM Flags: Remove SurvivorRatio and MaxTenuringThreshold since the defaults are good with new JVMs, closes #1672. 2012-02-06 22:11:22 +02:00
Shay Banon 43809211d4 bin: elasticsearch script to support ES_HEAP_SIZE to easily set the heap size to a single value (min and max) and ES_HEAP_NEWSIZE to optionally set the new gen, closes #1671. 2012-02-06 22:09:32 +02:00
Shay Banon 78722a51f7 add a comment option to another jvm flag that only applies in 7 2012-01-26 13:52:43 +02:00
Shay Banon 49d976fc41 add a commented out option to force the JVM to use IPv4 stack 2011-09-23 00:57:57 +03:00
Shay Banon f8f0c26a2b remove the compressed oops option, as its enabled by default on latest jdks 2011-08-03 21:34:34 +03:00
Shay Banon 6913bebb75 remove the explicit usage of elasticsearch jar file in the head of the script, no need for it anymore 2011-08-03 21:29:05 +03:00
kimchy 845104dabc remove the jline flag and automatically detect it 2011-07-15 10:00:23 +03:00
kimchy dc0e493cce elasticsearch script: Change CLASSPATH to ES_CLASSPATH, closes #818. 2011-03-30 21:03:24 +02:00
kimchy e953845058 Remove -XX:+AggressiveOpts flag that is turned on by default in startup script, closes #638. 2011-01-20 00:13:18 +02:00
kimchy 6971af8793 add commented out gc logging option 2011-01-07 16:59:50 +02:00
kimchy b33010a24c document the heap dump options 2010-11-23 03:51:38 +02:00
kimchy ed99787c8e add a comment for the compressed oops option 2010-11-07 00:46:46 +02:00
kimchy e63847f771 add hints on when to first perform GC, make small GC happen faster resulting in less chances of stop the world GC 2010-10-15 18:26:38 +02:00
kimchy ac27b45524 change default jvm tuning options 2010-08-14 01:10:36 +03:00
kimchy 97b5b41522 enable eager cache eviction based on readers, requires a nasty hack to Lucene, basically overriding two classes to hook into when a reader actually gets closed (and only enabled when elasticsearch is before lucene in the classpath, which we take for in the startup scripts) 2010-07-07 17:15:26 +03:00
kimchy dea8238ced Move service wrapper support to its own repo, closes #243. 2010-06-30 21:51:34 +03:00
kimchy 371bfebd16 initial support for process monitoring using sigar 2010-05-06 21:07:24 +03:00
kimchy c09877c2bd Script / Service: Add ES_MIN_MEM and ES_MAX_MEM, closes #156 2010-05-01 15:55:49 +03:00
kimchy c7e4ec6369 update project files, remove sources from jar files 2010-04-25 23:40:58 +03:00
kimchy b3337c3127 initial commit 2010-02-08 15:30:06 +02:00