当前位置:网站首页>Tencent cloud layer 7 load balancing log analysis and monitoring
Tencent cloud layer 7 load balancing log analysis and monitoring
2022-06-24 17:20:00 【tinkerli】
LB common problem
Abnormal location
- A lot of QPS Scene , A few client requests are abnormal ,RS The client did not receive the request ,LB Whether to receive , No way to judge .
- The end customer feedback part of the request is abnormal , For example, slow ,RS logging response_time normal , Where does the time come from ?
- Some time , Intranet 7 Layer request exception , What's the problem
Statistical analysis
- Expect a full link time-consuming Topology ,request_time,connect,response_time.
- Open the http2, Whether to take effect , What is the proportion of the entire agreement ?
- The core domain names are distributed on different instances , Request proportion analysis .
LB7 Layer access CLS The way
Single instance access
- Select the corresponding 7 Layer instance , Click the small round pen to edit .
- open " log enable " switch
- Select the corresponding log set and log topic , If there is no appropriate log set or log topic , You can go to " Access log " New page , Then click submit to complete .
- To log set management , Select the corresponding log topic (topic) Edit index .
- There are logs coming in , You can choose to automatically configure , It is recommended to open all " Turn on Statistics ", For the subsequent statistical analysis function .
Batch access ( establish CLB Proprietary log sets )
remarks : At present, batch access , Need to find CLB Product launch white list , To see the entrance .
Suggest : Different log topics are distinguished according to the actual business situation , such as http layer , Cache layer , Data layer or according to business dimension , Financial business , Main station service , Order business, etc , because CLS It is also a pipe , Different paths can be selected for different log topics , To COS,CKAFKA,SCF And so on , Archive data .
- After opening the white list , Click on " Access log " Button , Get into clblog Log set configuration page .
- CLB The log set name is fixed , No need to fill in , You can select a save time .
- New blog topic , It is recommended to fill in according to the actual situation , Select add corresponding LB example , Save it .
- Save complete , wait a moment 5·10 Minutes .
- Index on and statistics on , Refer to single instance access .
LB Description of log field meaning
Reference link :https://cloud.tencent.com/document/product/214/41379
Grammar and rules
For specific syntax, please refer to :https://cloud.tencent.com/document/product/614/47044
Rule of grammar
Examples of retrieval statements
The actual scene uses
- Retrieve one URL, An example of a request time greater than a certain value
request:"HEAD /aaa/ HTTP/1.1" AND request_time:>0.005
- View a certain rs 4xx Requested log
status:[400 TO 500} AND upstream_addr:"10.0.1.12:80"
Analysis statistics add Dashboard
For an introduction to the analysis, please refer to :https://cloud.tencent.com/document/product/614/44061
Time market
- For example, the average request duration , Real time observation of website response :
* | SELECT HISTOGRAM(CAST(__TIMESTAMP__ AS TIMESTAMP), INTERVAL 1 MINUTE) AS dt,AVG(request_time) AS " Average request processing time /clb example ", server_addr GROUP BY dt, server_addr order by dt
The processing time of each stage can be clearly judged in detail , Fastest location problem .
Large capacity
- For example, real-time to all rs Number of requests for , Judge each rs Load capacity :
* | SELECT HISTOGRAM(CAST(__TIMESTAMP__ AS TIMESTAMP), INTERVAL 1 MINUTE) AS dt, COUNT(1) AS " Every minute to rs Number of requests for ", upstream_addr GROUP BY dt, upstream_addr order by dt
Status code market
- For example, the status code of each dimension is counted in real time , To understand the health level :
* | SELECT HISTOGRAM(CAST(__TIMESTAMP__ AS TIMESTAMP), INTERVAL 1 MINUTE) AS dt, count(1), status GROUP BY dt, status order by dt
Add statistical analysis charts to Dashboard
Select the corresponding icon , Click on " Add to dashboard " that will do :
Real time alarm
Alarm introduction reference :https://cloud.tencent.com/document/product/614/51741
Add alarm rules flexibly based on retrieval analysis , Add an alarm strategy according to the alarm rules , Alert notification to wechat , Enterprise WeChat ,webhook etc. , Real time receiving line LB The health of .
边栏推荐
- Cloud native monitoring practice (2) monitoring and collection of components outside the TKE cluster
- Markdown syntax -- Formula
- [DB Bao 45] MySQL highly available mgr+consult architecture deployment
- Example description and case of ansible playbook automated cluster server management
- 区块哈希游戏竞猜系统开发(成熟代码)
- [playing with Tencent cloud] a solution to the impassability of cross-border access to foreign websites using Tencent cloud CVM
- Go kit microservice integrates Promtheus to solve monitoring alarm problems
- TRCT test cloud + article online speed
- ClassNotFoundException v/s NoClassDefFoundError
- 未来银行需要用明天的思维,来思考今天架构
猜你喜欢

Daily algorithm & interview questions, 28 days of special training in large factories - the 15th day (string)
![[leetcode108] convert an ordered array into a binary search tree (medium order traversal)](/img/e1/0fac59a531040d74fd7531e2840eb5.jpg)
[leetcode108] convert an ordered array into a binary search tree (medium order traversal)

Why do you develop middleware when you are young? "You can choose your own way"

MySQL learning -- table structure of SQL test questions
随机推荐
As for IOT safety, 20 CSOs from major manufacturers say
Go collaboration and pipeline to realize asynchronous batch consumption scheduling task
Following the previous SYSTEMd pit
About with admin option and with grant option
"Gambler" bubble Matt turns around
How to convert XML to HL7
IBM:以现代化架构支撑AI与多云时代的企业数字化重塑
Kubernetes 1.20.5 setting up Sentinel
未来银行需要用明天的思维,来思考今天架构
How to get the response body content in gin?
Several cloud products of Tencent cloud have passed IPv6 enabled cloud logo certification
04. Tencent cloud IOT device side learning - network connection and device authentication
Tencent monthly security report helps rural revitalization, releases cloud security reports, and jointly builds a joint network security laboratory
2021-04-02: given a square or rectangular matrix, zigzag printing can be realized.
[play with Tencent cloud] check 9 popular Tencent cloud products
Game business DDoS attack and defense confrontation case sharing
Snapshot management for elastic cloud enterprise
Tiktok Kwai, e-commerce enters the same river
Cloud native monitoring practice (2) monitoring and collection of components outside the TKE cluster
Hook graphics kernel subsystem