Introduction to the principle of Mycat-web

1. Introduction to mycat-web

Mycat is a database middleware developed based on java with sub-database and sub-table. A monitoring system is required during use, and mycat-web came into being. mycat-web is a monitoring platform using SpringMVC + Mybatis, using the commonly used monitoring system protocol SNMP- Simple Network Management Protocol ( Simple Network Management Protocol ), and RRD to display the monitoring interface. I believe that IT operation and maintenance monitoring personnel who have used catci are familiar with RRD.



 

 

RRDtool refers to the Round Robin Database tool (ring database). Round robin is a technique for processing quantitative data, as well as current element pointers. Imagine a circle with dots around it - these dots are where time is stored. Draw an arrow from the center of the circle to a point on the circumference -- this is the pointer. Like we are on a circle, there is no start and end, you can keep going. After a period of time, all available positions will be used, and the loop process will automatically reuse the original positions. In this way, the dataset does not grow and requires no maintenance. We use RRDtool to work with the RRD database. Use it to extract data to the RRD database store. RRD is suitable for storing time series data. That is, you must be able to measure certain values ​​at several points in time and provide this information to RRDtool. If you can do that, RRDtool will be able to store them. These values ​​must be numbers, but not necessarily integers.

 

 

Simple Network Management Protocol (SNMP) consists of a set of network management standards, including an application layer protocol, a database schema, and a set of resource objects. This protocol enables network management systems to monitor devices connected to the network for any management concerns. This protocol is part of the internet protocol suite defined by the Internet Engineering Task Force (IETF). The goal of SNMP is to manage the software and hardware platforms produced by many manufacturers on the Internet, so SNMP is also greatly influenced by the Internet standard network management framework. SNMP has come out to the third version of the protocol, and its functions have been greatly enhanced and improved.



 


 

 

MIB, Management Information Base: Management Information Base, a management object database accessed by network management protocols, which includes SNMP variables that can be set by SNMP management agents of network devices. SMI, Structure of Management Information: A structure of management information that defines rules for objects accessible through network management protocols. SMI defines the data types used in the MIB and the names or representations of network resources in the MIB.

Using SNMP for network management requires the following important parts: management base stations, management agents, management information bases and network management tools.

The management base station is usually an independent device that serves as a user interface for network managers to manage the network. The base station must be equipped with management software, a user interface that administrators can use, and a database for obtaining information from MIB, and it should have the ability to send management commands to the base station for network management.

A management agent is a network device, such as a host, bridge, router, and hub. These devices must be able to receive information from the management base station, and their status must also be monitored by the management base station. The management agent performs corresponding operations in response to the request of the base station, and can also send information to the base station without a request.

MIBs are collections of objects that represent resources and devices that can be managed in a network. Each object is basically a data variable that represents information about one aspect of the managed object.

The last aspect is the management protocol, or SNMP, the basic function of SNMP is: get, set and receive unexpected information sent by the agent. Acquire refers to the base station sending a request, and the agent sends back the corresponding data according to this request. Setting is the value of the base station setting the management object (that is, the agent), and receiving unexpected information sent by the agent means that the agent can send the base station to the base station in the state that the base station does not request it. Report what happened unexpectedly.

SNMP is an application layer protocol and a part of the TCP/IP protocol suite. It operates via the User Datagram Protocol (UDP). In a separate management station, the manager process controls access to the MIB located at the center of the management station and provides a network administrator interface. The manager process completes network management through SNMP. SNMP is implemented on top of UDP, IP and related special network protocols (eg, Ethernet, FDDI, X.25).

 

2. Mycat core technology



 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326848677&siteId=291194637