Hi,
another contribution, this time for WorkQueueFrontiers
(eg. BdbFrontier).
Currently, the "allQueues" Map is always backed by a
Bdb database (using a CachedBdbBigMap).
In fact, this is not necessary in all cases, especially
when the BucketQueueAssignmentPolicy is in use (it has
a fixed number of queues).
Instead, allQueues can be stored in a HashMap, if the
assigned QueueAssignmentPolicy instance has a maximum
number of queues lower than a certain number (is 3000
ok?) and if the frontier implementation stores its
WorkQueue payload on harddisk.
This patch provides hooks to retrieve this information
(QueueAssignmentPolicy.maximumNumberOfKeys() and
WorkQueueFrontier.workQueueDataOnDisk()), so it should
be straightforward to apply this to non-standard
implementations, too.
Christian
Michael Stack
None
1.6.0
Public
|
Date: 2007-03-14 01:41
|
|
Date: 2005-05-25 22:06 Logged In: YES |
| Filename | Description | Download |
|---|---|---|
| AllQueuesHashMap.patch | allQueues/BucketQueueAssignmentPolicy patch | Download |
| Field | Old Value | Date | By |
|---|---|---|---|
| assigned_to | nobody | 2005-11-23 23:36 | gojomo |
| artifact_group_id | None | 2005-09-23 21:08 | gojomo |
| close_date | - | 2005-05-25 22:06 | stack-sf |
| status_id | Open | 2005-05-25 22:06 | stack-sf |
| File Added | 135753: AllQueuesHashMap.patch | 2005-05-24 15:32 | ck-heritrix |
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use