Problem Summary
The snapshotter supports "Hot updating mirror configurations" (remote.mirrors_config.dir), which injects a mirrors list into nydusd's backend config before each mount. This allows routing blob fetches through a registry mirror (e.g., a pull-through registry:2) without restarting the daemon.
nydusd removed all mirror-related configuration in dragonflyoss/nydus#1723. The mirrors field in nydusd's backend JSON config is no longer recognized. As a result, mirror configurations loaded from remote.mirrors_config.dir are silently ignored by nydusd.
Proposed Improvement
The nydusd proxy config is not a valid alternative here: it implements standard HTTP forward proxy protocol (CONNECT tunnel), while registry mirrors like registry:2 speak the OCI distribution API.
Move mirror selection into the snapshotter itself. Instead of injecting a mirrors list into nydusd config, the snapshotter rewrites the host field in the backend config before mount, pointing nydusd directly at the mirror host.
Additional Context
No response
Are you willing to submit PR?
Problem Summary
The snapshotter supports "Hot updating mirror configurations" (
remote.mirrors_config.dir), which injects amirrorslist into nydusd's backend config before each mount. This allows routing blob fetches through a registry mirror (e.g., a pull-throughregistry:2) without restarting the daemon.nydusd removed all mirror-related configuration in dragonflyoss/nydus#1723. The
mirrorsfield in nydusd's backend JSON config is no longer recognized. As a result, mirror configurations loaded fromremote.mirrors_config.dirare silently ignored by nydusd.Proposed Improvement
The nydusd
proxyconfig is not a valid alternative here: it implements standard HTTP forward proxy protocol (CONNECT tunnel), while registry mirrors likeregistry:2speak the OCI distribution API.Move mirror selection into the snapshotter itself. Instead of injecting a
mirrorslist into nydusd config, the snapshotter rewrites thehostfield in the backend config before mount, pointing nydusd directly at the mirror host.Additional Context
No response
Are you willing to submit PR?