[core] Suboptimal implementation of backoff
-- re-queueing behaviours
#515
Labels
enhancement
New feature or request
Description
The current implementation of the
backoff
function needs to be improved to allow for better memory / cpu consumption by MCAD.In its current implementation of the func (qjm *XController) backoff(q *arbv1.AppWrapper, reason string, message string) { uses a call time.Sleep(time.Duration(qjm.serverOption.BackoffTime) * time.Second) to "backoff" the scheduling of the new appwrappers or app wrappers that have been created.
The
backoff
function is called at this points in the code:What would you want to see
MCAD should use timer implementation that would cope with a large number of app wrappers that would need to be backed off (no resource available or preemption)
The text was updated successfully, but these errors were encountered: