Effect of overstepping installed Number of Licenses

Questions and Answers on installation, deployment, management, locking, tranasactions of Servoy Application Server

Effect of overstepping installed Number of Licenses

Postby Bernd.N » Wed Mar 01, 2017 12:42 pm

What exactly happens when you have e.g. 5 client licenses installed and client #6 tries to login?
Will that client get an explicit message from the Application Server?
Or is login just not possible without any explicit message?

I know it is possible to set in the servoy.properties file the servoy.admin_email_address to get informed about license usage.
Bernd Korthaus
LinkedIn
Servoy 7.4.9 SC postgreSQL 9.4.11 Windows 10 Pro
User avatar
Bernd.N
 
Posts: 497
Joined: Mon Oct 21, 2013 5:57 pm
Location: Langenhorn, North Friesland, Germany

Re: Effect of overstepping installed Number of Licenses

Postby patrick » Sun Mar 05, 2017 3:42 pm

I think there is a grace policy applied. So a few clients can logon exceeding the license amount, you will be notified and after the grace is over, the user will get an error message.
Patrick Ruhsert
Servoy DACH
patrick
 
Posts: 3646
Joined: Wed Jun 11, 2003 10:33 am
Location: Munich, Germany

Re: Effect of overstepping installed Number of Licenses

Postby huber » Tue Feb 13, 2018 1:56 pm

Patrick, is it possible to display a custom designed (html) page (for an NG client for example) to a user when the max. number of licenses are exceeded?

As far as I could test, the grace policy is one more licence.

@Bernd: Did you implement something in the meantime to inform a user when the licenses are exceed?

patrick wrote:I think there is a grace policy applied. So a few clients can logon exceeding the license amount, you will be notified and after the grace is over, the user will get an error message.
Robert Huber
7r AG, Switzerland
SAN Developer
http://www.seven-r.ch
User avatar
huber
 
Posts: 311
Joined: Mon May 14, 2012 11:31 pm

Re: Effect of overstepping installed Number of Licenses

Postby Bernd.N » Tue Feb 13, 2018 2:10 pm

huber wrote:@Bernd: Did you implement something in the meantime to inform a user when the licenses are exceed?

No, we did not, as we have enough licenses.
I did not experience that but I heard that in Servoy 7 there will be a message to the user that says something like "License exceeded, can not log in until someone else logs out."
Bernd Korthaus
LinkedIn
Servoy 7.4.9 SC postgreSQL 9.4.11 Windows 10 Pro
User avatar
Bernd.N
 
Posts: 497
Joined: Mon Oct 21, 2013 5:57 pm
Location: Langenhorn, North Friesland, Germany

Re: Effect of overstepping installed Number of Licenses

Postby huber » Tue Feb 13, 2018 6:37 pm

Thank you for the Feedback, Bernd. With an NG Client application not knowing how many people are calling it it's a bit difficult being sure to have enough licenses ;-)
Therefor my wish for handling it.

Bernd.N wrote:
huber wrote:@Bernd: Did you implement something in the meantime to inform a user when the licenses are exceed?

No, we did not, as we have enough licenses.
I did not experience that but I heard that in Servoy 7 there will be a message to the user that says something like "License exceeded, can not log in until someone else logs out."


Best regards,
Robert
Robert Huber
7r AG, Switzerland
SAN Developer
http://www.seven-r.ch
User avatar
huber
 
Posts: 311
Joined: Mon May 14, 2012 11:31 pm

Re: Effect of overstepping installed Number of Licenses

Postby Bernd.N » Tue Feb 13, 2018 7:30 pm

Is the plugin UserManager available in your NG client?
Then you could get all clients on each login of a client, count them and store that number in a small log table, together with application.getServerTimeStamp().
That log table you can later look at to get an impression of the average and peak number of clients at several times.

Code: Select all
var
   /*** @type {Array} */
   arrClients = plugins.UserManager.getClients(),
Bernd Korthaus
LinkedIn
Servoy 7.4.9 SC postgreSQL 9.4.11 Windows 10 Pro
User avatar
Bernd.N
 
Posts: 497
Joined: Mon Oct 21, 2013 5:57 pm
Location: Langenhorn, North Friesland, Germany

Re: Effect of overstepping installed Number of Licenses

Postby patrick » Wed Feb 14, 2018 10:31 am

I would like to discourage the use of the UserManager plugin and use Servoy's new clientmanager plugin instead. It does basically the same things and is less overhead, maintained by Servoy and more secure.
Patrick Ruhsert
Servoy DACH
patrick
 
Posts: 3646
Joined: Wed Jun 11, 2003 10:33 am
Location: Munich, Germany

Re: Effect of overstepping installed Number of Licenses

Postby huber » Wed Feb 14, 2018 11:00 am

OK, thanks for pointing to the clientmanager plugin instead of UserManager.

The original question still remains if there is a custom (developer defined) way to inform a user when the number of licenses is exceeded on a NG Client application?

patrick wrote:I would like to discourage the use of the UserManager plugin and use Servoy's new clientmanager plugin instead. It does basically the same things and is less overhead, maintained by Servoy and more secure.
Robert Huber
7r AG, Switzerland
SAN Developer
http://www.seven-r.ch
User avatar
huber
 
Posts: 311
Joined: Mon May 14, 2012 11:31 pm

Re: Effect of overstepping installed Number of Licenses

Postby Bernd.N » Wed Feb 14, 2018 11:18 am

The trick would be to run your own method one license less, before Servoy steps in because of license overstepping.
Because when that happens, your code is not running any more, and I guess there is no hook so far to run your own developer defined method.

The only thing you would need for that is to know the variable names in which Servoy stores the number of currently logged in clients and the number of licenses.
If that can not be accessed by the new clientmanager plugin, you could ask for a workaround or request that the clientmanager gets functions to get those.

As a last resort you can still calculate the currently logged in clients yourself with help of clientmanager / UserManager (see my last post, it would just be the number of array elements).
Then you can compare it with the number of licenses that you know you have installed.
Bernd Korthaus
LinkedIn
Servoy 7.4.9 SC postgreSQL 9.4.11 Windows 10 Pro
User avatar
Bernd.N
 
Posts: 497
Joined: Mon Oct 21, 2013 5:57 pm
Location: Langenhorn, North Friesland, Germany

Re: Effect of overstepping installed Number of Licenses

Postby huber » Wed Feb 14, 2018 11:29 am

Bernd, thanks a lot for your many hints how to solve the requirement. Of course accessing the number stored by Servoy would be an elegant one. Patrick, is that already possible?
Robert Huber
7r AG, Switzerland
SAN Developer
http://www.seven-r.ch
User avatar
huber
 
Posts: 311
Joined: Mon May 14, 2012 11:31 pm

Re: Effect of overstepping installed Number of Licenses

Postby mboegem » Wed Feb 14, 2018 3:31 pm

huber wrote:Of course accessing the number stored by Servoy would be an elegant one.


Although Patrick discourages the use of the UserManager plugin, the client manager plugin is by far no replacement option.
UserManager can do so much more, including a request on the servoy.properties file, where Servoy stores the number of licences.

You'll need to write your own logic around this though.
_____________________
Marc Boegem
Solutiative / JBS Group, Partner
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance SAN Developer

Image
User avatar
mboegem
 
Posts: 1426
Joined: Sun Oct 14, 2007 1:34 pm
Location: Hoofddorp, The Netherlands

Re: Effect of overstepping installed Number of Licenses

Postby huber » Fri Feb 16, 2018 10:40 am

Yes, the UserManager is available.
Bernd.N wrote:Is the plugin UserManager available in your NG client?
Robert Huber
7r AG, Switzerland
SAN Developer
http://www.seven-r.ch
User avatar
huber
 
Posts: 311
Joined: Mon May 14, 2012 11:31 pm

Re: Effect of overstepping installed Number of Licenses

Postby huber » Fri Feb 16, 2018 10:43 am

Patrick, I don't see a clientmanager in the node Plugins in Servoy Developer. Is it to install separately?

patrick wrote:I would like to discourage the use of the UserManager plugin and use Servoy's new clientmanager plugin instead. It does basically the same things and is less overhead, maintained by Servoy and more secure.
Robert Huber
7r AG, Switzerland
SAN Developer
http://www.seven-r.ch
User avatar
huber
 
Posts: 311
Joined: Mon May 14, 2012 11:31 pm

Re: Effect of overstepping installed Number of Licenses

Postby mboegem » Fri Feb 16, 2018 11:23 am

huber wrote:I don't see a clientmanager in the node Plugins in Servoy Developer


AFAIK shipped by default in v8
_____________________
Marc Boegem
Solutiative / JBS Group, Partner
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance SAN Developer

Image
User avatar
mboegem
 
Posts: 1426
Joined: Sun Oct 14, 2007 1:34 pm
Location: Hoofddorp, The Netherlands

Re: Effect of overstepping installed Number of Licenses

Postby huber » Fri Feb 16, 2018 1:35 pm

I use version 8.1.4, but it's not there.

mboegem wrote:
huber wrote:I don't see a clientmanager in the node Plugins in Servoy Developer


AFAIK shipped by default in v8
Robert Huber
7r AG, Switzerland
SAN Developer
http://www.seven-r.ch
User avatar
huber
 
Posts: 311
Joined: Mon May 14, 2012 11:31 pm

Next

Return to Servoy Server

Who is online

Users browsing this forum: No registered users and 3 guests