github alibaba/Sentinel 1.6.0
v1.6.0

latest releases: 1.8.7, 2.0.0-alpha, 1.8.6...
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
  • 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

Don't miss a new Sentinel release

NewReleases is sending notifications on new releases.