Periodically "touch" the IPC socket files to prevent inadvertent cleanup by systemd-tmpfilesd #1895
Labels
comp:common
Related to Common component
type:enhance
Enhance component, behavior, internals without user-facing features
urgency:2
With time limit, it should be finished within it; otherwise, resolve it when no other chores.
Milestone
We need to periodically refresh the atime/mtime timestamps so that IPC socket files do not get deleted.
Unlike normal files, the atime/mtime of IPC socket files are not updated by reading/writing through them without re-opening the file descriptors.
For example, we could update atime/mtime on every 1 hour.
How to use
os.utime()
:Places to update
ai.backend.common
module.Workaround
Until we add this feature, we can workaround the issue by changing the ipc-base-path configuration to a directory outside
/tmp
or adding additoinalsystemd-tmpfilesd
rules to exempt the Backend.AI IPC directories.How to update
/etc/tmpfiles.d/tmp.conf
:The text was updated successfully, but these errors were encountered: