Cache connection pools
----------------------

         Key: CAROB-132
         URL: https://forge.continuent.org/jira/browse/CAROB-132
     Project: Carob
        Type: New Feature
  Components: C++ API  
    Versions: Carob 0.7.2    
    Reporter: Gilles Rayrat
 Assigned to: Gilles Rayrat 
    Priority: Critical
     Fix For: Carob 0.7.3


When deleting a connection, if no more connection parameters point to a 
controller pool, this pool is deleted
Thus, creating a new connection with same settings will create a new pool, 
which will *not* remember which controller the last connection was connected to.

This is a problem for php, which deletes connections after each request. 2 
subsequent request will then hit the same controller, without load balancing

The solution is to cache the controller pools for a couple of seconds before 
deleting it. This will lead to small memory leaks at the end of the process 
(the last controller pool never being freed), which is not a problem as the 
process is exiting (thus freeing its memory)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   https://forge.continuent.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


_______________________________________________
Carob mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob

Reply via email to