Permalink
Browse files

[fixes #13] bumped up maximum connections in pool.

  • Loading branch information...
1 parent 14cc6a8 commit cc779c3ed496f53257749584ce709bad16e93bf4 Filipe Gonçalves committed Dec 10, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/Cassandra/Pool.pm
@@ -50,7 +50,8 @@ sub new {
$loadbalancer->add_pool(
ResourcePool->new(
Cassandra::Pool::CassandraServerFactory->new($opt),
- Weight => 100
+ Weight => 100,
+ Max => 100
)
);
@@ -73,7 +74,8 @@ sub add_pool {
$self->{pool}->add_pool(
ResourcePool->new(
Cassandra::Pool::CassandraServerFactory->new( \%params ),
- PreCreate => 2
+ PreCreate => 2,
+ Max => 100
),
,
Weight => 60

0 comments on commit cc779c3

Please sign in to comment.