Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document how to set up read-only mounted shared artifact cache #17

Open
terabyte opened this issue Mar 9, 2018 · 0 comments
Open

Document how to set up read-only mounted shared artifact cache #17

terabyte opened this issue Mar 9, 2018 · 0 comments

Comments

@terabyte
Copy link
Member

terabyte commented Mar 9, 2018

In normal functioning, QBT will extract an artifact from the cache each time it is needed during a build. This means if you build 100 packages, and each depends upon package Foo, then you extract 100 temporary copies of package Foo.

For performance reasons, it is possible to instruct QBT to extract an artifact only once and instead symlink it in each time it is used, but this is dangerous because if any build misbehaves, it might alter that artifact, poisoning your build's own cache.

We have developed a "best of both worlds" setup to address this but it is complex. Most users won't care to do this but for build nodes or places where performance is sensitive, you can instruct QBT to symlink and use a read-only bind mount to only access the artifacts via a read-only mountpoint during the package builds. The code to do this is all there but we should document how to set this up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant