apache / apache/servicecomb-java-chassis
Supports traffic warm-up when the service is just started
Aperta
2.x
3.x
enhancement
- Lingua principale
- Java
- Stelle
- 1.9k
- Fork
- 814
- Merge medio
- 8g 23h
- PR unite (30g)
- 1
Descrizione
能力:支持对刚启动服务实例流量预热,流量曲线增加,流量预热时间结束后与其他实例均等。
方案:
计算每个实例的权重,根据权重选择一个实例作为负载使用。
1、权重计算
默认每个实例权重为100,预热实例权重为Math.round(Math.pow(实例运行时间/ 设置的预热时间, 曲率) * 默认权重100)
2、选择实例
当存在需要预热实例时(即设置的预热时间未结束),根据计算的权重选择实例返回负载;当不存在需要预热的实例时,全部实例返回。
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.