Skip to content

Instantly share code, notes, and snippets.

@furandon-pig
Created May 19, 2014 11:45
Show Gist options
  • Save furandon-pig/4f14b51cd30d24203611 to your computer and use it in GitHub Desktop.
Save furandon-pig/4f14b51cd30d24203611 to your computer and use it in GitHub Desktop.
OSvにElasticsearchを追加(osv/app/elasticsearch/module.py)
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