Re: [go-nuts] Does scheduler step in my weighted fair queue implementation?

2017-07-14 Thread Chifeng Chou
ul 13, 2017 at 9:15 PM, Chifeng Chou > wrote: > > > > I implemented a weighted fair queue using a naive approach which is > giving > > different amount of attempts according to weights to access upstreams. > > However, when calls of fetch() come very fast, our inter

[go-nuts] Does scheduler step in my weighted fair queue implementation?

2017-07-13 Thread Chifeng Chou
I implemented a weighted fair queue using a naive approach which is giving different amount of attempts according to weights to access upstreams. However, when calls of fetch() come very fast, our internal sync constructs are not ready(when *select*) and many attempts are simply wasted. It seems