Couchbase几秒钟后超时 [英] Couchbase times out after few seconds

查看:63
本文介绍了Couchbase几秒钟后超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有大约100-200k的小文档,其中包含base64编码的图像(相当多的小图像).我正在尝试将所有这些文档插入Couchbase,在前28k个文档(总大小约为185 Mb)之后,我一直收到此错误

I have about 100-200k small documents which contain base64 encoded images (quite small images). I am trying to insert all these documents to the Couchbase and I keep getting this error after first 28k documents (about 185 Mb total size)

[Error: Client-Side timeout exceeded for operation. Inspect network conditions or increase the timeout] code: 23

这是Couchbase设置的屏幕截图(我在这里只看到一件事-可用空间是完全错误的,实际上磁盘上大约有300GB的可用空间)

Here is screenshot of Couchbase settings (I see only one strange thing here — free space is totally wrong, actually it is about 300GB of free space on my disk)

我的代码非常简单,看起来像这样

My code is pretty simple and looks like this

 _.forOwn(data, function (data) {
    var item_id = "item::" + uid().toString();

    db.set(item_id, data, function(err, result) {
        if (err) {
            console.log('cb error', err);
        }
        else {
            console.log('cb success', result);
        }
    });
 });

我试图更改文档并使它们变小或变大—没关系,在28k数据库停止响应之后.它可以在几秒钟内节省28k,然后抛出超时.我该怎么做才能解决此问题?

I tried to alter documents and make them smaller or larger — it doesn't matter, after 28k database stops responding. It saves 28k in few seconds and then throws timeout. What should I do to fix this issue?

upd

我安装了Couchbase 2.5 Enterprise,现在正确显示了可用空间.但是我仍然无法通过28k的限制.我正在运行Mac OS X 10.9.2.例如,也许我应该尝试使用Python或Java SDK?

I installed Couchbase 2.5 Enterprise and now free space is shown correctly. However I am still not able to pass through 28k limit. I am running Mac OS X 10.9.2. Maybe I should try to use Python or Java SDK for example?

试图在Ubuntu 14.04上安装Couchbase,现在在46k文档后出现相同的错误.

Tried to install Couchbase on Ubuntu 14.04, now get the same error after 46k docs.

这是图形的屏幕截图(两个峰值显示了我两次尝试将文件导入Couchbase的尝试)

Here is screenshot of graphs (two peaks shows my two attempts to import files into Couchbase)

推荐答案

当我从nodejs sdk切换到python sdk时,此问题已解决.

This issue was solved when I switched from nodejs sdk to python sdk.

这篇关于Couchbase几秒钟后超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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