This page describes how to configure a compute node so that it can be used to run containers dispatched by Arvados.
config.yml
.See Set up Docker
FUSE must be configured with the user_allow_other
option enabled for Crunch to set up Keep mounts that are readable by containers. Install this file as /etc/fuse.conf
:
# Allow non-root users to specify the 'allow_other' or 'allow_root' # mount options. user_allow_other
The arvados-docker-cleaner
program removes least recently used Docker images as needed to keep disk usage below a configured limit.
Create a file /etc/arvados/docker-cleaner/docker-cleaner.json
in an editor, with the following contents.
{
"Quota": "10G",
"RemoveStoppedContainers": "always"
}
Choosing a quota: Most deployments will want a quota that’s at least 10G. From there, a larger quota can help reduce compute overhead by preventing reloading the same Docker image repeatedly, but will leave less space for other files on the same storage (usually Docker volumes). Make sure the quota is less than the total space available for Docker images.
This also removes all containers as soon as they exit, as if they were run with docker run --rm
. If you need to debug or inspect containers after they stop, temporarily stop arvados-docker-cleaner or configure it with "RemoveStoppedContainers":"never"
.
# yum install python-arvados-fuse crunch-run arvados-docker-cleaner
# apt-get install python-arvados-fuse crunch-run arvados-docker-cleaner
# systemctl enable --now arvados-docker-cleaner
# systemctl status arvados-docker-cleaner
[...]
If systemctl status
indicates it is not running, use journalctl
to check logs for errors:
# journalctl -n12 --unit arvados-docker-cleaner
The content of this documentation is licensed under the
Creative
Commons Attribution-Share Alike 3.0 United States licence.
Code samples in this documentation are licensed under the
Apache License, Version 2.0.