Set the passive lease renewal time
The lease renewal policy defines when the license reservations are renewed. The lease renewal policy can be either active
or passive
.
Active lease renewal policy means that Qt License Service renews ongoing reservations in the middle of the lease time but at least once a day. You don't have to configure anything. This ensures that the license seat is kept reserved from the license pool, allowing the user to continue working without interruptions, even if the internet connection is offline for periods of time.
Passive lease renewal policy means that Qt License Service handles the renewal according to your configurations. In the Qt License Server configuration file, set the lease prior to expiry time in seconds. This determines how close to the lease end time the renewal is done, performed by Qt License Service.
Note: If the renewal policy is passive and the lease prior to expiry time is set very short, or even to zero, the renewal may not succeed if the current reservation expires right before the server receives the renewal request and the last seat from the license pool is taken by somebody else.
Set the lease prior to expiry time
To set the lease prior to expiry time for passive lease renewal policy, edit the Qt License Server configuration file (Linux: qt-license-server.service
, Windows: qt-service.xml
). Set the value for QLS_PRIOR_TO_LEASE_RENEWAL_TIME
in seconds how close to lease expiry time the Qt License Service should attempt to renew the current reservations.
Note: This has no effect for licenses with active lease renewal policy.
Example
For example, if you want the renewal to be done 10 seconds before the lease time is over, set the value to 10.
Environment="QLS_PRIOR_TO_LEASE_RENEWAL_TIME=10"
<env name="QLS_PRIOR_TO_LEASE_RENEWAL_TIME" value="10" />
If you set the value to 0, a new reservation is requested immediately by the client tool when the current reservation expires. If the new reservation succeeds, the user can use the tools without interruption.
© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.