Indeed currently there is no integration between Flexlm and SLURM, but some ideas are being passed around what to do about it. I am one of the original designers and developers of Platform License Scheduler.
The item 1) you mentioned is certainly the first step but consider even that may not be easy, just imagine an electronic design application that is running in the cluster and jobs checking in and out hundreds of features per second. It is important to choose which features has to be managed by the scheduler and it has to be 'well behaved' one, meaning the behavior of the application from license perspective has to be well know. One of the difficulties is to understand how the application uses the licenses as you observed in item 2). The only way to get license information out of Flexlm is indeed lmstat, which could be quite slow if the license servers and handling many applications there is no other supported interface, a possible alternative could be parsing the lmgrd log file. */David* On Tue, Jul 2, 2013 at 2:57 PM, Hongjia Cao <[email protected]> wrote: > > I don't think there is integration with FlexLM in SLURM. There is a > simple license management in SLURM by counting the licenses used. > > I am also considering the interaction between SLURM and FlexLM, but I > have no good result yet. The difficulty is that FlexLM has no open API > (except for a command line tool lmutil). And the function provided by > FlexLM is not enough for SLURM to totally controlling the licenses. For > now, I think the following issues should be addressed: > > 1. Keep the license count in SLURM consistent with FlexLM. There may be > applications run out of SLURM which may check out licenses. And a job > may request wrong number of licenses (intentionally or unintentionally). > > 2. Force a job to release the licenses on job termination, even if there > are job processes not killed. With LS-DYNA I have run into the case that > after the application completes, the licenses will not be released until > a long time period (even with out job processes left). LS-DYNA is not > using FlexLM for license control and I am not sure whether this could > happen for FlexLM managed applications. > > To handle various applications and the licenses managers, a license > plug-in should be introduced. But the interface of the plug-in is not > clear yet. > > I'd like to know if anyone has experiences with SLURM integration with > FlexLM or other license managers. Any requirements or considerations > would also be welcomed. > > > 在 2013-07-01一的 17:17 -0700,Eva Hocks写道: > > > > > > The documentation announced the integration since 2.4. I am running > > slurm 2.4.3. > > > > Could anyone please point me to where I can find how to onfigure the > > FlexLM license manager integration with slurm? > > > > > > Thanks > > Eva > >
