Skip to content

4.8.6(APR 24, 2019)

Compare
Choose a tag to compare
@HaojunRen HaojunRen released this 24 Apr 03:06

Nepxion Discovery 4.8.6 发布

  1. 支持Spring Cloud Finchley.SR3
  2. 升级Spring Cloud Alibaba到0.2.2.RELEASE
  3. 升级Nacos到1.0.0
  4. 升级Sentinel到1.5.2
  5. 升级Apollo到1.3.0
  6. 升级Spring Boot Admin到2.0.5
  7. 增加更简洁的全链路路由配置方式,只需在规则中配置如下,即可实现全链路路由。用法跟Header头部传参一致
<rule>
    <strategy>
        <version>{"discovery-springcloud-example-a":"1.0", "discovery-springcloud-example-b":"1.0", "discovery-springcloud-example-c":"1.0;1.2"}</version>
        <!-- <version>1.0</version> -->
        <region>{"discovery-springcloud-example-a":"qa;dev", "discovery-springcloud-example-b":"dev", "discovery-springcloud-example-c":"qa"}</region>
        <!-- <region>dev</region> -->
        <address>{"discovery-springcloud-example-a":"192.168.43.101:1100", "discovery-springcloud-example-b":"192.168.43.101:1201", "discovery-springcloud-example-c":"192.168.43.101:1300"}</address>
    </strategy>
</rule>
  1. 框架内置的三个Http Header加前缀n-d-,避免和业务系统冲突,分别是"n-d-region", "n-d-version", "n-d-address"(该项和旧版本不兼容,需要在调用端修改)
  2. 元数据Metadata增加服务名,简化调用端获取上游服务的服务名的方式,通过pluginAdapter.getServerServiceId(server)方式获取
  3. 去掉Rule对象打印,提高性能
  4. 适配新版Sentinel的@SentinelRestTemplate注解中熔断和快速失败的后续处理方式(见MyRestTemplateBlockHandler.java和MyRestTemplateFallbackHandler.java)
  5. 优化旗标(Banner)打印,支持彩色(ANSI Color)旗标,该功能需要在IDE里安装ANSI Color插件。支持如下参数,实现对旗标(Banner)的控制:
  • nepxion.banner.shown - 开启和关闭旗标(Banner)打印
  • nepxion.banner.shown.ansi.mode - 开启和关闭旗标(Banner)彩色显示