Page 1 of 1

Max users number

Posted: 16 Apr 2019, 11:59
by sadensmol
Hi, we need the way to programmatically detect when we are approaching to the license limit.

If we have maxUsers setup to 50k but only free license why zone.getMaxAllowedUsers() returns us 50k if server allows only 100 users to be connected with free license?

What method could I use to get the REAL NUMBER OF ALLOWED TO CONNECT USERS?

Re: Max users number

Posted: 16 Apr 2019, 14:23
by Lapo
Hi,
the maxAllowedUsers corresponds to what you have configured in the respective option under AdminTool > Server Configurator. This value serves as a limiter for a specific Zone. If you set it to 500, it will start refusing logins when 500 users are already logged-in in that particular Zone.

This is regardless of what your license limit is.

We don't expose an API to query the system and obtain the limit of your license.
You could store the value of your license limit in a database or local file, and query that from your Extension from time to time to check if you're approaching the value.

Hope it helps

p.s. = an email notification system already exist for this task. It's found under AdminTool > License Manager

Re: Max users number

Posted: 17 Apr 2019, 11:00
by sadensmol
Hi, Lapo.

It feels so bad!!!

you're providing max number of allowed users, but we have a problem with license we don't know about that! and you shows us a wrong number - you
says this zone could handle 50k users but in real it handles only 100 users (as for free license).

we don't use your smtp server functionality and have own ways to notify about problems with the server.
Is there any way to ask you about changing your getMaxAllowedUsers() method to count on license limitation to have correct results?
Thanks.

Re: Max users number

Posted: 17 Apr 2019, 13:28
by Lapo
Is your license CCU setting changing very often?

Thanks

Re: Max users number

Posted: 18 Apr 2019, 16:26
by sadensmol
Hello.

yes, we have 2 licenses at the moment
but moving them between servers.
also we are planning to add more servers in future and we need to monitor this users limitation stuff.

Re: Max users number

Posted: 19 Apr 2019, 08:29
by Lapo
We're looking into it.
We'll get back to you as soon as possible.

Cheers

Re: Max users number

Posted: 19 Apr 2019, 14:31
by Bax
sadensmol, can you please contact us by email. We may have a solution to discuss with you.
Please send an email at info AT smartfoxserver DOT com referencing this topic, thanks.