orleans icon indicating copy to clipboard operation
orleans copied to clipboard

PerformanceTuningOptions

Open xiazen opened this issue 8 years ago • 0 comments

Merge ServicePointOptions and ThreadPoolOptions into one option PerformanceTuningOptions and keep it in core. Reasons as follows,

They exists for configuring environment to be optimal for orleans cluster performance. Yes none of the target they configure is maintained by orleans, but we think configure them to be at optimal values is orleans’s responsibility, because they are essential for orleans performance. If we don’t configure them, the default settings for ThreadPool or ServicePointManager greatly affects performance, especially ThreadPool settings. If we ask our user to configure them, then we run risks of low discoverability of the need to configure them and mysterious performance drop after adopting 2.0.

Default MinThreads for ThreadPool is small, while Orleans needs hundreds of threads to have optimal performance. And also, ServicePointOptions are not just for optimization when using AzureStorage. The settings there are for optimizing ServicePointManager to handle small requests, to our understanding. See blog post https://blogs.msdn.microsoft.com/windowsazurestorage/2010/06/25/nagles-algorithm-is-not-friendly-towards-small-requests/ for more info.

So based on above reasons. We merge those two options into one, with default values.

xiazen avatar Feb 13 '18 23:02 xiazen