-
Notifications
You must be signed in to change notification settings - Fork 148
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
Per-user packages #99
Comments
@inureyes' 2nd idea:
|
After resolving the vfolder issue, we need the followings in the docs/manuals:
|
For now, let's just auto-mount an auto-created sub-directory for the user ID in the group-level dot-prefixed vfolders when there is no corresponding user-level dot-prefixed vfolders. e.g., When there is a group vfolder |
Tracked by |
Resolved with lablup/backend.ai-manager#224. |
There are many customer requests to preserve the home directory contents, mainly user-installed packages.
The problem is, since our home directories are bind-mounted from each agent's scratch directory, they are not present in Docker images even we perform
docker commit
against running sessions. The technical reasons to use scratch directories are: 1) better I/O performance, 2) agent customization of home directory before starting containers, and 3) enforcement of quota limits.Another problem is that some customer sites do not allow use of per-user vfolders due to their organizational policy, though we are offering auto-mounts of dot-prefixed per-user vfolders (e.g.,
.local
and.ssh
) if present to all sessions (#57) as an alternative to the above problem.This issue tackles the first problem: per-user packages.
It is difficult not to use the scratch directories because #98 and many other Backend.AI features (lablup/backend.ai-manager#211, #77, ...) rely on pre-population of the scratch (=home) directory before container starting.
Automatically mapping
.local
vfolder for each user and each kernel image may be a technically viable solution as @inureyes proposed, but this can be quickly bloated when users import custom images frequently and images are updated frequently, and also it violates the limitation imposed by the second problem since there is no way to restrict filesystem access by the purpose (e.g., installation of packages).Let's discuss ideas for making user-install packages persistent across different sessions.
┆Issue is synchronized with this Asana task by Unito
The text was updated successfully, but these errors were encountered: