Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewEDF (0.15 sec)

  1. pkg/test/loadbalancersim/loadbalancer/edf.go

    	e.currentDeadline = entry.deadline
    
    	// Re-add it with the updated weight.
    	e.Add(calcWeight(entry.weight, entry.value), entry.value)
    	return entry.value
    }
    
    // NewEDF create a new edf scheduler
    func NewEDF() *EDF {
    	pq := make(priorityQueue, 0)
    	return &EDF{
    		pq:           &pq,
    		currentIndex: 0,
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jul 20 19:13:32 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  2. pkg/test/loadbalancersim/loadbalancer/leastrequest.go

    func newWeightedLeastRequest(conn *weightedConnections, activeRequestBias float64) network.Connection {
    	lb := &weightedLeastRequest{
    		weightedConnections: conn,
    		activeRequestBias:   activeRequestBias,
    		edf:                 NewEDF(),
    	}
    
    	// Add all endpoints to the EDF scheduler.
    	for _, c := range conn.conns {
    		lb.edf.Add(lb.calcEDFWeight(0, c), c)
    	}
    
    	return lb
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Nov 14 20:23:34 UTC 2022
    - 3.4K bytes
    - Viewed (0)
Back to top