mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #1952] [Feature Request] Support IDLE_UNLOAD_S environment variable in Docker #777
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#777
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bsvdoom on GitHub (Oct 11, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1952
Strata already supports automatic model unloading after a period of inactivity through the idle_unload_s configuration option.
However, the Docker setup currently requires manually editing the generated model configuration file under /data/config/strata-.json to enable this feature.
This setting can be lost when REINSTALL=1 regenerates the configuration. It would be much more convenient to configure idle unloading directly through Docker environment variables, especially for users running Strata alongside other GPU workloads or local model servers.
Proposed solution
Please add support for an IDLE_UNLOAD_S environment variable in the Docker entrypoint.
For example, in .env or compose.yml:
IDLE_UNLOAD_S=120
This would automatically unload the model after 120 seconds without requests and allow it to load again when a new request arrives.
Expected behavior
IDLE_UNLOAD_S configures the existing idle_unload_s functionality.
The setting is applied when the container starts, including when an existing model configuration is reused.
The value survives configuration regeneration and REINSTALL=1 without requiring manual JSON edits.
When the variable is unset, Strata retains its current default behavior.
The Docker documentation lists the new environment variable and explains how to configure it.
Use case
I run Strata in Docker on a machine that also runs other local LLMs and GPU-intensive applications. I want the Strata container and API to remain available while the model releases VRAM automatically when idle.
Currently, this requires manually editing the generated JSON configuration. Exposing the existing option through an environment variable would make the Docker setup easier to maintain and automate.
Thanks for Strata and for considering this improvement!
@Niko1221 commented on GitHub (Oct 19, 2026):
Thanks for taking the time to report this.
We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.