Skip to content

Commit e5e318f

Browse files
committed
⬆️ peakewma support dubbo3
1 parent ff281e2 commit e5e318f

File tree

4 files changed

+37
-5
lines changed

4 files changed

+37
-5
lines changed

README_CN.md

Whitespace-only changes.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Introduction
2+
PeakEwmaLoadBalance is designed to converge quickly when encountering slow endpoints.
3+
4+
It is quick to react to latency spikes recovering only cautiously.Peak EWMA takes history into account,so that slow behavior is penalized relative to the supplied `decayTime`.
5+
6+
if there are multiple invokers and the same cost,then randomly called,which doesn't care about weight.
7+
8+
Inspiration drawn from:
9+
10+
https://github.com/twitter/finagle/blob/1bc837c4feafc0096e43c0e98516a8e1c50c4421
11+
12+
/finagle-core/src/main/scala/com/twitter/finagle/loadbalancer/PeakEwma.scala
13+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# 简介
2+
PeakEwmaLoadBalance 旨在在遇到慢速端点时快速收敛。
3+
4+
它对延迟峰值反应很快,只是谨慎地恢复。峰值 EWMA 会考虑历史,因此相对于提供的“decayTime”,缓慢的行为会受到惩罚。
5+
6+
如果有多个调用者且成本相同,则随机调用,不关心权重。
7+
8+
灵感源自:
9+
10+
https://github.com/twitter/finagle/blob/1bc837c4feafc0096e43c0e98516a8e1c50c4421
11+
12+
/finagle-core/src/main/scala/com/twitter/finagle/loadbalancer/PeakEwma.scala

dubbo-cluster-extensions/dubbo-cluster-loadbalance-peakewma/pom.xml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,25 @@
2727
<modelVersion>4.0.0</modelVersion>
2828

2929
<artifactId>dubbo-cluster-loadbalance-peakewma</artifactId>
30-
<version>1.0.2-SNAPSHOT</version>
30+
<version>3.0.0-SNAPSHOT</version>
3131
<packaging>jar</packaging>
3232

3333
<dependencies>
34+
<!-- <dependency>-->
35+
<!-- <groupId>org.apache.dubbo</groupId>-->
36+
<!-- <artifactId>dubbo-cluster</artifactId>-->
37+
<!-- <optional>true</optional>-->
38+
<!-- <version>3.2.7</version>-->
39+
<!-- </dependency>-->
3440
<dependency>
3541
<groupId>org.apache.dubbo</groupId>
36-
<artifactId>dubbo-cluster</artifactId>
37-
<optional>true</optional>
42+
<artifactId>dubbo</artifactId>
43+
<version>3.2.7</version>
3844
</dependency>
3945
<dependency>
40-
<groupId>org.apache.dubbo</groupId>
41-
<artifactId>dubbo-rpc-api</artifactId>
46+
<groupId>com.alibaba</groupId>
47+
<artifactId>fastjson</artifactId>
48+
<scope>test</scope>
4249
</dependency>
4350
</dependencies>
4451

0 commit comments

Comments
 (0)