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

speed up ensuring correct file-permissions are set #547

Merged
merged 2 commits into from
Feb 27, 2024

Conversation

SvenRoederer
Copy link
Contributor

During each container start the permissions for all relevant files are changed to have write-permission. For large data folders this will delay startup. Changing the permissions always also updates ctime of the file, which will trigger external backup solutions to include all files, even the content did not change.

This PR will check for incorrect permissions via "find" and only updated these files.

@SvenRoederer SvenRoederer changed the title speed up ensuring correct file-permissions speed up ensuring correct file-permissions are set Feb 27, 2024
@SvenRoederer SvenRoederer force-pushed the improve-set-permissions branch from 3494f61 to b5c4eac Compare February 27, 2024 14:42
assets/runtime/functions Outdated Show resolved Hide resolved
assets/runtime/functions Outdated Show resolved Hide resolved
@jcormier jcormier self-assigned this Feb 27, 2024
assets/runtime/functions Outdated Show resolved Hide resolved
Modifying the permissions only for files that have wrong permissions will speed up container start. A welcome sideeffect is no change of ctime, which helps to prevent not needed external backups.
@SvenRoederer SvenRoederer force-pushed the improve-set-permissions branch from b5c4eac to 062e3ff Compare February 27, 2024 16:01
@SvenRoederer SvenRoederer marked this pull request as ready for review February 27, 2024 16:10
@SvenRoederer
Copy link
Contributor Author

Runtime tested this as backport for my existing v4.1 instance. Difference to master is so small, that there is no other result to be expected.

@jcormier jcormier merged commit 627a0f0 into sameersbn:master Feb 27, 2024
1 check passed
@SvenRoederer SvenRoederer deleted the improve-set-permissions branch February 27, 2024 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants