Created
May 19, 2014 11:45
-
-
Save furandon-pig/4f14b51cd30d24203611 to your computer and use it in GitHub Desktop.
OSvにElasticsearchを追加(osv/app/elasticsearch/module.py)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from osv.modules import api | |
# Following parameter imported from 'elasticsearch-1.1.1/bin/elasticsearch'. | |
default = api.run_java( | |
jvm_args=[ | |
'-Xms256m', | |
'-Xmx1g', | |
'-Xss256k', | |
'-XX:+HeapDumpOnOutOfMemoryError', | |
'-XX:+UseParNewGC', | |
'-XX:+UseConcMarkSweepGC', | |
'-XX:CMSInitiatingOccupancyFraction=75', | |
'-XX:+UseCMSInitiatingOccupancyOnly' | |
], | |
classpath=[ | |
'/usr/elasticsearch/lib/elasticsearch-1.1.1.jar', | |
'/usr/elasticsearch/lib/*', | |
'/usr/elasticsearch/lib/sigar/*' | |
], | |
args=[ | |
'-Djava.awt.headless=true', | |
# '-Delasticsearch', | |
'-Des.foreground=no', | |
'-Des.path.home=/usr/elasticsearch', | |
'org.elasticsearch.bootstrap.Elasticsearch' | |
]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment