Archives Dec. 16, 2005
Dipping a toe into pb connection pooling (Brr, these pools get cold in the Canadian autumn...)
Written by
on
in
Snaking.
Okay, this is a hack written in the middle of the night, so expect there to be problems, but it does seem to basically work. What it is is a collection of three object types.
The first, the ConnectionStats, is a simple utility object that tracks statistics and the semaphor used to throttle the number ...!-->!-->
PB connection pooling eludes me (Sigh)
Written by
on
in
Snaking.
It really seems there should be something in Twisted that does something along these lines, but I can't find anything quite right:
Create and monitor a pool of pb (twisted.spread) connections (this is to spread a CPU-intensive operation across many servers)
On disconnect or connect failure, do retries (forever), but with scaling frequency (i.e. if ...!-->!-->!-->!-->