Replies: 1 comment
-
That all sounds very good to me, however...I'd like to make a modest amendment to the proposed approach. Rather than using a Thus, the This allows the relay to be totally unaware of the files that it is serving (although, I think the framework will peek at the file and guess what the All of the "Pbenchisms" would be encapsulated (by the Agent) in the metadata file, and the relay wouldn't need to know anything about it. From the relay's perspective, there would be two files uploaded, and then those two files would be downloaded, and it wouldn't have to do or store anything out of band -- it just receives and sends individual files. If we want to transfer something fancier than a single file (pair), we have two options. We can load up the Just as an aside, your comment about |
Beta Was this translation helpful? Give feedback.
-
This attempts to begin to capture and formalize discussions about the Pbench Relay protocol, as a sketch of how the new Pbench Server
POST /relay/{uri}
API might work internally. I've been starting to think about how to refactor the existingupload
code in order to accommodate both the "push" and "pull" models. This is complicated by the divergent and simplistic nature of the PoC relay code. @webbnh and I have discussed the fairly simplistic idea of segregating each upload into two distinct files which the server can pull separately: this flow leverages that idea.GET <base>?metadata=true
returns anapplication/json
document defining "metadata" including an MD5 hash and a filename. (And possibly additional data such as Pbench Server metadata as a JSON object.)GET <base>?metadata=false
returns theapplication/octet-stream
of the tarball.For example, the relay metadata response might look like this:
On activation, the Pbench Server relay API will
Beta Was this translation helpful? Give feedback.
All reactions