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

Split cache hashed directory keys to avoid any FS-specific limits #606

Merged
merged 1 commit into from
Nov 16, 2023

Conversation

dannycjones
Copy link
Contributor

Description of change

This change ended up being nice and small!

To mitigate risk from FS-specific limits on the number of directory entries, we split the hashed cache key used as a directory name into two, and have two levels of directories. The index where we split is totally arbitrary, this is just what Git uses and I'm sure it works well.

I'm opening this in draft to avoid conflicting with #598. I'd prefer to rebase and merge this after that PR is merged.

Relevant issues:

Does this change impact existing behavior?

No change, this is behind a feature flag for caching.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and I agree to the terms of the Developer Certificate of Origin (DCO).

Signed-off-by: Daniel Carl Jones <djonesoa@amazon.com>
@dannycjones dannycjones temporarily deployed to PR integration tests November 15, 2023 10:51 — with GitHub Actions Inactive
@dannycjones dannycjones temporarily deployed to PR integration tests November 15, 2023 10:51 — with GitHub Actions Inactive
@dannycjones dannycjones temporarily deployed to PR integration tests November 15, 2023 10:51 — with GitHub Actions Inactive
@dannycjones dannycjones temporarily deployed to PR integration tests November 15, 2023 10:51 — with GitHub Actions Inactive
@dannycjones dannycjones marked this pull request as ready for review November 16, 2023 10:44
@dannycjones dannycjones added this pull request to the merge queue Nov 16, 2023
Merged via the queue into awslabs:main with commit 3264f2b Nov 16, 2023
18 checks passed
@dannycjones dannycjones deleted the split-cache-dirs branch November 16, 2023 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants