X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/54e8449c99526fe3ff2ae7e173be92822e0f6615..12c9306193a1ec1a427e0ffda3f317a5f9ae091a:/doc/install/install-crunch-dispatch.textile diff --git a/doc/install/install-crunch-dispatch.textile b/doc/install/install-crunch-dispatch.textile index 28e7ffef52..4c0209820f 100644 --- a/doc/install/install-crunch-dispatch.textile +++ b/doc/install/install-crunch-dispatch.textile @@ -7,15 +7,39 @@ navorder: 3 h1. Crunch setup +The dispatcher normally runs on the same host/VM as the API server. + h4. Perl SDK dependencies * @apt-get install libjson-perl libwww-perl libio-socket-ssl-perl libipc-system-simple-perl@ h4. Python SDK dependencies +On controller and all compute nodes: + * @apt-get install python-pip@ * @pip install --upgrade google-api-python-client@ +h4. Likely crunch job dependencies + +On compute nodes: + +* @pip install --upgrade pyvcf@ + +h4. Redis + +On controller: + +* @apt-get install redis-server@ + +h4. Crunch user account + +On compute nodes and controller: + +* @adduser crunch@ + +The crunch user should have the same UID, GID, and home directory on all compute nodes and on the controller. + h4. Repositories Crunch scripts must be in git repositories in @/var/cache/git/*/.git@ (or whatever is configured in @services/api/config/environments/production.rb@). @@ -30,14 +54,14 @@ set -e while sleep 60 do cd /path/to/arvados/services/api - setuidgid www-data env RAILS_ENV=production bundle exec ./script/import_commits.rb 2>&1 + setuidgid www-data env RAILS_ENV=production /usr/local/rvm/bin/rvm 2.0.0 do bundle exec ./script/import_commits.rb 2>&1 done Once you have imported some commits, you should be able to create a new job:
-read -rd "\000" newjob <&1
+RAILS_ENV=production /usr/local/rvm/bin/rvm 2.0.0 do bundle exec ./script/crunch-dispatch.rb 2>&1