Increase Alloc channel buffers
This commit is contained in:
parent
09be6c32e9
commit
96fd272422
|
@ -77,7 +77,7 @@ func NewAllocRunner(logger *log.Logger, config *config.Config, updater AllocStat
|
|||
tasks: make(map[string]*TaskRunner),
|
||||
taskStates: copyTaskStates(alloc.TaskStates),
|
||||
restored: make(map[string]struct{}),
|
||||
updateCh: make(chan *structs.Allocation, 8),
|
||||
updateCh: make(chan *structs.Allocation, 64),
|
||||
destroyCh: make(chan struct{}),
|
||||
waitCh: make(chan struct{}),
|
||||
}
|
||||
|
|
|
@ -691,7 +691,7 @@ func (c *Client) run() {
|
|||
go c.watchNodeUpdates()
|
||||
|
||||
// Watch for changes in allocations
|
||||
allocUpdates := make(chan *allocUpdates, 1)
|
||||
allocUpdates := make(chan *allocUpdates, 8)
|
||||
go c.watchAllocations(allocUpdates)
|
||||
|
||||
for {
|
||||
|
|
Loading…
Reference in a new issue