Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Elasticsearch runs out of heap immediately on large datasets #25

Closed
wants to merge 8 commits into from

1 participant

@courtenay

Because JAVA_OPTS gets rewritten halfway down the .sh file. Oops! Patch attached.

@courtenay

Ugh, I didn't mean to attach all these commits. Just the last one. Will try again.

@courtenay courtenay closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 26, 2010
  1. @courtenay

    Select some custom shiz

    courtenay authored
  2. @courtenay

    use the actual app name

    courtenay authored
  3. @courtenay

    wtf this doesn't exist

    courtenay authored
  4. @courtenay

    fuck off and die

    courtenay authored
  5. @courtenay
  6. @courtenay

    Actually use dj!

    courtenay authored
Commits on Dec 19, 2011
  1. @courtenay

    Merge remote-tracking branch 'upstream/master'

    courtenay authored
    Conflicts:
    	cookbooks/delayed_job/recipes/default.rb
    	cookbooks/main/recipes/default.rb
    	cookbooks/thinking_sphinx/recipes/default.rb
  2. @courtenay

    Modify JAVA_OPTS call so that it actually uses the memory and heap se…

    courtenay authored
    …ttings rather than overwriting
This page is out of date. Refresh to see the latest.
View
11 cookbooks/delayed_job/files/default/delayed_job.logrotate
@@ -0,0 +1,11 @@
+/var/log/engineyard/delayed_job/*/*.log {
+ daily
+ missingok
+ dateext
+ rotate 30
+ compress
+ notifempty
+ sharedscripts
+ extension gz
+ copytruncate
+}
View
4 cookbooks/delayed_job/templates/default/delayed_job.yml.erb
@@ -0,0 +1,4 @@
+<%= @rails_env %>:
+ log_file: /data/<%= @app_name %>/shared/log/delayed_job.log
+ pid_dir: /var/run/delayed_job
+ process_name: delayed_job
View
5 cookbooks/delayed_job/templates/default/delayed_job_worker.monitrc.erb
@@ -0,0 +1,5 @@
+check process <%= @worker_name %>
+ with pidfile /data/<%= @app_name %>/shared/pids/<%= @worker_name %>.pid
+ start program = "/usr/bin/env RAILS_ENV=<%= @rails_env %> /data/<%= @app_name %>/current/script/delayed_job start --min-priority <%= @min_priority %> --max-priority <%= @max_priority %>" as uid <%= @user %> and gid <%= @user %>
+ stop program = "/usr/bin/env RAILS_ENV=<%= @rails_env %> /data/<%= @app_name %>/current/script/delayed_job stop" as uid <%= @user %> and gid <%= @user %>
+ group <%= @app_name %>_jobs
View
2  cookbooks/elasticsearch/templates/default/elasticsearch.in.sh.erb
@@ -28,7 +28,7 @@ JAVA_OPTS="$JAVA_OPTS -Djline.enabled=true"
#JAVA_OPTS="$JAVA_OPTS -XX:+UseCompressedOops"
# This stops an annoying warning
-JAVA_OPTS="-server"
+JAVA_OPTS="$JAVA_OPTS -server"
JAVA_OPTS="$JAVA_OPTS -XX:+UseParNewGC"
JAVA_OPTS="$JAVA_OPTS -XX:+UseConcMarkSweepGC"
JAVA_OPTS="$JAVA_OPTS -XX:+CMSParallelRemarkEnabled"
View
15 cookbooks/main/recipes/default.rb
@@ -4,20 +4,29 @@
# }
#end
+# require_recipe 'postgres'
+
+# uncomment if you want to run couchdb recipe
+# require_recipe "couchdb"
+
+# uncomment to turn use the MBARI ruby patches for decreased memory usage and better thread/continuationi performance
+# require_recipe "mbari-ruby"
+
# uncomment to turn on thinking sphinx/ultra sphinx. Remember to edit cookbooks/sphinx/recipes/default.rb first!
# require_recipe "sphinx"
#uncomment to turn on memcached
-# require_recipe "memcached"
+require_recipe "memcached"
#uncomment ot run the riak recipe
# require_recipe "riak"
#uncomment to run the authorized_keys recipe
-#require_recipe "authorized_keys"
+# require_recipe "authorized_keys"
#uncomment to run the eybackup_slave recipe
-#require_recipe "eybackup_slave"
+require_recipe "eybackup_slave"
+require_recipe "delayed_job"
#uncomment to run the ssmtp recipe
#require_recipe "ssmtp"
Something went wrong with that request. Please try again.