Skip to content

docs: advise against shared CODER_CACHE_DIRECTORY dir usage in note #14216

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

Merged
merged 2 commits into from
Aug 8, 2024

Conversation

dannykopping
Copy link
Contributor

This directory is used for several purposes such as caching coder binaries, downloaded terraform providers, and other use-cases.

We don't take the necessary preventative steps to prevent multiple processes from clobbering each others' files, should they share this directory.

This option might seem compelling to unsuspecting operators who want to, for example, ensure terraform providers are always cached when using multiple provisionerd replicas, by sharing the cache between them. This would lead to potentially problematic behaviour right now, and we should heavily discourage this approach.

Signed-off-by: Danny Kopping <danny@coder.com>
@dannykopping dannykopping changed the title docs: add note advising against shared CODER_CACHE_DIRECTORY dir usage docs: advise against shared CODER_CACHE_DIRECTORY dir usage in note Aug 8, 2024
Signed-off-by: Danny Kopping <danny@coder.com>
@dannykopping dannykopping enabled auto-merge (squash) August 8, 2024 12:36
@dannykopping dannykopping merged commit d79a7ad into main Aug 8, 2024
28 checks passed
@dannykopping dannykopping deleted the dk/cache-note branch August 8, 2024 12:42
@github-actions github-actions bot locked and limited conversation to collaborators Aug 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants