Open sbernard31 opened 5 years ago
Currently the algorithm to dispatch traffic is very simple. It's just a simple circular rotation :
To do that we need a state : the last(or next) real server used.
The idea of "doing a random pick" was raised. This way we could remove the state. We could investigate this.
Maybe we can use : bpf_get_prandom_u32 helper function.
bpf_get_prandom_u32
Currently the algorithm to dispatch traffic is very simple. It's just a simple circular rotation :
To do that we need a state : the last(or next) real server used.
The idea of "doing a random pick" was raised. This way we could remove the state. We could investigate this.
Maybe we can use :
bpf_get_prandom_u32
helper function.