Cost of many PBC connections held open?

Alain Rodriguez alain at uber.com
Fri Jun 6 02:14:50 EDT 2014


Hi Toby,

It should be fine to keep many connections PCB connections open. To give
you an idea, we connect to a nine (9) node cluster over Protobuf, with up
to 2k concurrent connections per node.

Cheers,

Alain


On Thu, Jun 5, 2014 at 10:44 PM, Toby Corkindale <toby at dryft.net> wrote:

> Hi,
> Just looking for a bit of guidance on good practice when using Riak
> via the PBC interface.
>
> To keep request latency low, it's good to keep the connection open
> between requests, rather than making a new connection for just a few
> requests and then dropping it again, right?
>
> In the JVM client, pools of connections are shared between large
> numbers of threads. However it's harder to do that in Perl, which some
> of our codebase is written in.
> It'd be a lot easier to have one connection per process, but that's
> potentially quite a lot of connections, albeit ones that are idle most
> of the time.
>
> I'd like to get a feeling for how expensive is it for the Erlang VM to
> hold those connections open. Does it consume a lot of resources or is
> it negligible?
>
> Thanks,
> Toby
>
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20140605/eb495014/attachment.html>


More information about the riak-users mailing list