功能介绍
在微服务存在多个版本、多个实例的情况下,需要管理服务之间的路由,达到无损升级、应用拨测等业务目的。Sermant Agent提供了标签路由的能力,标签路由通过匹配http请求头中的信息,把符合规则的流量转发到对应的标签应用中,从而实现标签路由的功能。

- 此功能目前处于公测阶段,当前仅在华东-上海一支持。
- 当ServiceComb引擎为2.4.0及以上版本且未开启安全认证时,支持此功能。
- 目前支持将Spring Cloud框架和Dubbo框架开发的java应用通过Sermant Agent注册到ServiceComb引擎中。
- Dubbo框架请参考基于Sermant Agent接入的Dubbo应用实现标签路由功能。
- 目前只支持基于线程池模型的异步调用。
版本支持
Spring Cloud Version | Spring Boot Version | Spring Cloud Openfeign Version | RestTemplate Version | Spring Cloud Loadbalancer Version | Spring Cloud Netflix Ribbon Version | Spring Cloud Gateway Version | Spring Cloud Netflix Zuul Version |
|---|---|---|---|---|---|---|---|
Edgware.SR2+ | 1.5.x | 1.4.3.RELEASE+ | 4.3.6.RELEASE+ | - | 1.4.3.RELEASE+ | - | 1.4.3.RELEASE+ |
Finchley.x | 2.0.x | 2.0.x | 5.0.x | - | 2.0.x | - | 2.0.x |
Greenwich.x | 2.1.x | 2.1.x | 5.1.x | - | 2.1.x | - | 2.1.x |
Hoxton.x | 2.2.x、2.3.x | 2.2.x | 5.2.x | 2.2.5.RELEASE+ | 2.2.x | 2.2.x | 2.2.x |
2020.0.x | 2.4.x、2.5.x | 3.0.x | 5.3.x | 3.0.x | - | 3.0.x | - |
2021.0.0 | 2.6.x | 3.1.x | 5.3.x | 3.1.x | - | 3.1.x | - |

通过Sermant Agent注册到ServiceComb引擎中的应用可以使用标签路由功能。

