Re: New Net_Gearman work

From: Date: Sun, 04 Apr 2010 04:49:34 +0000
Subject: Re: New Net_Gearman work
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-53389@lists.php.net to get a copy of this message
Hash a jobs unique id to always send it to the same server. Other clients do this already. So, I think it is expected. getConnection() needs to take an optional unique id from submitTask and do the hashing there. A simple modulus hashing would be all that is needed. It would need to detect downed gearmand servers and reselect ideally.
An initial hashing is done in my fork. It does not detect and reselect, but the lib never did that. So, this is still better than it was before.
Convert the library over to the new IANA port. (this is partially done in my github fork)
Ok, all done in my fork. Brian.

« previous php.pear.dev (#53389) next »