Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elasticsearch runs out of heap immediately on large datasets #25

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 11 additions & 0 deletions 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
}
4 changes: 4 additions & 0 deletions 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
@@ -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
Expand Up @@ -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"
Expand Down
15 changes: 12 additions & 3 deletions cookbooks/main/recipes/default.rb
Expand Up @@ -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"
Expand Down