Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>EDIT: Please keep in mind that this answer is from 2013. The products mentioned here have likely evolved. I have updated the documentation link to reflect changes in the solr clustering wiki. I encourage you to continue your research after reading this information.</p> <p>ORIGINAL: It only really makes sense to run solr on beanstalk instances if you are planning to only ever use the single server deploy. The minute that you want to scale your app you will need to configure your beanstalk environment to either create a <a href="https://cwiki.apache.org/confluence/display/solr/Result+Clustering" rel="nofollow">solr cluster</a> or move to something like CloudSearch. If you are unfamiliar with ec2 lifecycles and solr deployments then CloudSearch will almost certainly save you time (read money).</p> <p>If you do want to run solr on a single instance then you can use rake to launch it by adding a file to your local repo named <code>.ebextensions/solr.config</code> with the following contents:</p> <pre><code>container_commands: 01create_post_dir: command: "mkdir -p /opt/elasticbeanstalk/hooks/appdeploy/post" ignoreErrors: true 02killjava: command: "killall java" test: "ps uax | grep java | grep root" ignoreErrors: true files: "/opt/elasticbeanstalk/hooks/appdeploy/post/99_start_solr.sh": mode: "755" owner: "root" group: "root" content: | #!/usr/bin/env bash . /opt/elasticbeanstalk/support/envvars cd $EB_CONFIG_APP_CURRENT su -c "RAILS_ENV=production bundle exec rake sunspot:solr:start" $EB_CONFIG_APP_USER su -c "RAILS_ENV=production bundle exec rake db:seed" $EB_CONFIG_APP_USER su -c "RAILS_ENV=production bundle exec rake sunspot:reindex" $EB_CONFIG_APP_USER </code></pre> <p>Please keep in mind that <strong>this will cause chaos</strong> if you are using autoscaling.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload