Improved HashRing usage in JobQueueFederated
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 8 Apr 2014 01:53:38 +0000 (18:53 -0700)
committerOri.livneh <ori@wikimedia.org>
Fri, 18 Apr 2014 20:28:48 +0000 (20:28 +0000)
commitf7f710287b701dc148f56a4a3ba6f88db3506893
treedd10078ca9b836b2b7420b2926e23e212d96172d
parent0bfb0398f8419b8eb14236c4a019d1f37ce89b76
Improved HashRing usage in JobQueueFederated

* Added proper ejection and caching in HashRing to avoid rebuilding
  the hash all the time (or doing manual caching).
* Made JobQueueFederated blacklist failing servers for a few seconds.
* Also made the JobQueueFederated root job methods properly respect
  the weights when they fail over.

Change-Id: Ifa4c03272c1777cfff2523ab21f780074ddcf359
includes/jobqueue/JobQueueFederated.php
includes/libs/HashRing.php