Hello Mark, There is currently no implementation in CI which allows this. Having said that, it's something that we have pondered ourselves. It might just be high time to get that sorted out.
I have created a github issue[1] so we can talk about it. May I request that we move the discussion there? I am very keen to help get a solution together for you. Thanks for the contact! OJ [1]: https://github.com/DistributedNonsense/CorrugatedIron/issues/111 On Tue, Mar 19, 2013 at 7:22 AM, Mark Morga <mmo...@rackspace.com> wrote: > TL;DR version: is there a way to use Corrugated Iron making connections on > the fly rather than a fixed connection pool? > > Explanation: > > We are using Corrugated Iron on several (5) components that talk to Riak. > We want to be able to independently scale the number of instances of these > components live in production and we're having problems understanding how > best to do this with the connection pool assigned in CI. > > Our Riak instance (currently 5 nodes) is load balanced behind an HAProxy > instance and we have been using the RiakExternalLoadBalancer class pointed > to this load balancer to instantiate our RiakClient. HAProxy is configured > at the moment to permit up to 250 connections to each Riak node (we've > played with this a bit). > > My concern is that as we pop additional nodes running one of our > components, each of those will want to consume _n_ connections out of the > available 250 and eventually we are going to run out. > > Looking through the code a bit today, I don't see how to use the Riak > connections outside of either RiakExternalLoadBalancer or RiakCluster. > Since RiakNode and RiakConnection are internal classes I don't see an easy > way to do this. Ideas? > > Thanks in advance! > > Mark Morga > > > _______________________________________________ > riak-users mailing list > riak-users@lists.basho.com > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com > -- OJ Reeves +61 431 952 586 http://buffered.io/
_______________________________________________ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com