New to Riak, hitting a connection limit

Mark Phillips mark at basho.com
Thu Aug 2 02:02:04 EDT 2012


Hi Douglas,

I think you're problem here is that you're front-loading requests.
You're better off to issue them serially and wait for one to finish
before issuing the next. Rumor has there's an example of how one might
do this somewhere in Riaktant [1], a somewhat dusty but useful sample
app. I'll dig through it tomorrow if I remember.

Mark


[1] https://github.com/basho/riaktant

On Mon, Jul 23, 2012 at 11:15 AM, Douglas Muth <doug.muth at gmail.com> wrote:
> Hi everyone,
>
> I'm new to Riak, and have been playing around with it the last few
> days.  The first thing I did to become familiar with Riak was to write
> a benchmarking utility that uses node.js to write as many key/value
> pairs as it can, as quick as it can.  I'm using node_riak
> (https://github.com/mranney/node_riak) for this, over the HTTP
> interface.
>
> Anyway, after I go just past 1,000 inserts, I start seeing errors like these:
>
> riak response error too many pending requests, get
> bucket_key="test-benchmark/test_1007"
>
> And here is the JSON that I get back from Riak:
>
> { reason: 'full',
>   delay: true,
>   attempt:
>    { options:
>       { path: '/riak/test-benchmark/test_1007',
>         headers: [Object],
>         retry_not_found: true,
>         method: 'GET',
>         retryDelay: 20,
>         retryFilter: [Function],
>         stream: false,
>         success: false } },
>   message: 'too many pending requests' }
>
> This seems like too low a number to be having issues like this, so I'd
> like to ask if there are any parameters I could check or change, or
> any troubleshooting I can try?
>
> Thanks,
>
> -- Doug
>
>
> --
> http://twitter.com/dmuth
>
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com




More information about the riak-users mailing list