Skip to content

Archive Trac docs port pool

madscatt edited this page Jun 20, 2026 · 1 revision

Docs Port Pool

Legacy Trac archive page imported from docs_port_pool. Source: https://genapp.rocks/wiki/wiki/docs_port_pool. Review age, links, and examples before treating as current.

port pool notes

issues

background

  • some modules fields might need to startup their own server
  • we will have a mongo'd pool of servers
    • with timestamp, job info
  • scanner daemon to clean up
    • or maybe simpler check at the time of assigning

assumptions

  • eventually this will get tunneled to to the same port on the host server
  • currently works only on localhost jobs
  • https will need multiplexing

structures

  • appconfig, convert resources to "run" versions and add the optional key resources:xyz:userports
    • e.g to open ports on the localhost
    • remote clusters will need tunneling
 ,"resources" : {
   "local" : {
     "run" : ""
     ,"userports" : "8000-10000 12000-16000"
    }
    ...
  }
  • json input object to modules gets per field ports when field is port assigned
    • inserted by base.php using module json
    • e.g. with two output fields (id1, id2) requiring ports,
  ,"_userports" : {
     "ports" : {
        "id1" : 8000
        ,"id2" : 8001
     }
  }
  • mongo record global.userports
    • _id:port, app:application jobid:uuid timestamp:lastrefresh

todo

Clone this wiki locally