hook_in_sam - 24leesten/SimU-Wiki GitHub Wiki

Hook in a SAM(Workhorse)

  1. Clone the SimU repo into the computer your intend to be the workhorse (NOTE: you only need the SAM code for workhorse, you can remove all the other files and folders if you do not plan to run the website on this machine).

  2. Run the SAM with

    python sam/sam.py

This will run the SAM server on port 8080

  1. Add your sam information to website database. This can be done manually or in the admin section of the website. The database requires the ip and port number of the machine running the SAM, as well as the max number of jobs that the website will allow at any time. (NOTE: If you add multiple SAM to your website, they must all have the same packages, as there is currently no way to deal with tying particular SAMs to particular packages).