IBM Spectrum LSF license management with OpenLM LicOps
OpenLM LicOps connects IBM Spectrum LSF (Load Sharing Facility, formerly Platform LSF) to your license servers. Each job is checked when it is submitted and when it starts, sent to a license server that can serve it, and recorded with the reason it ran, waited or was refused.
Key facts
OpenLM LicOps connects to IBM Spectrum LSF through its own hooks, next to LSF's own scheduling.
- Connects through
- An esub on the submit hosts, and queue PRE_EXEC and POST_EXEC hooks
- Works next to
- LSF's own scheduling, with or without LSF License Scheduler
- Who it's for
- LSF administrators, EDA and HPC leads, license administrators
What is IBM Spectrum LSF?
IBM Spectrum LSF (LSF, short for Load Sharing Facility) is a commercial workload manager from IBM. It was formerly called IBM Platform LSF, and many teams still call it Platform LSF or just LSF.
It is common in chip design and other engineering compute farms, where it schedules jobs across large clusters of hosts.
How LSF handles licenses today
IBM offers LSF License Scheduler, a separate component that shares licenses between users and projects and holds LSF jobs until their license tokens are available. It natively supports FlexNet and Reprise RLM.
It tracks the tokens it hands to LSF jobs itself, and learns about use outside LSF by polling lmstat at intervals. Interactive Linux tools can be governed too, if they are started through its taskman wrapper.
Where IBM Spectrum LSF falls short on licenses
- Two license managers natively: License Scheduler natively supports FlexNet and RLM. Engineering sites run many more: DSLS, Sentinel, LM-X and others.
- Use outside LSF, seen at intervals: Use outside LSF comes from polling lmstat. Between polls, desktop users can take licenses that License Scheduler still counts as free.
- Unmanaged desktop use: taskman governs interactive Linux tools started through it. Desktop use outside it, such as Windows workstations or tools launched directly, is seen but not governed.
- Inside LSF only: What LSF knows stays in LSF. Finance and procurement don't see license use per project next to the rest of the company's software.
One license pool, interactive and HPC together
License Scheduler sees desktop use only through lmstat polls, and governs it only through taskman. LicOps counts desktop use in every decision, live from OpenLM Platform, and OpenLM Platform governs the desktop side of the same pool.
Every license manager in your company, one set of rules
LicOps decides from OpenLM Platform, which monitors 100+ license managers: FlexNet Publisher (FlexLM), RLM, DSLS, Sentinel, LM-X and more. Routing and failover apply to TCP-based network license managers.
What OpenLM LicOps adds
- Checks before the job takes compute: LicOps checks the license when the job is submitted, again when it starts, and releases it when the job ends. A job no longer holds nodes while it waits for a license.
- No job takes compute without its license: A job that can't get its license never takes hosts and then fails. Today the esub refuses it at submission with a clear message; waiting in the queue is coming next.
- Stops denial storms: When jobs start without a license, every one of them retries the checkout. The license server is flooded with requests and denials, a denial storm, and slows down or fails for everyone, desktop users included. LicOps admits a job only when its license is there, and paces the checkouts of the jobs it admits, so the storm never starts.
- Paces checkouts with throttling: A throttle rule sets how fast checkouts may reach each license pool. When a whole job array starts at once, the extra checkouts wait a moment in order instead of stampeding the vendor daemon. Jobs are deferred, never denied.
- Picks the license server that can serve the job: If you run more than one license server, LicOps sends each request to one that can serve it. Your rules can prefer a server, keep jobs off a server, try servers in order, or refuse the request.
- Backup when a license server fails: Set a primary and a backup server for each connection. LicOps switches when the failure threshold is reached, and switches back automatically. This applies to TCP-based network license managers.
- Your rules, your priorities: Rules decide where and how fast: Deny, Force, Prefer or Exclude a server, Cascade from primary to backup to pay-per-use, Round Robin, Weighted Round Robin and Throttle. Each has conditions and a priority, can be switched on and off, and can be limited to dates, for example before a tape-out. Your FlexLM options file INCLUDE and EXCLUDE lists are applied at admission too.
- Every job leaves a record: Each license session carries the job name, queue, account and cluster. When a job waits or is refused, the record says why. No more piecing it together from scheduler and license logs.
- Refusals show up as denials: Every request LicOps refuses is reported as a denial, in the same reports as license-server denials. You see the real demand, not just what got through.
- You decide what happens if LicOps is unreachable: Choose fail-open (jobs run and are logged) or fail-closed (jobs wait). Jobs never hang on a slow answer: the call times out after 2 seconds by default.
How LicOps connects to LSF
- Submit. An esub on the submit hosts asks LicOps to admit the job.
- Start. A queue PRE_EXEC hook confirms the license when the job starts.
- End. A queue POST_EXEC hook releases it.
OpenLM supplies the LSF adapters. LSF support is in early access: each LSF setup is validated with your team on a non-production queue first.
LSF on its own, and with LicOps
| LSF on its own | With OpenLM LicOps | |
|---|---|---|
| Gates job dispatch on licenses | Yes, for FlexNet and RLM (License Scheduler) | Yes, across the license managers in OpenLM Platform |
| License managers covered | FlexNet and RLM natively | 100+ through OpenLM Platform |
| Desktop use of the same pool | Seen through lmstat polls; governed only through taskman | Counted in every decision; governed through OpenLM Platform |
| How use outside the scheduler is known | lmstat polled at intervals | Live from OpenLM Platform, reconciled about every 10 seconds |
| More than one license server | Service domains you configure | Sends the request to a server that can serve it, with backup on failure |
| Why a job waited or failed | LSF and license logs | One record per job |
| Denial storms | LSF jobs gated by License Scheduler; no checkout throttling | Prevented, and checkouts throttled per pool |
| Checkout bursts from job arrays | All hit the license server at once | Paced per pool by a throttle rule |
| Refused requests in reports | No | Reported as denials |
| License cost per project, company-wide | No | Yes, in OpenLM reporting |
| Cloud burst using owned licenses | Aware of its own counter only | Aware of real availability, desktop included |
Technical notes for IBM Spectrum LSF administrators
Components
| Component | Where it runs | Role |
|---|---|---|
| esub.openlm | Each submit host, in $LSF_SERVERDIR | Admit, before the job reaches mbatchd |
| ol-pre-exec | Queue PRE_EXEC, first execution host | Dispatch, when the job starts |
| ol-post-exec | Queue POST_EXEC, first execution host | Release, however the job ends |
How users submit
bsub -a openlm -R "openlm[vendor=MLM:feature=MATLAB:count=1]" ./my-simulation.sh#BSUB -R "openlm[vendor=MLM:feature=MATLAB:count=1]" inside the job script
- Make openlm a mandatory esub in lsf.conf, so users don't need -a openlm.
- LSF needs no license map: the vendor and feature come from the job's resource request.
- Jobs without an openlm[...] request pass through unchanged.
Order of calls
- Admit (esub.openlm): LicOps grants a seat before the job is queued. A denied job is never queued.
- Dispatch (PRE_EXEC): confirms the seat when the job starts.
- Release (POST_EXEC): releases the seat however the job ends.
With dispatch set to fail-closed and LicOps unreachable, jobs are requeued after they start rather than run unlicensed.
Requirements
- LicOps reachable on port 8100 from the management, execution and submit hosts
- curl and jq on all hosts
- Rights to edit lsb.queues, run badmin reconfig and write to $LSF_SERVERDIR
- The installer (install-lsf-adapters.sh) is run once per queue. It backs up lsb.queues and never overwrites an existing hook.
Full setup guide: LicOps setup guide.
Cloud burst: use the licenses you already own
Often the licenses are free but the cluster is full. LicOps sends those jobs to cloud compute, so licenses you already paid for keep working instead of sitting idle.
It bursts in your own cloud account, on your contract, to your own license servers.
Which scheduler, cloud and instance types do you run? Contact us to check your platform.
HPC license reporting
Every license session carries its job, array task, queue, account and project. Refused requests, true denials, contention and chargeback in dollars feed OpenLM reporting in near real time, and your own BI tools.
More: HPC license reporting.
Coming next
Coming next: Slurm and LSF jobs will wait in the queue until their license is free, then start in order, as PBS jobs do today.
What changes, by team
| Team | Without OpenLM | With OpenLM |
|---|---|---|
| HPC and platform leads | Jobs start when both the license and the nodes are ready. Fewer stalled and failed jobs, less idle hardware. | Jobs start when both the license and the nodes are ready. Fewer stalled and failed jobs, less idle hardware. |
| License administrators | Manual reconfiguration and log hunting | Rules pick the server, a backup takes over on failure, and every job has a record. No manual reconfiguration or log hunting. |
| Engineers | A job can start on Friday night and fail on a license | A job either gets its license or is refused at submission with a clear reason. No job starts on Friday night and fails on a license. |
| Finance and procurement | Little visibility into real demand | Real demand, including refused requests, per project. Buy licenses for the real peak, and don't buy licenses when the bottleneck is compute. |
License managers you'll typically find on HPC clusters
- FlexNet Publisher (FlexLM)
- Reprise RLM
- Dassault DSLS
- Sentinel RMS
- LM-X
- Altair License Manager
- LS-DYNA
- IBM LUM
LicOps decides from OpenLM Platform data for each of these. Routing and failover apply to TCP-based network license managers. All supported license managers: Supported license managers.
Low-risk rollout
- Uses the scheduler's own hooks. Nothing in the scheduler, the applications or the license servers is replaced.
- The installer backs up your configuration and never overwrites an existing hook. The uninstaller reverses the install.
- Fail-open is available: if LicOps can't answer within 2 seconds, jobs run and are logged.
- Start on one queue, see the results on your own data, then widen.
Where to start
Every environment is different: its scheduler, its license managers and its rules. A solution engineer shows LicOps on a setup like yours.
Questions and answers
Do we need LSF License Scheduler to use LicOps?
No. LicOps connects through LSF's own esub and queue PRE_EXEC and POST_EXEC hooks.
Which license managers does LSF License Scheduler support?
It natively supports FlexNet and Reprise RLM. LicOps decides from OpenLM Platform, which monitors 100+ license managers.
Does LicOps prevent license denial storms?
Yes. A denial storm is a flood of checkout requests and denials from jobs that started without a license. LicOps admits a job only when its license is there, so the retries never happen, and a throttle rule paces checkouts per license pool so a job array can't stampede the vendor daemon.
Which LSF hooks does LicOps use?
An esub on the submit hosts, and queue PRE_EXEC and POST_EXEC hooks.
What happens to an LSF job when no license is free?
The esub refuses it at submission, so it is never queued and never takes compute.
Can LicOps use cloud compute when our LSF cluster is full?
Yes. When on-premises compute is full, LicOps sends jobs to cloud compute in your own cloud account, so the licenses you already own keep working. Contact us to check your platform.
How is LicOps rolled out on an existing LSF cluster?
OpenLM supplies the adapters and an installer. LSF support is in early access, so each setup is validated with your team on a non-production queue first.
Links
- All HPC scheduler integrations
- Slurm
- OpenPBS and PBS Professional
- Kubernetes
- HPC license reporting
- OpenLM LicOps for HPC
- LicOps vs built-in scheduler license management
- Semiconductor & EDA
- Automotive & Mobility
- Aerospace, Space & Defense
- Energy, Oil & Gas
- OpenLM for the CTO and VP Engineering
- OpenLM for the CFO
- Supported license managers
- OpenLM for the Chief Procurement Officer
- AI FinOps
- OpenLM MCP connector
- License harvesting
- OpenLM for ServiceNow
Last updated · Read this page as Markdown