Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I get statistic data in my custom ribbon rule? #472

Open
jerry-yuan opened this issue Jan 2, 2021 · 0 comments
Open

How can I get statistic data in my custom ribbon rule? #472

jerry-yuan opened this issue Jan 2, 2021 · 0 comments

Comments

@jerry-yuan
Copy link

As the WeightedResponseTimeRule, I tried to get statistic data by AbstractLoadBalancer.getLoadBalancerStats() (like ServerWeight.maintainWeights() do). But both my custom RibbonRule and ServerWeight will get an empty LoadBalancerStats object with all static data of 0.0, and I have make an environment to make different response time far larger with 0ms. The Weighted ResponseTimeRule's weights is always zero and behaved like an RandomRule. I am not sure if there is any configuration swiches to enable statistics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant