Sentinel 1.6.3 正式發布,引入網關流控控制臺的支持,同時帶來一些 bug 修復和功能改進,歡迎使用!
Release Notes: https://github.com/alibaba/Sentinel/releases/tag/1.6.3
新版本特性介紹:https://sentinelguard.io/zh-cn/blog/sentinel-1-6-3-release.html
Sentinel 網關流控支持針對不同的路由和自定義的 API 分組進行流控,支持針對請求屬性(如 URL 參數,Client IP,Header 等)進行流控。Sentinel 1.6.3 引入了網關流控控制臺的支持,用戶可以直接在 Sentinel 控制臺上查看 API Gateway 實時的 route 和自定義 API 分組監控,管理網關規則和 API 分組配置。
在 API Gateway 端,用戶只需要在原有啟動參數的基礎上添加如下啟動參數即可標記應用為 API Gateway 類型:
-Dcsp.sentinel.app.type=1
添加正確的啟動參數後,我們就可以在 Sentinel 上面看到對應的 API Gateway 了。我們可以查看實時的 route 和自定義 API 分組的監控和調用信息:
我們可以在控制臺配置自定義的 API 分組,將一些 URL 匹配模式歸為一個 API 分組:
然後我們可以在控制臺針對預設的 route ID 或自定義的 API 分組配置網關流控規則:
感謝 Committer @cdfive 的貢獻。更多網關流控的特性可以參考 Sentinel 網關流控文檔。
其它改進 控制臺支持配置 CPU 使用率模式的系統保護規則 Web Servlet CommonFilter 支持通過 UrlCleaner 來過濾不需要的 URL 模式 Spring Cloud Gateway filter 支持配置 order,以解決 Spring Cloud Gateway @Order 註解不生效的 bug詳細信息請參考 Release Notes,歡迎大家使用並提出建議,也歡迎大家一起參與貢獻。
Thanks for the contributors: @cdfive, @Crazy10552, @jasonjoo2010, @linlinisme, @lym-ifae
更多的特性將會隨著下個大版本 1.7.0 發布,敬請期待!
【Sentinel 面向社區招募】:
1. 功能開發:feature 開發,bugfix、單測補充、samples、官網建設等相關方面等。
2. 文檔建設:包括但不限於源碼解析、開發文檔,用戶文檔、最佳實踐文章、翻譯等。
3. 多語言實現:包括但不限於 C++、Golang 等。
如果您有時間,有熱情,有意願,歡迎加入核心貢獻小組,一起共同完善 Sentinel。 Sentinel Golang 版本正在醞釀設計中,有意願參與共建的同學歡迎聯繫 @sczyh30 on GitHub
Sentinel 社區期待您的參與,加入我們吧!
【Sentinel 相關資料】 Sentinel repo: https://github.com/alibaba/Sentinel
Sentinel 文檔:https://github.com/alibaba/Sentinel/wiki/介紹
有問題請先參考【FAQ】:https://github.com/alibaba/Sentinel/wiki/FAQ
社區貢獻指南: https://github.com/alibaba/Sentinel/issues/391
企業用戶登記:https://github.com/alibaba/Sentinel/issues/18
Sentinel C++: https://github.com/alibaba/sentinel-cpp