Skip to content

Commit 1f1457d

Browse files
committed
Change default MinPoolSize and MaxPoolSize of SocketPool
1 parent dfd55ce commit 1f1457d

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Enyim.Caching/Configuration/MemcachedClientOptions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ public class Authentication
6262

6363
public class SocketPoolOptions
6464
{
65-
public int MinPoolSize { get; set; } = 10;
66-
public int MaxPoolSize { get; set; } = 20;
65+
public int MinPoolSize { get; set; } = 5;
66+
public int MaxPoolSize { get; set; } = 100;
6767
public TimeSpan ConnectionTimeout { get; set; } = new TimeSpan(0, 0, 10);
6868
public TimeSpan ReceiveTimeout { get; set; } = new TimeSpan(0, 0, 10);
6969
public TimeSpan DeadTimeout { get; set; } = new TimeSpan(0, 0, 10);

Enyim.Caching/Configuration/SocketPoolConfiguration.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ namespace Enyim.Caching.Configuration
88
{
99
public class SocketPoolConfiguration : ISocketPoolConfiguration
1010
{
11-
private int minPoolSize = 10;
12-
private int maxPoolSize = 20;
11+
private int minPoolSize = 5;
12+
private int maxPoolSize = 100;
1313
private TimeSpan connectionTimeout = new TimeSpan(0, 0, 10);
1414
private TimeSpan receiveTimeout = new TimeSpan(0, 0, 10);
1515
private TimeSpan deadTimeout = new TimeSpan(0, 0, 10);

Enyim.StressTest/appsettings.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"requestTimes": "100000",
2+
"requestTimes": "1000000",
33
"enyimMemcached": {
44
"Servers": [
55
{
@@ -9,11 +9,11 @@
99
],
1010
"socketPool": {
1111
"minPoolSize": "5",
12-
"maxPoolSize": "25",
12+
"maxPoolSize": "500",
1313
"connectionTimeout": "00:00:15",
1414
"receiveTimeout": "00:00:15",
1515
"deadTimeout": "00:00:15",
16-
"queueTimeout": "00:00:00.150"
16+
"queueTimeout": "00:00:00.300"
1717
}
1818
},
1919

0 commit comments

Comments
 (0)