Couchbase群集中插入性能较慢 [英] Slower Insert Performance in Couchbase Cluster

查看:48
本文介绍了Couchbase群集中插入性能较慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Couchbase的新手.我正在使用各种Couchbase设置(单节点,2节点,5节点等)检查INSERT的原始性能,因为我没有足够的硬件对其进行测试,因此我正在Windows Azure上使用VM进行测试在我的服务器上.我正在使用Couchbase提供的.NET客户端库来编写基于C#的测试应用程序,该应用程序确实记录了循环插入.另外,我没有使用任何批量插入选项(如果有的话!)

I am new to Couchbase. I was in the process of checking raw performance of INSERTs with various Couchbase setups (single node, 2-node, 5-node etc.) I am using VMs on Windows Azure to do my testing since I do not have enough hardware to test it on my servers. I am using the .NET client library provided by Couchbase to write my C# based test application that does record insertion in a loop. Also, I am not using any bulk insert options (if any exist!)

这是到目前为止插入的结果:

Here are the results of inserts thus far:

  • 在硬件服务器上进行1000万条记录所花费的时间-大约10分钟
  • 在Azuere上的一台VM服务器上记录一千万条记录所花费的时间-大约21分钟
  • 在Azure的2节点VM群集上进行1000万条记录所花费的时间为63分钟

这是我的问题:

  • 可视化是否会导致插入量下降到硬件服务器的一半?
  • 与1个节点的Couchbase相比,Couchbase 2的节点群集占用3倍的数量正常吗?

我关注了这篇文章,以在Windows Azure中设置Couchbase群集:Azure上的Couchbase

I have followed this article to set up Couchbase cluster in Windows Azure: Couchbase on Azure

推荐答案

Couchbase通常会大量使用硬盘和cpu进行索引处理.因此,云中的性能下降是正常的.您可以尝试使用具有更高IOPS甚至SSD的磁盘来减少延迟.

Couchbase usally intensivly uses hard disk and cpu for indexing process. So performance degradation in cloud is normal. You can try to use disks with more IOPS or even SSDs to reduce latency.

虽然您的应用程序生成数据,但它也使用cpu,因此(在同一VM上)couchbase的性能可能会下降.为了进行更清晰的测试,我认为您应该在单独的(专用)VM(即VM3)上运行应用程序.此外,由于VM之间的延迟,性能也会有所不同.要减少它,请尝试将VM定位在一个区域(数据中​​心)中.我认为,如果您使用单独的VM来实现1和2节点群集之间的客户端差异不会太大.

While your app generates data it also uses cpu, so couchbase performance (on the same VM) can degrade. For more clear test, I think you should run application on separated (dedicated) VM (i.e. VM3). Also performance differs due to latency between VMs. To reduce it, try to locate VMs in one zone, datacenter. I think if you use separate VM for client difference between 1 and 2 node cluster will not be so huge.

在您的情况下,一个节点群集上的性能主要取决于VM和连接到此VM的硬盘之间的延迟.在2个节点中,群集性能主要取决于VM1和VM2之间的延迟,该延迟可能是VM和硬盘之间的延迟的2-4倍.因此,您的情况下的效果将与延迟成反比.

In your case performance on 1 node cluster depends mostly on latency between VM and hard disk attached to this VM. In 2 node cluster performance depends mostly on latence between VM1 and VM2 that can be 2-4 times bigger than latency between VM and hard disk. So performance in your cases will be inversely proportional to latences.

performance_1 ~ 1 / HDD_latency_VM1
performance_2 ~ 1 / (HDD_latency_VM1 + Network_latency_2_VM2 + HDD_latency_VM2)

这篇关于Couchbase群集中插入性能较慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆