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
Branch
staging
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 28594
Build 44695: arc lint + arc unit

Event Timeline

vsellier added inline comments.
Puppetfile
212 ↗(On Diff #27534)
site-modules/profile/manifests/zfs/docker.pp
24 ↗(On Diff #27534)

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.