mprov-ng / mprov_jobserver

The heart and soul of mProv. The mprov jobserver is the background work horse that handles all the heavy lifting.
Apache License 2.0
2 stars 1 forks source link

Can the jobserver also handle image serving requests? #2

Closed jhujasonw closed 2 years ago

jhujasonw commented 2 years ago

Investigate if the job server can be used as the "image server" so that it can handle serving image sync requests.

jhujasonw commented 2 years ago

Some quick notes:

  • PLUGIN: Job module: image-sync

    • Params: images_to_sync, image_source_server (null or the id of a job server with the updated image.)
    • Target_server: jobserver to run on
    • MPCC creates a new image-sync job for every job server registered with image-sync
  • PLUGIN: Secondary server sets up a simple http server to serve images to pxelinux

    • The job server handling image-update jobs must also run the first image hosting server. MPCC will point to it via 302 from /images/image_name
    • MPCC does not hold the images itself.
jhujasonw commented 2 years ago

The answer to the question this ticket seems to be a YES with the following: