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

Add more cache configuration options. #601

Merged
merged 1 commit into from
May 13, 2021
Merged

Add more cache configuration options. #601

merged 1 commit into from
May 13, 2021

Conversation

manthey
Copy link
Member

@manthey manthey commented May 12, 2021

Added cache_tilesource_memory_portion and cache_tilesource_maximum config options. The number of tile sources that are caches is the smallest of (a) the number of available file handles divided by a factor and reduced by a constant, (b) the available memory divided by the portion (default 8) and the expected size of the largest tile source, (c) the cache maximum value. Before, the portion was always 8 and there was no way to specify a maximum value.

This can be applied in girder, for instance via the [large_image] section of the config file with something like::

    cache_tilesource_memory_portion = 16
    cache_tilesource_maximum = 64

Added cache_tilesource_memory_portion and cache_tilesource_maximum
config options.  The number of tile sources that are caches is the
smallest of (a) the number of available file handles divided by a factor
and reduced by a constant, (b) the available memory divided by the
portion (default 8) and the expected size of the largest tile source,
(c) the cache maximum value.  Before, the portion was always 8 and there
was no way to specify a maximum value.

This can be applied in girder, for instance via the [large_image]
section of the config file with something like::

    cache_tilesource_memory_portion = 16
    cache_tilesource_maximum = 64
@manthey manthey merged commit 939e51a into master May 13, 2021
@manthey manthey deleted the more-cache-config branch May 13, 2021 12:04
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.

1 participant