Metadata from metadata servers should only be downloaded when needed
|Reported by:||jcnelson||Owned by:||jcnelson|
Description (last modified by jcnelson)
Instead of having a metadata server download and then validate the metadata from another metadata server, and keep all of the remote server's metadata locally, just verify that the remote metadata server is still alive.
- A remote metadata server is represented in the master copy by a specially-named file .$metadata$ in an (empty) directory. That file is a symlink that links to the URL of the metadata server.
- When mdcgi generates metadadata, it looks for the .$metadata$ file in the directory. If it exists, then it pairs that directory with the URL that .$metadata$ links to.
- The client interprets a directory paired with a URL as a metadata server--the client resolves the metadata server, gets its metadata, and populates that directory with it.