Project

General

Profile

Actions

Crunch2 installation » History » Revision 3

« Previous | Revision 3/18 (diff) | Next »
Tom Clegg, 06/16/2016 02:23 PM


Crunch2 installation

(DRAFT -- when ready, this will move to doc.arvados.org→install)

Set up a crunch-dispatch service

Currently, dispatching containers via SLURM is supported.

Install crunch-dispatch-slurm on a node that can submit SLURM jobs. This can be the slurm controller node, a worker node, or any other node that has the appropriate SLURM/munge configuration.

sudo apt-get install crunch-dispatch-slurm

Create a privileged token for use by the dispatcher. If you have multiple dispatch processes, you should give each one a different token.

apiserver:~$ cd /var/www/arvados-api/current
apiserver:/var/www/arvados-api/current$ sudo -u webserver-user RAILS_ENV=production bundle exec script/create_superuser_token.rb
zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz

Save the token on the dispatch node, in /etc/sv/env/ARVADOS_API_TOKEN

Example runit script:

#!/bin/sh

export ARVADOS_API_HOST=uuid_prefix.your.domain

exec chpst -e ./env -u crunch crunch-dispatch-slurm

Ensure the crunch user exists -- and has the same UID, GID, and home directory -- on the dispatch node and all SLURM compute nodes. Ensure the crunch user can run docker containers on SLURM compute nodes.

Install crunch-run on all compute nodes

sudo apt-get install crunch-run

Enable cgroup accounting on all compute nodes

Check https://docs.docker.com/engine/installation/linux/ for instructions specific to your distribution.

For example, on Ubuntu:
  1. Update /etc/default/grub to include:
    GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1" 
    
  2. sudo update-grub
  3. Reboot

Configure docker

Test the dispatcher

Updated by Tom Clegg almost 8 years ago · 3 revisions