Commit f09bfcad authored by Joe Stead's avatar Joe Stead Committed by Nick Craver

Added a note on .NET Core and thread counts (#707)

* Added a note on .NET Core and thread counts

It threw us a bit when we saw this exception but not the same information :)

* Added details for .netstandard 2.0
parent 4ec037fe
...@@ -40,6 +40,8 @@ In the above example, you can see that for IOCP thread there are 6 busy threads ...@@ -40,6 +40,8 @@ In the above example, you can see that for IOCP thread there are 6 busy threads
Note that StackExchange.Redis can hit timeouts if growth of either IOCP or WORKER threads gets throttled. Note that StackExchange.Redis can hit timeouts if growth of either IOCP or WORKER threads gets throttled.
Also note that the IOCP and WORKER threads will not be shown on .NET Core if using `netstandard` < 2.0.
Recommendation: Recommendation:
Given the above information, it's recommend to set the minimum configuration value for IOCP and WORKER threads to something larger than the default value. We can't give one-size-fits-all guidance on what this value should be because the right value for one application will be too high/low for another application. This setting can also impact the performance of other parts of complicated applications, so you need to fine-tune this setting to your specific needs. A good starting place is 200 or 300, then test and tweak as needed. Given the above information, it's recommend to set the minimum configuration value for IOCP and WORKER threads to something larger than the default value. We can't give one-size-fits-all guidance on what this value should be because the right value for one application will be too high/low for another application. This setting can also impact the performance of other parts of complicated applications, so you need to fine-tune this setting to your specific needs. A good starting place is 200 or 300, then test and tweak as needed.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment