In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Today, the editor will share with you the relevant knowledge points about how to set up the sentinel flow control framework. The content is detailed and the logic is clear. I believe most people still know too much about this, so share this article for your reference. I hope you can get something after reading this article. Let's take a look.
Sentinel is a highly available traffic protection component for distributed service architecture, which mainly takes traffic as the starting point to help developers ensure the stability of micro-services from many dimensions, such as current limit, traffic shaping, circuit breaker degradation, system load protection, hot spot protection and so on.
Sentinel has the following characteristics:
Rich application scenarios: Sentinel takes on the core scenarios of Alibaba's Singles Day traffic promotion in the past 10 years, such as second kill (that is, burst traffic control within the system capacity), message peak cutting and valley filling, cluster flow control, real-time fuse downstream unavailable applications, and so on.
Complete real-time monitoring: Sentinel also provides real-time monitoring function. You can see the second-rate data of a single machine connected to the application in the console, and even the summary operation of less than 500 clusters.
Broad open source ecology: Sentinel provides out-of-the-box integration modules with other open source frameworks / libraries, such as Spring Cloud, Dubbo, and gRPC. You only need to introduce the appropriate dependencies and make a simple configuration to quickly access Sentinel.
Perfect SPI extension point: Sentinel provides easy-to-use and perfect SPI extension interface. You can quickly customize the logic by implementing an extension interface. Such as customized rule management, adapting to dynamic data sources, and so on.
Let's take a look at the sentinel flow control framework, as follows:
Set log directory. Default is under $HOME/logs directory.
/ / set metric.log / block.log / sentinel-record.log and other log directories System.setProperty ("csp.sentinel.log.dir", baseDir + "/ csp"); / / set eagleeye-self.log directory System.setProperty ("EAGLEEYE.LOG.PATH", baseDir + "/ eagleeye")
Metric.log is the qps information that records statistics, such as passQps, blockQps, successQps, exceptionQps,rt, and so on. Once a second, records can be converted into MetricNode entity class objects through com.alibaba.csp.sentinel.node.metric.MetricNode#fromFatString (String line).
Sentinel-block.log is the blockqps information counted during current limit / fuse, which is counted once a second.
The details part, avoid stepping on the pit, the following is the combed logic, the so-called front-line big factory, the source code is really messy.
These are all the contents of the article "how to set up the sentinel flow Control Framework". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.