Commit graph

6 commits

Author SHA1 Message Date
Aaron Schulz
8c6e090133 jobqueue: various cleanups to JobQueueFederated
* The relevant partition information is now stored in
  the fields instead of the general information for all wikis.
* Also improved hash ring caching and made getCoalesceLocationInternal()
  more robust.
* Improved availability of sibling queue methods.

Change-Id: I7ac268bb1db4615e0f735576c506593d5688e17e
2013-10-17 17:39:02 -07:00
Aaron Schulz
4136f8269b Fixed total breakage of HashRing in 9d1cd9a.
* This had PHP warnings but no errors, but was broken.
* Added some unit tests for this class.

Change-Id: I7c7ea2c30ca747aae7a3c3951fc33c69052de085
2013-05-15 20:17:24 +00:00
Aaron Schulz
9d1cd9ad55 Strengthened validation for HashRing a bit.
Change-Id: Ib0331662c785d806063ca730905dd88b6545d8f0
2013-05-13 11:20:19 -07:00
Aaron Schulz
aaee020088 Bumped RING_SIZE to use 28 bits to improve weight accuracy a bit.
Change-Id: I4dbecd292fd404e43ed296dd37892db113fa1026
2013-04-22 13:47:52 -07:00
umherirrender
ef2f507d23 Fixed spacing in files direct in includes folder
Added spaces before if, foreach
Added some braces for one line statements

Change-Id: Ibb8dd102db045522d12ff939075ba7420d95ab6b
2013-04-21 06:38:49 +00:00
Aaron Schulz
fc81192a06 [JobQueue] Added JobQueueFederated class for partitioned queues.
* This lets queues be horizontally partitioned onto
  different servers, with weights assigned to each.
  The queue classes used by the different partitions
  can be hetereogenous or homogeneous.
* How partitioning is done is setup similar to LBFactory,
  where wikis belong to sections and sections have config.

Change-Id: I44d59b67cf417dca28a3e9b25371dac5a7ffcb47
2013-04-19 03:27:15 +00:00