[CSHARP-1419] waitqueuesize recommendation Created: 20/Sep/15  Updated: 05/Apr/19  Resolved: 20/Sep/15

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: 2.0.1
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Michael Dolinsky Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: question
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows 2012 R2 With the C# Driver


Issue Links:
Related

 Description   

At peak load times we are getting waitqueuesize errors.
As we understand by default the waitqueuesize is 500 and it may not be enough for peak loads.
Is there any recommendation for this value?
What would be the impact of setting it to a higher number like 10,000?



 Comments   
Comment by Annette Morrissey (Inactive) [ 20/Sep/15 ]

This appears to be a duplicate of the issue raised on CS-24370 so I am closing this ticket since the issue has been responded to on CS-24370

Comment by Craig Wilson [ 20/Sep/15 ]

Hi Michael,

It should be set according the maximum number of threads supported by the underlying host. In IIS, I believe this is about 5000. If you have more than the maximum underneath, you are liable to pay a bit of a performance cost if that many waiters actually enter the wait queue. I'd suggest you play with this value to get the right balance between no errors and performance.

Craig

Generated at Wed Feb 07 21:39:32 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.