Is there any limit on number of users that can be present in a Registrar Pool?


I am writing a client to get all users from Lync server. I need to get users in batches.

Get-CsUser does not have any parameter which can accept batching information. If there is limit on number of users that can be present in a Registrar Pool, then I will get users from each registrar pool in a loop(kind of batching).

Or is there any other way I can get users in batches using powershell commands?

Thanks in advance

Sandeep

February 17th, 2015 4:38am

"In batches" - do you mean throttle limit (result set) to return a constrained set of users hosted on each Lync Server 201x Front-End Pool? The answer is no unless you use the -Filter switch; otherwise the complete result from Get-CsUser can be rolled down the pipeline to Where-Object for further processing.

Thanks / rgds,

Free Windows Admin Tool Kit Click here and download it now
February 17th, 2015 9:04am

To directly answer the question in the title, no, there's no hard limit on the number of users that can exist in a pool.  There's a suggested limit of 80,000 for a 12 server pool, but there's no hard coded limit stopping you from going much much higher even with a single standard edition server.

You may have to do this with your own looping mechanism.  You could build a function with a counter variable that incremented with each user and only returned the results if the user fell within the range you wanted. 

You can also check the number of users with a simple (get-csuser).count to see how much you may need to batch.

February 17th, 2015 9:42am

In a Front End pool, you should have one Front End Server for every 6,660 users homed in the pool, assuming that hyper-threading is enabled on all servers in the pool, and that the server hardware meets the recommendations in Server hardware platforms. The maximum number of users in one Front End pool is 80,000, assuming that hyper-threading is enabled on all the servers in the pool. If you have more than 80,000 users at a site, you can deploy more than one Front End pool. 

Regards

John

Free Windows Admin Tool Kit Click here and download it now
February 17th, 2015 12:27pm

That's not a hard limit though, and it's possible to be passed.
February 17th, 2015 1:30pm

That 80,000 is based on the user case that Microsoft used to set a benchmark for Hardware and infrastructure (32 GB RAM, 12 Core Processor...). If you have more hardware, you can easily surpass that limit.

Free Windows Admin Tool Kit Click here and download it now
February 17th, 2015 9:34pm

Hi SandeepKonda,

If I understand you correctly, the following command for your reference.

Get-CsUser resultsize unlimited | select SipAddress,RegistrarPool | where {$_.RegistrarPool like FEPool01.Contoso.com} | Sort SipAddress

If this is not the case, please feel free to let me know.

Best regards,

Eric


February 17th, 2015 10:32pm

Hi SandeepKonda,

If I understand you correctly, the following command for your reference.

Get-CsUser resultsize unlimited | select SipAddress,RegistrarPool | where {$_.RegistrarPool like FEPool01.Contoso.com} | Sort SipAddress

If this is not the case, please feel free to let me know.

Best regards,

Eric


Free Windows Admin Tool Kit Click here and download it now
February 18th, 2015 6:29am

Hi SandeepKonda,

If I understand you correctly, the following command for your reference.

Get-CsUser resultsize unlimited | select SipAddress,RegistrarPool | where {$_.RegistrarPool like FEPool01.Contoso.com} | Sort SipAddress

If this is not the case, please feel free to let me know.

Best regards,

Eric


February 18th, 2015 6:29am

Hi Anthony, Thanks for the clarification. Is there any Microsoft documentation link which suggests 80,000 limit for a 12 server pool?

And for batching, how can I define the range of users I want.

Do you mean, say if there are 1000 users and I want to get them in 10 batches. Will it be possible for me to get users in ranges like 0-100, 101-200 and so on 901-1000? If so which powershell command I can use for this?

Thanks,

Sandeep

Free Windows Admin Tool Kit Click here and download it now
February 18th, 2015 10:36pm

There's some links to docs that reference to 80,000 in this article. You can also see me load up 114,000+ on a single server: http://www.skypeadmin.com/2014/08/19/how-many-users-lync-pool-hold/

I'm on my phone, so I can't write out the exact PowerShell, but you could use $allusers=get-csuser and treat it like an array, pulling a thousand out at a time.
February 18th, 2015 10:43pm

Yes I could use get-csuser to get all users into a list and then loop on it.

But I am using Windows Remote Management to call powershell commands and if I use get-csuser, I will be getting all Lync users in one call into my client.

To reduce the processing load on client, I want to get Lync users in batches from the server. Is there any way to do that?

Also whenever I search for information on Registrar pool, I end up with the links explaining about Front end pools. Are these both same? Is there any msdn or technet link which talks about this?



Free Windows Admin Tool Kit Click here and download it now
February 18th, 2015 11:51pm

Yes I could use get-csuser to get all users into a list and then loop on it.

But I am using Windows Remote Management to call powershell commands and if I use get-csuser, I will be getting all Lync users in one call into my client.

To reduce the processing load on client, I want to get Lync users in batches from the server. Is there any way to do that?

Also whenever I search for information on Registrar pool, I end up with the links explaining about Front end pools. Are these both same? Is there any msdn or technet link which talks about this?



  • Edited by SandeepKonda Thursday, February 19, 2015 6:21 AM
February 19th, 2015 7:48am

Yes I could use get-csuser to get all users into a list and then loop on it.

But I am using Windows Remote Management to call powershell commands and if I use get-csuser, I will be getting all Lync users in one call into my client.

To reduce the processing load on client, I want to get Lync users in batches from the server. Is there any way to do that?

Also whenever I search for information on Registrar pool, I end up with the links explaining about Front end pools. Are these both same? Is there any msdn or technet link which talks about this?



  • Edited by SandeepKonda Thursday, February 19, 2015 6:21 AM
Free Windows Admin Tool Kit Click here and download it now
February 19th, 2015 7:48am

Ahhh it's remote, that's the reason you want it batched.  There's no way I can think of to get a perfect number, say 1000 at a time and get improved performance over get-csuser directly.  Your best bet is to use a filter or heuristic as Desmond said that would return smaller batches.  Something like:

get-csuser -filter {SipAddress -like "sip:a*"}

Would return all users who's sip address started with "a".  Of course, that won't return a random distribution because more users names start with A than Z.  You might be able to play with get-csaduser as well to find a value that might be a bit more random to filter on where you'd get a more even distribution. 

You might also want to run this last question you've asked by the PowerShell forum to see if anyone has any creative ideas.  https://social.technet.microsoft.com/Forums/en-US/home?forum=winserverpowershell

  
February 19th, 2015 11:24am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics