Sentinel v1.6.0 Release Notes

Release Date: 2019-04-25 // about 5 years ago
  • ๐Ÿ’ฅ Breaking Changes

    ๐Ÿ”จ In 1.6.0, we refactored the statistic and flow control algorithm of parameter flow control. The old mechanism (LRU map + sliding window for the parameter) has been replaced by an algorithm like token bucket. Now parameter flow rule supports setting statistic interval (intervalSec), burst count (burst), traffic shaping mode (controlBehavior, currently supports default mode and throttling mode).

    ๐Ÿ”จ We've refactored and improved fallback support for @SentinelResource annotation to make it more understandable and common. See the document for more information.

    Since 1.6.0, all API gateway adapter will be based on the sentinel-api-gateway-adapter-common module. There are some changes for Sentinel Zuul Adapter. In previous versions, the adapter will mark all serviceId and API path as resources. Since 1.6.0, the adapter will regard all route ID (aka. proxy) and customized API groups (defined in API gateway common module) as resources.

    ๐Ÿ”‹ Features / Enhancements

    • ๐Ÿ”จ Refactor rule, statistic and flow checking implementation for parameter flow control and support throttling traffic shaping mode (#677)
    • โž• Add sentinel-api-gateway-adapter-common module for universal gateway rule and API definition management
    • โž• Add Sentinel Spring Cloud Gateway adapter module and implementation (#695)
    • ๐Ÿ”จ Refactor and improve Sentinel Zuul Adapter (#698)
    • ๐Ÿ”จ Refactor and improve fallback support for @SentinelResource annotation (#693)
    • ๐Ÿ‘Œ Support passing acquireCount and parameters to entry via SentinelReactorSubscriber in Sentinel Reactor Adapter (#630)
    • ๐Ÿ‘Œ Support parsing HTTP POST request in sentinel-transport-netty-http and sentinel-transport-simple-http (#620)
    • โž• Add FileInJarReadableDataSource to support reading config file in jar (#646)
    • โž• Add @SpiOrder annotation and improve SPI loader to support loading SPI with highest precedence
    • 0๏ธโƒฃ Make CommandCenterProvider and HeartBeatSenderProvider choose the instance with highest precedence by default (#675)
    • โž• Add exceptionsToIgnore configuration support in @SentinelResource annotation (#683)
    • โž• Add appType property field in SentinelConfig (#696)

    ๐Ÿ› Bug fixes

    • ๐Ÿ›  Fix the NPE bug when passing null args to SphU.entry() and paramIdx is negative (#642)

    Dashboard

    • โž• Add a simple login page to support basic auth in Sentinel dashboard (#659)
    • โšก๏ธ Refinement and support HTTP POST request for update operations in SentinelApiClient (#620)
    • ๐Ÿ›  Fix CountDownLatch wait timeout in MetricFetcher when machine is dead (#645)

    Thanks for the contributors: @cdfive, @dqing0, @jasonjoo2010, @luoxn28, @paulkennethkent, @shxz130, @yikangfeng, @zhaixiaoxiang