当前位置:网站首页>Service visibility and observability
Service visibility and observability
2022-06-24 15:05:00 【51CTO】
It can be seen that observability is the first step of the service governance feedback mechanism , Only get enough valuable data , To analyze and control the running state of the service .
One 、 Service visibility
The service metadata platform is responsible for maintaining service related metadata information , It mainly includes the service level 、 Interface level 、 The metadata information of these dimensions at the topology level , Through the service metadata platform , It can provide full visibility to the system . To enhance the flexibility of service query , It can support multiple service query methods , For example, query according to the service department 、 Query according to service attributes, etc , Service basic information platformization, etc . The basic information of the service is as follows .
1) The service description : Briefly describe the basic capabilities of service provision , Applicable scenarios of services, etc , For potential service users , If necessary, a detailed description of the service can be added wiki, And the corresponding email group and communication group of the service .
2) Service ownership : Service current department 、 Serving the current owner etc. .
3) Service external interface : Service interface definition , Instructions for use and precautions, etc .
4) service SLA: External service SLA promise .
5) Upstream and downstream topologies of services : The upstream and downstream dependencies of each service are maintained in the service mall , Based on upstream and downstream dependencies , You can not only query the usage mode and usage of upstream and downstream services , At the same time, the upstream and downstream service notifications can also be made in case of major service changes .
6) Service change : The Service Mall maintains a change log for each important change in the service , In case of important changes, upstream and downstream dependencies will be notified through corresponding mechanisms , The upstream and downstream will assess whether adaptation and upgrading are required , In this way, service users can understand the whole development context of the service from the change history .7) Service access and resource quota management : How to access the service , How to apply for resource quotas .
8) Service online deployment and offline test environment information : Describes the online and offline deployment information of the service , Users directly use... Based on the environment given by the platform .
Two 、 Change visibility
Change is the main factor causing system failure , Systematically sort out and record the changes of each dimension , It is not only convenient to trace and locate the fault , It can also be based on a complete change event library , Reasons for these changes 、 Comprehensive audit and analysis of quality and impact , Find something regular from it , Establish corresponding improved feedback closed loop .
Service change is the most important source of change , Common service change methods include application change 、 Configuration change 、 Data change and plan change, etc . For microservice architecture , In addition to focusing on changes to the current service , We also need to pay attention to the changes of upstream and downstream dependent services , And the change of deployment level associated services , For example, other service changes on the same physical machine as the current service mix .
In addition to service changes , It is also necessary to record all environmental changes around the service , For example, network changes 、 Machine changes 、 Machine room change 、 Switch change , These changes may affect the normal operation of the service .
3、 ... and 、 Observation visibility
Microservices architecture , Each micro service adopts distributed deployment , And distributed communication through the network , With the expansion of the number of microservices and the scale of clusters , Various types of faults will occur in the system , And many faults can not be predicted in advance . Therefore, microservice observation visibility is required , It can be divided into Logging( Log system )、Metrics( Measurement system ) and Tracing( Distributed tracking system )3 A hierarchical .
- Logging system log
Used to record discrete events in the system , For example, service debugging information and error information , Logs are the cornerstone of system monitoring , It is also the first starting point for service status monitoring and problem diagnosis , The log can be used to roughly judge whether the system is running normally . Logs are the most common 、 The most common monitoring means , However, log monitoring and alarms of services generally need to be added manually , Not only is it inefficient , It's easy to miss . At the same time, the log format and log information of different services may be different , It is not convenient to standardize , Not only log collection 、 It is troublesome to handle and display , There are too many personalized needs , And the logs of each service are not uniform , The whole system problem location based on log is also very troublesome .
- Metric System
To improve the standardization of logging and monitoring , Introduced Metric The concept of ,Metric This is to process the aggregatable parts of the log through standardized protocols ,Metric Define a complete set of log collection 、 Transmission and processing standards , adopt Metric It can realize the standardization of logging and monitoring , At the same time, it is based on Metric Log aggregation feature of , The aggregated logs will be much smaller , Reduce the cost of the logging system .
- Tracing System
Tracing Used to record request level information , It will track the execution process of the entire link and the time-consuming information of each stage , be based on Tracing, You can locate request performance issues and cross service interaction related issues .
边栏推荐
- 如何避免下重复订单
- Is financial management of securities account safe??
- 探索云原生数据库,纵观未来科技发展
- June training (day 23) - dictionary tree
- Development of digital Tibetan product system NFT digital Tibetan product system exception handling source code sharing
- 中国十大证券app排名 炒股开户安全吗
- 一文搞定 UDP 和 TCP 高频面试题!
- C language ---18 function (user-defined function)
- [pytoch] quantification
- pgsql查询分组中某个字段最大或者最小的一条数据
猜你喜欢
港股上市公司公告 API 数据接口
Keras deep learning practice (11) -- visual neural network middle layer output
Oracle RAC configuration multipathing
同样是初级测试工程师,为啥他薪资高?会这几点面试必定出彩
laravel下视图间共享数据
Py之toad:toad的简介、安装、使用方法之详细攻略
ES mapping之keyword;term查询添加keyword查询;更改mapping keyword类型
Common singleton mode & simple factory
如何避免下重复订单
入行 4 年,跳槽 2 次,我摸透了软件测试这一行
随机推荐
The security market has entered a trillion era, and the security B2B online mall system has been accurately connected to deepen the enterprise development path
动作捕捉系统用于地下隧道移动机器人定位与建图
安防市场进入万亿时代,安防B2B网上商城系统精准对接深化企业发展路径
Redis consistency hash and hash slot
Actual combat | a tortuous fishing counteraction
R语言构建回归模型诊断(正态性无效)、进行变量变换、使用car包中的powerTransform函数对目标变量进行Box-Cox变换(Box–Cox transform to normality)
Online text entity extraction capability helps applications analyze massive text data
股票开户要找谁?在线开户安全么?
C language ---18 function (user-defined function)
六月集训(第23天) —— 字典树
[pytoch] quantification
IDEA连接mysql自定义生成实体类代码
Common sense knowledge points
Golang实现Biginteger大数计算
R语言实战应用精讲50篇(二十三)-贝叶斯理论重要概念: 可信度Credibility, 模型Models, 和参数Parameters
In the eyes of the universe, how to correctly care about counting East and West?
leetcode 139. Word break word split (medium)
Idea connection MySQL custom generated entity class code
【比特熊故事汇】6月MVP英雄故事|技术实践碰撞境界思维
大智慧开户要选什么证券公司比较好,更安全一点