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 allserviceId
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
andsentinel-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