[GitHub] [apisix] hnlq715 commented on issue #3211: Feature: implement p2c balancer with random, ewma, leastloaded

2021-01-14 Thread GitBox
hnlq715 commented on issue #3211: URL: https://github.com/apache/apisix/issues/3211#issuecomment-760586816 @tokers Nginx features are merged into open source version smoothly :-) http://nginx.org/en/docs/http/ngx_http_upstream_module.html#zone ``` Syntax: | state file;

[GitHub] [apisix] hnlq715 commented on issue #3211: Feature: implement p2c balancer with random, ewma, leastloaded

2021-01-14 Thread GitBox
hnlq715 commented on issue #3211: URL: https://github.com/apache/apisix/issues/3211#issuecomment-760578226 @ElvinEfendi Very insightful, thanks @moonming @membphis After reviewing [nginx's random

[GitHub] [apisix] hnlq715 commented on issue #3211: Feature: implement p2c balancer with random, ewma, leastloaded

2021-01-13 Thread GitBox
hnlq715 commented on issue #3211: URL: https://github.com/apache/apisix/issues/3211#issuecomment-759904817 I think we should not use shared.DICT to store ewma data, to avoid using lock, which could improve performance significantly. roundrobin: 10068.77 qps ewma from

[GitHub] [apisix] hnlq715 commented on issue #3211: Feature: implement p2c balancer with random, ewma, leastloaded

2021-01-13 Thread GitBox
hnlq715 commented on issue #3211: URL: https://github.com/apache/apisix/issues/3211#issuecomment-759886978 @spacewander Yep, seems like it has switched to p2cewma, I'd like to benchmark this implemention too.

[GitHub] [apisix] hnlq715 commented on issue #3211: Feature: implement p2c balancer with random, ewma, leastloaded

2021-01-13 Thread GitBox
hnlq715 commented on issue #3211: URL: https://github.com/apache/apisix/issues/3211#issuecomment-759879057 Simple benchmark result with 20 servers in upstream: * roundrobin: 10685.03 qps * ewma: 9207.02 qps * p2cewma: 10101.92 qps If the number of servers in upstream grows,

[GitHub] [apisix] hnlq715 commented on issue #3211: Feature: implement p2c balancer with random, ewma, leastloaded

2021-01-07 Thread GitBox
hnlq715 commented on issue #3211: URL: https://github.com/apache/apisix/issues/3211#issuecomment-75606 > @hnlq715 A benchmark result is also desired to let us know the earnings :). Absolutely  This is an