Re: Connection Pool with Erlang PB Client Necessary?

2011-08-15 Thread Andrew Berman
So I looked at a bunch of pooling applications and none of them really
have the functionality and flexibility I'm used to with Java
connection pools.  So, I created my own OTP pooling application,
Pooly.  It allows multiple pools to be configured, has flexibility on
configuring the pool (idle timeout, max age of processes, initial
count, acquire increment, max pool size, and min pool size) and
reduces the size of the pool based on the configuration parameters.

Feel free to check it out: https://github.com/aberman/pooly

--Andrew

On Tue, Jul 26, 2011 at 12:20 PM, Justin Sheehy  wrote:
> Yes, Andrew -- that is a fine approach to using a connection pool.
>
> Go for it.
>
> -Justin
>
>
>
> On Tue, Jul 26, 2011 at 3:18 PM, Andrew Berman  wrote:
>> Thanks for all the replies guys!
>>
>> I just want to make sure I'm totally clear on this.  Bob's solution
>> would work well with my design.  So basically, this would be the
>> workflow?
>>
>> 1.  check out connection from the pool
>> 2.  set client id on connection (which would have some static and some
>> random component)
>> 3.  perform multiple operations (gets, puts, etc.) which would be seen
>> as a single "transaction"
>> 4.  check in the connection to the pool
>>
>> This way once the connection is checked out from the pool, if another
>> user comes along he cannot get that same connection until it has been
>> checked back in, which would meet Justin's requirements.  However,
>> each time it's checked out, a new client id is created.
>>
>> Does this sound reasonable and in line with proper client id usage?
>>
>> Thanks again!
>>
>> Andrew
>>
>>
>> On Tue, Jul 26, 2011 at 11:55 AM, Justin Sheehy  wrote:
>>> The simplest guidance on client IDs that I can give:
>>>
>>> If two mutation (PUT) operations could occur concurrently or without
>>> awareness of each other, then they should have different client IDs.
>>>
>>> As a result of the above: if you are sharing a connection, then you
>>> should use a different client ID for each separate user of that
>>> connection.
>>>
>>> -Justin
>>>
>>
>

___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: lein compile hangs when using riak-java-client

2011-08-15 Thread Ryan Zezeski
Will,

You ever figure this out?

-Ryan

On Tue, Aug 2, 2011 at 2:14 PM, William Roe  wrote:

> Hi,
>
> I'm having weird problems with the riak-java-client. When I use it
> with Clojure/Leiningen it hangs compiling. Here's a gist to show how
> to replicate the problem: https://gist.github.com/1120747
> or.. to download the project ready to be run:
> http://dl.dropbox.com/u/8134194/riaktest.zip
>
> So, when you run "lein compile", it appears to compile the class fine,
> but hangs after that. If you remove the riak-java-client lib and print
> hello world - it's fine again. This only happens on Linux.
>
> Any help with this would be appreciated.
>
> Thanks,
> Will
>
> ___
> riak-users mailing list
> riak-users@lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Riak Recap for August 12 - 14

2011-08-15 Thread Mark Phillips
Evening, Afternoon, Morning to All -

Short Recap to start the week off.

Enjoy.

Mark

Community Manager
Basho Technologies
wiki.basho.com
twitter.com/pharkmillups


Riak Recap for August 12 -14
==

1) Any production users in/around NYC? Get in touch with me. I have a
few a questions for you.

2) Brian Rowe wrote up a blog post about using Lager. Thanks, Brian!

* Read here --->
http://cartesianfaith.wordpress.com/2011/08/15/a-lager-primer-or-getting-started-with-lager-for-logging/

3) Riak builds turned up on Travis CI today.

* Details here ---> http://staging.travis-ci.org/#!/wardbekker/riak/builds/3346

4) seancribbs and bfrog had a very brief chat in #riak about secondary
indices.

* Read here ---> https://gist.github.com/1148262

___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com