Re: Proposal for weighted routing user experience in Cloud Foundry
Filip Hanik
aaarrgh, there is a bug in my psuedo code clusterWeight = [v1,v1,v1,v1,v1,v1,v2,v2,v2,v3,v3] should be clusterWeight = [v1,v1,v1,v1,v1,v1,v2,v2,v2,v3,v4] Full solution: Implementation: "Randomized Round Robin" is also super simple [pseudo code follows] clusterWeight = [v1,v1,v1,v1,v1,v1,v2,v2,v2,v3,v4] //very easy to create based on base1 solution randomCluster = random(clusterWeight) int atomicPointer = 0; for each request: next = atomicPointer.getAndIncrease(); application = randomCluster[atomicPointer];
On Fri, Jul 13, 2018 at 8:09 PM Filip Hanik <fhanik@...> wrote:
|
|