I'm not sure what code you are replacing. You might try taking a look at that Scheduler Plugin API page and see if you can put your code into a scheduler plugin, replacing the builtin scheduler. I haven't tried that, though.
Kenneth On Fri, Apr 01, 2016 at 09:51:43AM -0700, Naajil Aamir wrote: > Thanks a lot Kenneth for your reply. I have currently modified the builtin > code and printed the values of different variables to see what is the value > of a particular variable at different times under different cases. My > question is how would I make slurm run my new builtin code instead of the > currently running version. Im kind of new to slurm so I dont know most of > its functions > thanks in advance > best regards > Naajil > > On Fri, Apr 1, 2016 at 9:41 PM, K Yoshimoto <[email protected]> wrote: > > > > > Hi, > > > > It depends on how your scheduler works. If it is an external polling > > scheduler, one that periodically gets job and node information from SLURM, > > then decides when and where to run jobs, then you might want to use the > > wiki or wiki2 interfaces. These are described here: > > > > http://slurm.schedmd.com/schedplugins.html > > > > I've integrated my own scheduler with SLURM through the wiki interface. > > This is a while back, so I'm not sure if the specifics have changed. > > Back then, this involved activating wiki by modifying > > slurm.conf and wiki.conf. > > > > slurm.conf: > > ... > > SchedulerType=sched/wiki > > SchedulerPort=7321 > > ... > > > > wiki.conf: > > ... > > AuthKey=<some auth key> > > ... > > > > This causes submitted jobs to go into JobHeld, with Priority=0. > > Now, SLURM commands or API calls can be used to start jobs. > > > > Something like: > > scontrol update JobId=<job id> ReqNodeList=<nodelist> Priority=1 > > > > would then cause the job to start on the specified nodes. > > > > I have a slideshow with some of this info: > > http://users.sdsc.edu/~kenneth/ipn.2010/workshop/slideshow.html > > > > Not sure how you would go about it, if your scheduler is meant to > > replace pieces of SLURM. > > > > You might also be interested in the PySlurm package, which provides > > a Python interface to SLURM: > > http://www.gingergeeks.co.uk/pyslurm/ > > > > Kenneth > > > > > > > > On Fri, Apr 01, 2016 at 04:44:44AM -0700, Naajil Aamir wrote: > > > Hi there > > > I want to know how can i embed my own job scheduler into slurm which i > > > coded myself. I have an fyp in which i have to code a scheduler on slurm. > > > Ive changed the existing builtin code to see what happens where and I > > would > > > like for that code to run instead of the builtin code, Secondly what > > > benchmarks are suitable to check slurm scheduler performance. > >
