tower icon indicating copy to clipboard operation
tower copied to clipboard

can i Custom load balancing type? just like ,random,hash,Round... and more?

Open zhuxiujia opened this issue 5 years ago • 3 comments

can i Custom load balancing type? just like ,random,hash,Round... and more?

zhuxiujia avatar Feb 23 '20 12:02 zhuxiujia

Hi @zhuxiujia! Can you give some more details about what your use-case is, what you've tried, and what specifically you'd like to see in tower?

jonhoo avatar Mar 31 '20 21:03 jonhoo

Can you give some more details about what your use-case is, what you've tried, and what specifically you'd like to see in tower?

just like 'spring cloud ribbon' , this java lib have some Common load balancing algorithms. for example:
i want an RPC Callers always access fixed one server( for keep some session or auth or Database transactions),i can use hash load balancing algorithm Complete this requirement。

I hope tower to add more load balancing algorithms,so i can Choose the right one to use it.

zhuxiujia avatar Apr 01 '20 08:04 zhuxiujia

I think you should be able to do that using the new "steer" module that @akshayknarayan developed. It essentially allows you to choose which backing service should receive a particular request. Does that satisfy your use-case?

jonhoo avatar Apr 01 '20 12:04 jonhoo