0
我的當前配置如下所示,連接到VM上託管的3個節點羣集。改進Couchbase配置的指針
var clientConfiguration = new ClientConfiguration
{
Servers = new List<Uri>
{
new Uri("http://10.20.49.31:8091/pools"),
new Uri("http://10.20.49.32:8091/pools"),
new Uri("http://10.20.49.33:8091/pools"),
},
UseSsl = false,
DefaultOperationLifespan = 2000,
BucketConfigs = new Dictionary<string, BucketConfiguration>
{
{
"Features", new BucketConfiguration
BucketName = "Features",
UseSsl = false,
Password = "",
DefaultOperationLifespan = 2000
}
}
},
ConnectionPoolCreator = ConnectionPoolFactory.GetFactory<ConnectionPool<MultiplexingConnection>>(),
IOServiceCreator = IOServiceFactory.GetFactory<MultiplexingIOService>()
};
ClusterHelper.Initialize(clientConfiguration);
var cluster = ClusterHelper.Get();
return cluster;
我正在使用'wrk'工具來測試性能和請求/秒。但是,我只能得到約192請求/秒告訴我,某處存在問題。任何幫助讚賞。