Extend health check startup to 60 minutes, set $SHELL for docker container, and bump the GC memory limit from 500MiB to 2GiB #1359
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The health check endpoint doesn't work until the app has fully started, which means after migrations have run and the initial scan (if one is needed) has completed. If someone has large shares or a large amount of data to be migrated, the container could go unhealthy and enter a reboot loop before startup is complete.
Setting
$SHELLresolves a warning about it being missing, and enables docker users to write scripts that default to/usr/bin/bashas the executable, where currently they must specify it for each script.Bumping the GC limit should give some extra headroom for folks with a large amount of shares. The app runs fine with 500MiB, but the amount of memory needed to complete a share scan does scale with the number of shares/files. If people find that the container starts abusing memory I'll bump this down to 1 GiB.