Announcement

Collapse
No announcement yet.

Polling the license server for In Use/Available data?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Polling the license server for In Use/Available data?

    Is there a way to query/poll the license server to get a count of licenses in use / available?

    We use Qube as a render manager, and it assumes that there are no licenses in use outside of what it manages. So if I have 100 licenses and someone starts rendering without going through the Qube Supervisor, Qube will think it has 100 nodes available when it really only has 99. If it tries to assign a 100th job, it will error out and block that entire job.

    It is possible to dynamically adjust the # of nodes/licenses Qube can use, but to do that I need to be able to check in with the license server to find out how many licenses it has in use. Is there a way to do that through a script?

  • #2
    There's a .json status that you can parse to monitor the currently engaged licenses
    For online licenses - at http://license_server_ip:30304/sessions/online
    For dongle licenses - at http://license_server_ip:30304/sessions/dongle

    If you use that - make sure to set the check interval on the max value that's usable for you to minimize stress on the license server, I'd recommend no less than 10 sec.
    Ivan Slavchev

    SysOps

    Chaos Group

    Comment


    • #3
      The above does not work if you have borrowed your licenses. I put in a request for such a mechanism that applies to borrowed licenses. But for online or dongle licenses the scheme that Ivan outlines will work. Once you have queried the count, you can use the Qube! command "qbupdateresource" to update the appropriate Qube! resource value.

      Comment

      Working...
      X