PBS license management with OpenLM LicOps (OpenPBS and PBS Professional)

OpenLM LicOps connects OpenPBS and PBS Professional to your license servers through PBS hooks. Each job is checked when it is queued and when it starts, sent to a license server that can serve it, and recorded with the reason it ran, waited or was refused.

Book a LicOps session

Key facts

OpenLM LicOps connects to OpenPBS and PBS Professional through PBS hooks, and decides from the real state of your license servers rather than a parsed lmstat count.

Connects through
PBS hooks: queuejob at submission, execjob_prologue and execjob_epilogue at start and end
Replaces
server_dyn_res scripts that parse lmstat
Who it's for
PBS administrators, simulation and HPC leads, license administrators

What is PBS?

PBS is a workload manager for HPC clusters. OpenPBS is the open-source version, and Altair PBS Professional is the commercial one. Both are widely used for simulation in automotive, aerospace and manufacturing.

How PBS handles licenses today

Core OpenPBS and PBS Professional have no built-in connection to third-party license servers. Without paid add-ons, sites define a dynamic server-level resource (server_dyn_res) and write a script that asks the license server how many licenses are free, usually by parsing lmstat.

The scheduler runs the script and uses the number it returns.

Where PBS falls short on licenses

  • A script per feature: Each license feature needs its own resource and its own script that returns one number.
  • The server total, not your share: lmstat reports what is free on the whole server. It doesn't know that a group is capped at its own entitlement.
  • Fragile: A script that times out or returns nothing stops jobs, or lets them start with no license.
  • Denial storms: When the script's number is out of date, many jobs start at once without a license and retry the checkout together, flooding the license server with denials.
  • Users outside PBS: Desktop users take licenses between script runs, and the job fails on start.
  • No record: When a job fails on a license, nobody knows why without reading logs.

One license pool, interactive and HPC together

A server_dyn_res script returns the server total. LicOps decides from total minus what the license manager reports in use, desktop users included, minus jobs already admitted.

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 is held in the queue, with its place in line, and released as soon as the license is free.
  • 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 PBS

  1. Submit. A queuejob hook on the PBS server asks LicOps to admit the job. If no license is free, the job is accepted but held, with the comment "OpenLM: waiting for licence" and its place in line.
  2. Release from hold. A local agent releases held jobs oldest first as licenses free up, and notifies the user.
  3. Start. An execjob_prologue hook confirms the license when the job starts.
  4. End. An execjob_epilogue hook releases the license, and the agent releases seats for jobs that leave the queue.

Jobs submitted from the Open OnDemand portal are covered the same way.

PBS on its own, and with LicOps

PBS on its ownWith OpenLM LicOps
Knows what the license server has freeOnly through scripts you writeChecks license availability before the job takes compute
Scripts to maintainOne per featureNone
More than one license serverScript logic you writeSends the request to a server that can serve it, with backup on failure
No license at startJob fails or starts unlicensedJob is held until the license is free
Why a job waited or failedScheduler and license logsOne record per job
Denial stormsCan happen when many jobs start without a licensePrevented: a job starts only with its license
Checkout bursts from job arraysAll hit the license server at oncePaced per pool by a throttle rule
Refused requests in reportsNoReported as denials
Cloud burst using owned licensesAware of its own counter onlyAware of real availability, desktop included

Technical notes for OpenPBS and PBS Professional administrators

Components

ComponentPBS eventRuns onRole
openlm_admitqueuejobPBS serverAdmit at qsub; holds the job if no license is free
openlm_licopsexecjob_prologue, execjob_epilogueExecution hosts (distributed by PBS)Dispatch at start, release at end
Local agentServicePBS serverTalks to LicOps; releases held jobs in order as licenses free up

Both hooks are installed once on the server with qmgr, and PBS distributes them. Nothing is installed on submission hosts, so jobs from portals such as Open OnDemand are covered too.

How users submit

qsub -l openlm_vendor=MLM,openlm_feature=MATLAB,openlm_count=1 my-simulation.sh
qsub -l select=1:ncpus=8 -l openlm_vendor=MLM,openlm_feature=MATLAB,openlm_count=1 job.sh

  • Vendor and feature names match the pool names in LicOps exactly, including case.
  • Jobs without an openlm request pass through unchanged.

Order of calls

  1. Admit (queuejob): if a license is free, the job is accepted as admitted. If not, it is accepted and held, with the comment "OpenLM: waiting for licence VENDOR:FEATURE (position n)".
  2. Release from hold: the agent releases held jobs oldest first per pool as licenses free up (qrls), and notifies the user.
  3. Dispatch (execjob_prologue): confirms the license when the job starts.
  4. Release (execjob_epilogue): releases the license however the job ends.

The queuejob hook never waits on the network: it talks only to the local agent, so a slow LicOps never slows qsub.

Requirements

  • LicOps reachable from the PBS server
  • Rights to run qmgr on the PBS server
  • Tested on OpenPBS 23.06; PBS Professional uses the same hook framework

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.

What changes, by team

TeamWhat changes
HPC and platform leadsJobs start when both the license and the nodes are ready. Fewer stalled and failed jobs, less idle hardware.
License administratorsRules pick the server, a backup takes over on failure, and every job has a record. No manual reconfiguration or log hunting.
EngineersA job either runs or waits in the queue with a clear reason. No Monday-morning surprise from a job that failed on Friday night.
Finance and procurementReal 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

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

Does PBS have built-in license management?

Not in core OpenPBS or PBS Professional. Sites write server_dyn_res scripts that ask the license server how many licenses are free. LicOps replaces those scripts.

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 PBS hooks does LicOps use?

A queuejob hook at submission, and execjob_prologue and execjob_epilogue hooks at start and end, plus a small local agent.

Does it work with both OpenPBS and PBS Professional?

Yes. Both use the same hook framework.

What happens to a PBS job when no license is free?

It is accepted but held, with a comment showing which license it waits for and its place in line. LicOps releases held jobs oldest first as licenses free up, and notifies the user.

Does it work with jobs submitted from Open OnDemand?

Yes. Jobs submitted from the Open OnDemand portal go through the same hooks.

Can LicOps use cloud compute when our PBS 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.