Liking cljdoc? Tell your friends :D

onyx.scheduling.common-job-scheduler


actual-usageclj

(actual-usage replica jobs)

add-allocation-versionsclj

(add-allocation-versions new old)

Adds version numbers to jobs whenever an allocation changes for that job. This gives a measure of validity of messages and barriers that transit through the system.

Adds version numbers to jobs whenever an allocation changes for that job.
This gives a measure of validity of messages and barriers that transit through the system.
raw docstring

add-messaging-short-idsclj

(add-messaging-short-ids replica)

Converts long form messaging identifies into short int identifiers, for quick comparison and reduced message size.

Converts long form messaging identifies into short int identifiers, for
quick comparison and reduced message size.
raw docstring

anti-jitter-constraintsclj

(anti-jitter-constraints replica
                         jobs
                         task-seq
                         peer->vm
                         task->node
                         planned-capacities)

Reduces the amount of 'jitter' - that is unnecessary movement from a peer between tasks. If the actual capacity is greater than or equal to the planned capacity, we shouldn't reallocate the peers. BtrPlace has a Fence constraint that lets us express just that.

Reduces the amount of 'jitter' - that is unnecessary movement
from a peer between tasks. If the actual capacity is greater than
or equal to the planned capacity, we shouldn't reallocate the peers.
BtrPlace has a Fence constraint that lets us express just that.
raw docstring

assign-coordinatorsclj

(assign-coordinators {:keys [coordinators allocations] :as replica})

assign-task-resourcesclj

(assign-task-resources new-replica original-replica peer->task)

assign-task-slot-idsclj

(assign-task-slot-ids new-replica original peer->task)

btr-place-schedulingclj

(btr-place-scheduling replica jobs job-utilization capacities)

build-current-modelclj

(build-current-model replica mapping task->node peer->vm)

build-job-and-task->nodeclj

(build-job-and-task->node model task-seq)

build-node->taskclj

(build-node->task task->node)

build-peer->taskclj

(build-peer->task result-model peer->vm node->task)

build-peer->vmclj

(build-peer->vm replica model)

calculate-capacityclj

(calculate-capacity replica task-capacities task->node [job-id task-id :as id])

capacity-constraintsclj

(capacity-constraints replica
                      job-utilization
                      task-seq
                      task->node
                      planned-capacities)

change-peer-allocationsclj

(change-peer-allocations replica peer->task)

claim-spare-peerscljmultimethod


constrainted-tasks-for-peerclj

(constrainted-tasks-for-peer replica jobs peer-tags)

deallocate-starved-jobsclj

(deallocate-starved-jobs replica)

Strips out allocations from jobs that no longer meet the minimum number of peers. This can happen if a peer leaves from a running job.

Strips out allocations from jobs that no longer meet the minimum number
of peers. This can happen if a peer leaves from a running job.
raw docstring

full-allocation?clj

(full-allocation? replica utilization planned-capacities)

grouped-task?clj

(grouped-task? replica job-id task-id)

grouping-task-constraintsclj

(grouping-task-constraints replica task-seq task->node peer->vm)

input-task?clj

(input-task? replica job-id task-id)

job->planned-task-capacityclj

(job->planned-task-capacity replica jobs-ids utilization)

job-claim-peersclj

(job-claim-peers replica job-offers)

job-coverable?clj

(job-coverable? replica job n)

job-lower-boundclj

(job-lower-bound replica job)

job-offer-n-peerscljmultimethod


job-upper-boundclj

(job-upper-bound replica job)

messaging-long-formclj

(messaging-long-form {:keys [allocations in->out] :as replica})

n-no-op-tasksclj

(n-no-op-tasks replica capacities task-seq)

n-qualified-peersclj

(n-qualified-peers replica peers job)

no-tagged-peers-constraintsclj

(no-tagged-peers-constraints replica peers peer->vm task->node jobs no-op-node)

peer-running-constraintsclj

(peer-running-constraints peer->vm)

reallocate-peersclj

(reallocate-peers replica)

reconfigure-cluster-workloadclj

(reconfigure-cluster-workload new old)

remove-jobclj

(remove-job replica job)

slot-idsclj

(slot-ids replica job-id task-id)

src-peersclj

(src-peers {:keys [allocations in->out input-tasks] :as replica} job task)

task-tagged-constraintsclj

(task-tagged-constraints replica peers peer->vm task->node jobs no-op-node)

to-node-arrayclj

(to-node-array nodes)

unassign-task-slot-idsclj

(unassign-task-slot-ids new-replica original-replica peer->task)

unconstrained-tasksclj

(unconstrained-tasks replica jobs)

unrolled-tasksclj

(unrolled-tasks replica task-utilization)

update-peer-siteclj

(update-peer-site replica job-id task-id peer-id)

update-slot-id-for-peerclj

(update-slot-id-for-peer replica job-id task-id peer-id)

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close