Git Product home page Git Product logo

Comments (4)

ralphbean avatar ralphbean commented on July 17, 2024

Thinking out loud here... MM2 does a number of things. Among them:

  • It scrapes the master mirror to figure out what should be on the remote mirrors.
  • It scrapes the remote mirrors to figure out what they do and don't have with respect to that master list.

So, if we have pulp simply put the containers in place on the master mirror, then both of those phases should just work.

Proposal: The dynamically generated mirrorlist intended for clients is another story. When people go to pull down the images from crane, they'll be hitting its API, I presume. Crane would then need to somehow take the metadata about the request (the IP and the requested resource) and forward that to the mirrorlist behind the scenes. Mirrorlist could then return a list of possible mirrors which Pulp then forwards back to the client.

This would require 1) a patch or plugin to pulp which does the backend query to mirrorlist and 2) a patch to mirrorlist to serve requests on behalf of another service - i.e., it would have to accept an IP as a querystring argument, or an X-Forwarded-Host HTTP header on the request, or something like that.

from mirrormanager2.

mdomsch avatar mdomsch commented on July 17, 2024

Mirror list already takes ?ip= query argument, as well as parses out
x-forwarded-for headers.
On Feb 8, 2016 4:13 AM, "Ralph Bean" [email protected] wrote:

Thinking out loud here... MM2 does a number of things. Among them:

  • It scrapes the master mirror to figure out what should be on the
    remote mirrors.
  • It scrapes the remote mirrors to figure out what they do and don't
    have with respect to that master list.

So, if we have pulp simply put the containers in place on the master
mirror, then both of those phases should just work.

Proposal: The dynamically generated mirrorlist intended for clients is
another story. When people go to pull down the images from crane, they'll
be hitting its API, I presume. Crane would then need to somehow take the
metadata about the request (the IP and the requested resource) and forward
that to the mirrorlist behind the scenes. Mirrorlist could then return a
list of possible mirrors which Pulp then forwards back to the client.

This would require 1) a patch or plugin to pulp which does the backend
query to mirrorlist and 2) a patch to mirrorlist to serve requests on
behalf of another service - i.e., it would have to accept an IP as a
querystring argument, or an X-Forwarded-Host HTTP header on the request,
or something like that.


Reply to this email directly or view it on GitHub
#160 (comment)
.

from mirrormanager2.

ralphbean avatar ralphbean commented on July 17, 2024

❤️ @mdomsch++ ❤️

from mirrormanager2.

mdomsch avatar mdomsch commented on July 17, 2024

Awww, and Valentine's is this week too. Thanks Ralph!
On Feb 8, 2016 6:57 AM, "Ralph Bean" [email protected] wrote:

[image: ❤️] @mdomsch https://github.com/mdomsch++ [image: ❤️]


Reply to this email directly or view it on GitHub
#160 (comment)
.

from mirrormanager2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.