Dfcache support to import persistent cache task to dfdaemon in Node by UDS #4025
Labels
client
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
on-hold
Milestone
Description
This feature only needs to be implemented on the Rust Client.
Due to the import protocol between
dfcache
anddfdaemon
, it's possible to import a file from a fixed path on the host node directly into thedfdaemon
process, refer to https://github.com/dragonflyoss/api/blob/main/proto/dfdaemon.proto#L174.However, in a Kubernetes environment, Dragonfly's
dfdaemon
is typically deployed as a DaemonSet, meaning there is onedfdaemon
instance running on each Node.Therefore, when a user inside a Pod utilizes
dfcache
to import a file, it necessitates mounting the Unix Domain Socket (UDS) of thedfdaemon
running on that specific Node into the user's Pod.Subsequently,
dfcache
communicates via this mounted UDS to transfer the file's content todfdaemon
. Upon receiving the content,dfdaemon
writes the file to its configured storage location.Link
Client Repo: https://github.com/dragonflyoss/client
The text was updated successfully, but these errors were encountered: