xytis / lua-consul-balancer

Implementation of consul as upstream provider
18 stars 3 forks source link

Is there a plan to support weighting? #6

Open hulining opened 1 year ago

hulining commented 1 year ago

As the issus title says, are there any plans to support weight in the future?

The service.weights field in the response of the consul health api can represent optional weights for a service. So, Whether can combine lua-resty-balancer to support the weight?

I gave it a try, but my understanding of openrestry and lua wasn't enough to implement it.

Can someone take a look at it? Looking forward to your reply. Thank you very much~~

xytis commented 1 year ago

I am not actively maintaining this codebase anymore. If anyone would be interested in implementing this feature, I would gladly merge it.