Page MenuHomeSoftware Heritage

Bootstrap elastic workers role
ClosedPublic

Authored by ardumont on Apr 20 2022, 12:09 PM.

Details

Summary

Those worker nodes should be able to run docker containers. As an implementation detail,
we mount the main docker partition as zfs volume with compression enable to keep disk
use in check. It's expected they have an extra /dev/vdb partition to be
provided (through the provisioner vagrant or terraform-proxmox).

Related to T4144

Test Plan

vagrant up and puppet agent are ok:

P1341

Diff Detail

Repository
rSPSITE puppet-swh-site
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

vsellier added inline comments.
Puppetfile
211
site-modules/profile/manifests/zfs/docker.pp
24

as the profile is specialized for docker, it should be possible to add a dependency to configure the zfs dataset and the docker package installation to avoid to hide the previous content of '/var/lib/docker' on freshly installed servers.

This revision now requires changes to proceed.Apr 20 2022, 1:26 PM
ardumont marked an inline comment as done.

Adapt according to review

ardumont retitled this revision from Bootstrap elastic workers' role to Bootstrap elastic workers role.Apr 20 2022, 2:52 PM
ardumont edited the summary of this revision. (Show Details)

Use the correct requirement on docker

Thanks, we will look later how to have a better zpool initialization

This revision is now accepted and ready to land.Apr 20 2022, 5:48 PM

Rebase with the right commit range

This revision was automatically updated to reflect the committed changes.