CN111786849B - Monitoring method, device and system of domain name server and computer equipment - Google Patents

Monitoring method, device and system of domain name server and computer equipment Download PDF

Info

Publication number
CN111786849B
CN111786849B CN202010600257.6A CN202010600257A CN111786849B CN 111786849 B CN111786849 B CN 111786849B CN 202010600257 A CN202010600257 A CN 202010600257A CN 111786849 B CN111786849 B CN 111786849B
Authority
CN
China
Prior art keywords
domain name
parameter information
name server
component
state data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010600257.6A
Other languages
Chinese (zh)
Other versions
CN111786849A (en
Inventor
姚尧
王智轩
侯京超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jingdong Technology Holding Co Ltd
Original Assignee
Jingdong Technology Holding Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jingdong Technology Holding Co Ltd filed Critical Jingdong Technology Holding Co Ltd
Priority to CN202010600257.6A priority Critical patent/CN111786849B/en
Publication of CN111786849A publication Critical patent/CN111786849A/en
Application granted granted Critical
Publication of CN111786849B publication Critical patent/CN111786849B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24552Database cache management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Abstract

The embodiment of the invention relates to a monitoring method, a device and a system of a domain name server and computer equipment, wherein the monitoring method comprises the following steps: acquiring parameter information in the running process of a plurality of domain name servers; summarizing the parameter information, and storing the summarized parameter information in a database and a cache component, wherein a timer is arranged in the cache component, and the parameter information stored in the cache component in a set time period is updated through the timer; receiving a display request of the operation state of the domain name server, obtaining the parameter information from the database or the cache component for displaying, setting the cache component to store the latest period of data and update the latest period of data at regular time, displaying the real-time operation state of the DNS server, setting the database to store all data, displaying the historical operation state of the DNS server, and further monitoring the domain name resolution system visually and effectively.

Description

Monitoring method, device and system of domain name server and computer equipment
Technical Field
The embodiment of the invention relates to the field of computer networks, in particular to a method, a device and a system for monitoring a domain name server and computer equipment.
Background
A Domain Name System (DNS) is a key component in an Internet (Internet) architecture, the DNS is disposed in a machine room, a DNS server receives an access request including a Domain Name, returns an IP address corresponding to the Domain Name, and accesses through the IP address, where performance and security of the DNS are critical to Internet applications, and how to monitor an operating state of the DNS server ensures stable operation of the Domain Name System becomes a key.
In the related art, for monitoring the performance of the DNS server, a script is usually obtained at regular time, and the running state of the DNS server is obtained in the form of the script, however, the running state of the DNS server cannot be summarized in real time and the historical state cannot be checked in the form of the script.
Disclosure of Invention
In view of this, in order to solve the above technical problems or some technical problems, embodiments of the present invention provide a method, an apparatus, a system, and a computer device for monitoring a domain name server.
In a first aspect, an embodiment of the present invention provides a method for monitoring a domain name server, including:
acquiring parameter information in the running process of a plurality of domain name servers;
summarizing the parameter information, and storing the summarized parameter information in a database and a cache component, wherein a timer is arranged in the cache component, and the parameter information stored in the cache component in a set time period is updated through the timer;
and receiving a display request of the operating state of the domain name server, and acquiring the parameter information from the database or the cache component for displaying.
In one possible embodiment, the aggregating the parameter information and storing the aggregated parameter information in a database to cache a component includes:
the microservice and monitoring component monitor collects the parameter information received by the core component according to the first identifier of the domain name server and the second identifier of the machine room to which the domain name server belongs to obtain the first running state data of each domain name server and the second running state data of a domain name resolution system formed by a plurality of domain name servers;
storing the first operation state data of each domain name server and the second operation state data of a domain name resolution system formed by a plurality of domain name servers in a database; and
and storing the first operation state data of each domain name server in a set time period and the second operation state data of a domain name resolution system formed by a plurality of domain name servers in a websocket component.
In one possible embodiment, the receiving a request for showing an operation status of the domain name server includes:
the monitor component receives a display request of the real-time running state of the domain name server sent by a display interface;
or the like, or, alternatively,
the monitor component receives a display request of the historical operating state of the domain name server sent by a display interface;
the display request carries identification information of the domain name server and a time interval.
In a possible embodiment, said obtaining the parameter information from the database or the cache component for displaying includes:
if the display request is a request of a real-time running state, acquiring first state data/second running data of a corresponding time interval from the websocket component and displaying the first state data/second running data on a display interface;
or the like, or, alternatively,
and if the display request is a request of a historical operating state, acquiring the first state data/second operating data of the corresponding time interval from the database and displaying the first state data/second operating data on a display interface.
In a possible embodiment, the obtaining parameter information during the operation of the plurality of domain name servers includes:
setting an agent process on each domain name server;
acquiring parameter information in the operation process of the domain name server through the agent process;
the parameter information is sent to the core component through the rpc interface.
In a second aspect, an embodiment of the present invention provides a monitoring apparatus for a domain name server, including:
the acquisition module is used for acquiring parameter information in the running process of the plurality of domain name servers;
the storage module is used for summarizing the parameter information and storing the summarized parameter information in a database and a cache component, wherein a timer is arranged in the cache component, and the parameter information stored in the cache component in a set time period is updated through the timer;
and the display module is used for receiving a display request of the operating state of the domain name server and acquiring the parameter information from the database or the cache component for displaying.
In a possible implementation manner, the storage module is specifically configured to collect, by the microservice and monitor component monitor, parameter information received by the core component according to the first identifier of the domain name server and the second identifier of the machine room to which the domain name server belongs, to obtain first operating state data of each domain name server and second operating state data of a domain name resolution system formed by a plurality of domain name servers; storing the first operation state data of each domain name server and the second operation state data of a domain name resolution system formed by a plurality of domain name servers in a database; and storing the first operation state data of each domain name server in a set time period and the second operation state data of a domain name resolution system formed by a plurality of domain name servers in a websocket component.
In a possible implementation manner, the display module is specifically configured to receive, by the monitor component, a display request of a real-time operating state of the domain name server sent by a display interface, and obtain, from the websocket component, first state data/second operating data of a corresponding time interval to display on the display interface;
or the like, or, alternatively,
the monitor component receives a display request of the historical operating state of the domain name server sent by a display interface, and acquires first state data/second operating data of a corresponding time interval from the database to display on the display interface;
the display request carries identification information of the domain name server and a time interval.
In a possible embodiment, the obtaining module is specifically configured to set an agent process on each domain name server; acquiring parameter information in the operation process of the domain name server through the agent process; the parameter information is sent to the core component through the rpc interface.
In a third aspect, an embodiment of the present invention provides a monitoring system for a domain name server, including:
the agent process is used for acquiring parameter information in the running process of the plurality of domain name servers;
the microservice and monitoring component monitor is used for summarizing the parameter information and storing the summarized parameter information in a database and a cache component, wherein a timer is arranged in the cache component, and the parameter information stored in the cache component in a set time period is updated through the timer; and receiving a display request of the operating state of the domain name server, and acquiring the parameter information from the database or the cache component for displaying.
In one possible embodiment, the database is a database, and the cache component is a websocket component;
the monitor component is specifically configured to collect parameter information received by the core component according to the first identifier of the domain name server and the second identifier of the machine room to which the domain name server belongs, so as to obtain first operating state data of each domain name server and second operating state data of a domain name resolution system formed by a plurality of domain name servers; storing the first operation state data of each domain name server and the second operation state data of a domain name resolution system formed by a plurality of domain name servers in a database; and storing the first operation state data of each domain name server in a set time period and the second operation state data of a domain name resolution system formed by a plurality of domain name servers in a websocket component.
In a possible implementation manner, the monitor component is further configured to receive a display request of a real-time operation state of the domain name server, which is sent by a display panel, and obtain first state data/second operation data of a corresponding time interval from the websocket component to display on the display panel;
or the like, or, alternatively,
the monitor component receives a display request of the historical operating state of the domain name server sent by a display panel, and acquires first state data/second operating data of a corresponding time interval from the database to display on the display panel;
the display request carries identification information of the domain name server and a time interval.
In one possible embodiment, the system further comprises:
and the core component is used for sending the parameter information acquired by the agent process in the operation process of the domain name server to the monitor component.
In a fourth aspect, an embodiment of the present invention provides a computer device, including: the processor is configured to execute a monitoring program of the domain name server stored in the memory, so as to implement the monitoring method of the domain name server according to any one of the above first aspects.
According to the monitoring scheme of the domain name server provided by the embodiment of the invention, parameter information in the operation process of a plurality of domain name servers is obtained; summarizing the parameter information, and storing the summarized parameter information in a database and a cache component, wherein a timer is arranged in the cache component, and the parameter information stored in the cache component in a set time period is updated through the timer; receiving a display request of the operation state of the domain name server, obtaining the parameter information from the database or the cache component for displaying, setting the cache component to store the latest period of data and update the latest period of data at regular time, displaying the real-time operation state of the DNS server, setting the database to store all data, displaying the historical operation state of the DNS server, and further monitoring the domain name resolution system visually and effectively.
Drawings
Fig. 1 is a schematic flowchart of a monitoring method for a domain name server according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of another monitoring method for a domain name server according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a monitoring apparatus of a domain name server according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a monitoring system of a domain name server according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
For the convenience of understanding of the embodiments of the present invention, the following description will be further explained with reference to specific embodiments, which are not to be construed as limiting the embodiments of the present invention.
Fig. 1 is a schematic flowchart of a monitoring method for a domain name server according to an embodiment of the present invention, and as shown in fig. 1, the method specifically includes:
and S11, acquiring parameter information in the operation process of the plurality of domain name servers.
The monitoring method of the domain name server provided by the embodiment of the invention is applied to monitoring of the DNS server in the domain name resolution system, a plurality of DNS servers are deployed in the domain name resolution system, a process is arranged on each DNS server, and parameter information of the domain name server is acquired through the process.
And S12, summarizing the parameter information, and storing the summarized parameter information in a database and a cache component.
The method comprises the steps of summarizing parameter information acquired by a process, specifically classifying and summarizing according to a domain name resolution system formed by a single domain name server, a machine room to which the domain name server belongs and a plurality of domain name servers, adding classified and summarized parameter data to a database for storing domain name server parameter information and a corresponding cache component, wherein a timer is arranged in the cache component, and updating the parameter information stored in the cache component in a set time period through the timer.
Further, the database stores all parameter information of a plurality of domain name servers in the domain name resolution system, the cache component stores parameter information of a set time period of the plurality of domain name servers in the domain name resolution system, the parameter information of the set time period is updated by a timer, and the parameter information may include: the DNS server receives request data, return data, success data or time data and the like.
And S13, receiving a display request of the operation state of the domain name server, and acquiring the parameter information from the database or the cache component for display.
In this embodiment, if a display request of an operating state of a domain name server sent by a display terminal is received, the display request is analyzed, and if the display request corresponds to a historical operating state, corresponding historical parameter information is obtained from a database and sent to the display terminal for displaying; and if the request corresponds to a real-time running state, acquiring corresponding parameter information from the buffer assembly, and sending the parameter information to a display terminal for displaying.
The monitoring method of the domain name server provided by the embodiment of the invention obtains the parameter information in the operation process of a plurality of domain name servers; summarizing the parameter information, and storing the summarized parameter information in a database and a cache component, wherein a timer is arranged in the cache component, and the parameter information stored in the cache component in a set time period is updated through the timer; receiving a display request of the operation state of the domain name server, obtaining the parameter information from the database or the cache component for displaying, setting the cache component to store the latest period of data and update the latest period of data at regular time, displaying the real-time operation state of the DNS server, setting the database to store all data, displaying the historical operation state of the DNS server, and further monitoring the domain name resolution system visually and effectively.
Fig. 2 is a schematic flowchart of another monitoring method for a domain name server according to an embodiment of the present invention, and as shown in fig. 2, the method specifically includes:
and S21, setting an agent process on each domain name server.
And S22, acquiring parameter information in the operation process of the domain name server through the agent process.
The monitoring method of the domain name server provided by the embodiment of the invention is applied to monitoring of a domain name resolution system, an agent process is arranged on each domain name server in the domain name resolution system, and the agent process collects parameter information of the domain name server at set time intervals in the operation process of the domain name server.
The parameter information may include, but is not limited to: the parameter information can represent the bind performance of the domain name server, and the DNS server receives the request data, the return data, the success data or the time data.
It should be noted that: the parameter information collected by the agent process is an accumulated value, that is, the parameter information collected at the current time needs to be subtracted from the parameter information collected at the last time to obtain the parameter information of the domain name server at the current time.
For example, the agent process collects parameter information during the operation of the domain name server every 5S.
And S23, sending the parameter information to a core component through a rpc interface.
And S24, the micro-service and monitoring component monitor collects the parameter information received by the core component according to the first identifier of the domain name server and the second identifier of the machine room to which the domain name server belongs, and obtains the first operation state data of each domain name server and the second operation state data of the domain name resolution system formed by a plurality of domain name servers.
The agent process sends the collected parameter information to the core component by calling an rpc interface, and the micro service and monitoring component monitor classifies and summarizes the parameter information received by the core component.
The parameter information acquired by the core component carries a first identifier corresponding to the domain name server and a second identifier of a machine room to which the domain name server belongs, the parameter information of each domain name server is collected according to the first identifier to obtain corresponding first operation state data, the parameter information corresponding to each machine room is collected according to the first identifier and the second identifier, and then second operation state data of a domain name resolution system formed by one or more machine rooms is obtained.
And S25, storing the first operation state data of each domain name server and the second operation state data of a domain name resolution system formed by a plurality of domain name servers in a database.
S26, storing the first operation state data of each domain name server in a set time period and the second operation state data of a domain name resolution system formed by a plurality of domain name servers in a websocket component.
The first operation state data and the second operation state data related to the embodiment of the invention are respectively stored in a database and a websocket component, and the database can be: mongoDB, wherein the database stores all the first operating state data and the second operating state data; the websocket component stores a part of first running state data and second running state data through the timer, the websocket component stores the first running state data and the second running state data of the current latest set time period, and the first running state data and the second running state data are updated along with the interval time of the agent process data acquisition.
For example, the agent process collects parameter information in the operation process of the domain name server once every 5S, the websocket component stores the latest 1h of first operation state data and second operation state data, and the first operation state data and the second operation state data are updated at 5S intervals.
S27, the monitor component receives a display request of the real-time operation state of the domain name server sent by a display interface.
S28, obtaining the first state data/the second operation data corresponding to the time interval from the websocket assembly, and displaying the first state data/the second operation data on a display interface.
The display interface is used for displaying the running state of the domain name server/domain name resolution system, a query button of the real-time running state of the domain name server/domain name resolution system is selected through operation of a user on the display interface, a display request of the real-time running state of the corresponding domain name server/domain name resolution system is sent to the monitor component, and the monitor component sends the first running state data/the second running state data of the domain name server/domain name resolution system at the current moment stored in the websocket component to the display interface for displaying.
The display interface may be: and (6) a Web interface.
S29, the monitor component receives a display request of the historical operation state of the domain name server sent by a display interface.
S210, first state data/second operation data of the corresponding time interval are acquired from the database and displayed on a display interface.
The method comprises the steps that a query button of a historical operating state of a domain name server/domain name resolution system is selected through operation of a user on a display interface, a display request of the historical operating state of the corresponding domain name server/domain name resolution system is sent to a monitor component, identification information of the domain name server/domain name resolution system and a time interval are carried in the display request, and the monitor component requests a database for first operating state data/second operating state data of the domain name server/domain name resolution system in the corresponding time interval to be sent to the display interface to be displayed.
The monitoring method of the domain name server provided by the embodiment of the invention obtains the parameter information in the operation process of a plurality of domain name servers; summarizing the parameter information, and storing the summarized parameter information in a database and a cache component, wherein a timer is arranged in the cache component, and the parameter information stored in the cache component in a set time period is updated through the timer; receiving a display request of the operation state of the domain name server, obtaining the parameter information from the database or the cache component for displaying, setting the cache component to store the latest period of data and update the latest period of data at regular time, displaying the real-time operation state of the DNS server, setting the database to store all data, displaying the historical operation state of the DNS server, and further monitoring the domain name resolution system visually and effectively.
Fig. 3 is a schematic structural diagram of a monitoring apparatus of a domain name server according to an embodiment of the present invention, and as shown in fig. 3, the structure specifically includes:
an obtaining module 31, configured to obtain parameter information in an operation process of multiple domain name servers;
the storage module 32 is configured to summarize the parameter information, and store the summarized parameter information in a database and a cache component, where the cache component is provided with a timer, and the parameter information stored in the cache component for a set time period is updated by the timer;
and the display module 33 is configured to receive a display request of the operating state of the domain name server, and obtain the parameter information from the database or the cache component for display.
In a possible implementation manner, the storage module 32 is specifically configured to collect, by the microservice and monitor component monitor, parameter information received by the core component according to the first identifier of the domain name server and the second identifier of the machine room to which the domain name server belongs, to obtain first operation state data of each domain name server and second operation state data of a domain name resolution system formed by a plurality of domain name servers; storing the first operation state data of each domain name server and the second operation state data of a domain name resolution system formed by a plurality of domain name servers in a database; and storing the first operation state data of each domain name server in a set time period and the second operation state data of a domain name resolution system formed by a plurality of domain name servers in a websocket component.
In a possible implementation manner, the display module 33 is specifically configured to receive, by the monitor component, a display request of a real-time operation state of the domain name server sent by a display interface, and obtain, from the websocket component, first state data/second operation data of a corresponding time interval to display on the display interface;
or the like, or, alternatively,
the monitor component receives a display request of the historical operating state of the domain name server sent by a display interface, and acquires first state data/second operating data of a corresponding time interval from the database to display on the display interface;
the display request carries identification information of the domain name server and a time interval.
In a possible embodiment, the obtaining module 31 is specifically configured to set an agent process on each domain name server; acquiring parameter information in the operation process of the domain name server through the agent process; the parameter information is sent to the core component through the rpc interface.
The monitoring system of the domain name server provided in this embodiment may be the monitoring device of the domain name server shown in fig. 3, and may perform all the steps of the monitoring method of the domain name server shown in fig. 1-2, so as to achieve the technical effect of the monitoring method of the domain name server shown in fig. 1-2, which is described with reference to fig. 1-2 for brevity, and is not described herein again.
Fig. 4 is a schematic structural diagram of a monitoring system of a domain name server according to an embodiment of the present invention, and as shown in fig. 4, the system specifically includes:
an agent process 41, configured to obtain parameter information in an operation process of a plurality of domain name servers;
the monitor component 42 is configured to summarize the parameter information, and store the summarized parameter information in a database and a cache component, where the cache component is provided with a timer, and the parameter information stored in the cache component in a set time period is updated by the timer; and receiving a display request of the operation state of the domain name server, and acquiring the parameter information from the database or the cache component for display.
In one possible embodiment, the database is a database, and the cache component is a websocket component;
the monitor component 42 is specifically configured to summarize parameter information received by the core component 43 according to the first identifier of the domain name server and the second identifier of the machine room to which the domain name server belongs, so as to obtain first operation state data of each domain name server and second operation state data of a domain name resolution system formed by a plurality of domain name servers; storing the first operation state data of each domain name server and the second operation state data of a domain name resolution system formed by a plurality of domain name servers in a database 44; and storing the first operation state data of each domain name server in a set time period and the second operation state data of a domain name resolution system formed by a plurality of domain name servers in the websocket component 45.
In a possible embodiment, the monitor component 42 is further configured to receive a display request of the real-time operation state of the domain name server sent by the display panel 46, and obtain the first state data/the second operation data of the corresponding time interval from the websocket component 45 to display on the display panel 46; or, the monitor component 42 receives the display request of the historical operating state of the domain name server sent by the display panel 46, and obtains the first state data/second operating data of the corresponding time interval from the database 44 to display on the display panel 46;
the display request carries identification information of the domain name server and a time interval.
In one possible embodiment, the system further comprises: and the core component 43 is used for sending the parameter information acquired by the agent process 41 in the operation process of the domain name server to the monitor component 42.
The monitoring system of the domain name server provided in this embodiment may be the monitoring system of the domain name server shown in fig. 4, and may perform all the steps of the monitoring method of the domain name server shown in fig. 1-2, so as to achieve the technical effect of the monitoring method of the domain name server shown in fig. 1-2, and refer to the description of fig. 1-2 for brevity, which is not repeated herein.
Fig. 5 is a schematic structural diagram of a computer device according to an embodiment of the present invention, where the computer device 500 shown in fig. 5 includes: at least one processor 501, memory 502, at least one network interface 504, and other user interfaces 503. The various components in the computer device 500 are coupled together by a bus system 505. It is understood that the bus system 505 is used to enable connection communications between these components. The bus system 505 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 505 in FIG. 5.
The user interface 503 may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, trackball, touch pad, or touch screen, among others.
It is to be understood that the memory 502 in embodiments of the present invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile memory may be a Read-only memory (ROM), a programmable Read-only memory (PROM), an erasable programmable Read-only memory (erasabprom, EPROM), an electrically erasable programmable Read-only memory (EEPROM), or a flash memory. The volatile memory may be a Random Access Memory (RAM) which functions as an external cache. By way of example, but not limitation, many forms of RAM are available, such as static random access memory (staticiram, SRAM), dynamic random access memory (dynamic RAM, DRAM), synchronous dynamic random access memory (syncronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM ), Enhanced Synchronous DRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and direct memory bus RAM (DRRAM). The memory 502 described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, memory 502 stores elements, executable units or data structures, or a subset thereof, or an expanded set thereof as follows: an operating system 5021 and application programs 5022.
The operating system 5021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The application 5022 includes various applications, such as a media player (MediaPlayer), a Browser (Browser), and the like, for implementing various application services. The program for implementing the method according to the embodiment of the present invention may be included in the application program 5022.
In the embodiment of the present invention, by calling a program or an instruction stored in the memory 502, specifically, a program or an instruction stored in the application 5022, the processor 501 is configured to execute the method steps provided by the method embodiments, for example, including:
acquiring parameter information in the running process of a plurality of domain name servers; summarizing the parameter information, and storing the summarized parameter information in a database and a cache component, wherein a timer is arranged in the cache component, and the parameter information stored in the cache component in a set time period is updated through the timer; and receiving a display request of the operating state of the domain name server, and acquiring the parameter information from the database or the cache component for displaying.
In a possible implementation manner, the microservice and monitor module monitor collects the parameter information received by the core module according to the first identifier of the domain name server and the second identifier of the machine room to which the domain name server belongs, and obtains the first operating state data of each domain name server and the second operating state data of the domain name resolution system formed by a plurality of domain name servers; storing the first operation state data of each domain name server and the second operation state data of a domain name resolution system formed by a plurality of domain name servers in a database; and storing the first operation state data of each domain name server in a set time period and the second operation state data of a domain name resolution system formed by a plurality of domain name servers in a websocket component.
In one possible implementation, the monitor component receives a display request of the real-time running state of the domain name server sent by a display interface; or, the monitor component receives a display request of the historical operating state of the domain name server sent by a display interface; the display request carries identification information of the domain name server and a time interval.
In a possible implementation manner, if the display request is a request of a real-time operation state, acquiring first state data/second operation data of a corresponding time interval from the websocket component and displaying the first state data/second operation data on a display interface; or if the display request is a request of a historical operating state, acquiring the first state data/second operating data of the corresponding time interval from the database and displaying the first state data/second operating data on a display interface.
In one possible embodiment, an agent process is set on each of the domain name servers; acquiring parameter information in the operation process of the domain name server through the agent process; the parameter information is sent to the core component through the rpc interface.
The method disclosed by the above-mentioned embodiments of the present invention may be applied to the processor 501, or implemented by the processor 501. The processor 501 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 501. The processor 501 may be a general-purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, or discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software elements in the decoding processor. The software elements may be located in ram, flash, rom, prom, or eprom, registers, among other storage media that are well known in the art. The storage medium is located in the memory 502, and the processor 501 reads the information in the memory 502 and completes the steps of the method in combination with the hardware.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented by means of units performing the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
The computer device provided in this embodiment may be the computer device shown in fig. 5, and may perform all the steps of the monitoring method for the domain name server shown in fig. 1-2, so as to achieve the technical effect of the monitoring method for the domain name server shown in fig. 1-2, and please refer to the description related to fig. 1-2 for brevity, which is not described herein again.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied in hardware, a software module executed by a processor, or a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are merely exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (14)

1. A monitoring method of a domain name server is characterized by comprising the following steps:
acquiring parameter information in the running process of a plurality of domain name servers, wherein the parameter information comprises the parameter information of the domain name servers in the plurality of domain name servers at the current moment, and the parameter information at the current moment is obtained by subtracting the parameter information acquired last time from the parameter information acquired at the current moment of an agent process;
the acquired parameter information is summarized, and the summarized parameter information is stored in a database and a cache component, wherein a timer is arranged in the cache component, the parameter information stored in the cache component in a set time period is updated through the timer, and the stored parameter information is updated along with the interval time of data acquisition of the agent process;
and receiving a display request of the operating state of the domain name server, and acquiring updated parameter information from the database or the cache component for display.
2. The method of claim 1, wherein the aggregating the obtained parameter information and storing the aggregated parameter information in a database to cache components comprises:
the microservice and monitoring component monitor collects the parameter information received by the core component according to the first identifier of the domain name server and the second identifier of the machine room to which the domain name server belongs to obtain the first running state data of each domain name server and the second running state data of a domain name resolution system formed by a plurality of domain name servers;
storing the first operation state data of each domain name server and the second operation state data of a domain name resolution system formed by a plurality of domain name servers in a database; and
and storing the first operation state data of each domain name server in a set time period and the second operation state data of a domain name resolution system formed by a plurality of domain name servers in a websocket component.
3. The method according to claim 2, wherein the receiving the request for showing the operation status of the domain name server comprises:
the monitor component receives a display request of the real-time running state of the domain name server sent by a display interface;
or the like, or, alternatively,
the monitor component receives a display request of the historical operating state of the domain name server sent by a display interface;
the display request carries identification information of the domain name server and a time interval.
4. The method of claim 3, wherein the retrieving updated parameter information from the database or the cache component for presentation comprises:
if the display request is a request of a real-time running state, acquiring first state data/second running data of a corresponding time interval from the websocket component and displaying the first state data/second running data on a display interface;
or the like, or, alternatively,
and if the display request is a request of a historical operating state, acquiring the first state data/second operating data of the corresponding time interval from the database and displaying the first state data/second operating data on a display interface.
5. The method according to claim 1, wherein the obtaining parameter information during the operation of the plurality of domain name servers comprises:
setting an agent process on each domain name server;
acquiring parameter information in the operation process of the domain name server through the agent process;
the parameter information is sent to the core component through the rpc interface.
6. A monitoring apparatus of a domain name server, comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring parameter information in the running process of a plurality of domain name servers, the parameter information comprises the parameter information of the domain name servers in the plurality of domain name servers at the current moment, and the parameter information at the current moment is obtained by subtracting the parameter information acquired last time from the parameter information acquired at the current moment of an agent process;
the storage module is used for summarizing the acquired parameter information and storing the summarized parameter information in a database and a cache component, wherein a timer is arranged in the cache component, the parameter information stored in the cache component in a set time period is updated through the timer, and the stored parameter information is updated along with the interval time of data acquisition of the agent process;
and the display module is used for receiving a display request of the operating state of the domain name server and acquiring the updated parameter information from the database or the cache component for displaying.
7. The apparatus according to claim 6, wherein the storage module is specifically configured to collect, by the microservice and monitor component monitor, parameter information received by the core component according to the first identifier of the domain name server and the second identifier of the machine room to which the domain name server belongs, to obtain first operating state data of each domain name server and second operating state data of a domain name resolution system configured by a plurality of domain name servers; storing the first operation state data of each domain name server and the second operation state data of a domain name resolution system formed by a plurality of domain name servers in a database; and storing the first operation state data of each domain name server in a set time period and the second operation state data of a domain name resolution system formed by a plurality of domain name servers in a websocket component.
8. The apparatus according to claim 7, wherein the display module is specifically configured to receive, by the monitor component, a display request of a real-time operating state of the domain name server sent by a display interface, and obtain, from the websocket component, first state data/second operating data of a corresponding time interval to display on the display interface;
or the like, or, alternatively,
the monitor component receives a display request of the historical operating state of the domain name server sent by a display interface, and acquires first state data/second operating data of a corresponding time interval from the database to display on the display interface;
the display request carries identification information of the domain name server and a time interval.
9. The apparatus according to claim 6, wherein the obtaining module is specifically configured to set an agent process on each domain name server; acquiring parameter information in the operation process of the domain name server through the agent process; the parameter information is sent to the core component through an rpc interface.
10. A monitoring system of a domain name server, comprising:
the agent process is used for acquiring parameter information in the operation process of a plurality of domain name servers, wherein the parameter information comprises the parameter information of the domain name servers in the plurality of domain name servers at the current moment, and the parameter information at the current moment is obtained by subtracting the parameter information acquired last time from the parameter information acquired at the current moment of the agent process;
the micro service and monitoring component monitor is used for collecting the acquired parameter information and storing the collected parameter information in a database and a cache component, wherein a timer is arranged in the cache component, the parameter information stored in the cache component in a set time period is updated through the timer, and the stored parameter information is updated along with the interval time of data acquisition of the agent process; and receiving a display request of the operating state of the domain name server, and acquiring updated parameter information from the database or the cache component for display.
11. The system of claim 10, wherein the cache component is a websocket component;
the monitor component is specifically configured to collect parameter information received by the core component according to the first identifier of the domain name server and the second identifier of the machine room to which the domain name server belongs, so as to obtain first operating state data of each domain name server and second operating state data of a domain name resolution system formed by a plurality of domain name servers; storing the first operation state data of each domain name server and the second operation state data of a domain name resolution system formed by a plurality of domain name servers in a database; and storing the first operation state data of each domain name server in a set time period and the second operation state data of a domain name resolution system formed by a plurality of domain name servers in a websocket component.
12. The system of claim 11, wherein the monitor component is further configured to receive a display request of a real-time operation state of the domain name server, which is sent by a display panel, and obtain the first state data/the second operation data of the corresponding time interval from the websocket component to display on the display panel;
or the like, or, alternatively,
the monitor component receives a display request of the historical operating state of the domain name server sent by a display panel, and acquires first state data/second operating data of a corresponding time interval from the database to display on the display panel;
the display request carries identification information of the domain name server and a time interval.
13. The system of claim 10, further comprising:
and the core component is used for sending the parameter information acquired by the agent process in the operation process of the domain name server to the monitor component.
14. A computer device, comprising: the processor is used for executing a monitoring program of the domain name server stored in the memory so as to realize the monitoring method of the domain name server in any one of claims 1-5.
CN202010600257.6A 2020-06-28 2020-06-28 Monitoring method, device and system of domain name server and computer equipment Active CN111786849B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010600257.6A CN111786849B (en) 2020-06-28 2020-06-28 Monitoring method, device and system of domain name server and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010600257.6A CN111786849B (en) 2020-06-28 2020-06-28 Monitoring method, device and system of domain name server and computer equipment

Publications (2)

Publication Number Publication Date
CN111786849A CN111786849A (en) 2020-10-16
CN111786849B true CN111786849B (en) 2022-06-07

Family

ID=72760589

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010600257.6A Active CN111786849B (en) 2020-06-28 2020-06-28 Monitoring method, device and system of domain name server and computer equipment

Country Status (1)

Country Link
CN (1) CN111786849B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112487012B (en) * 2020-11-12 2022-05-27 苏州浪潮智能科技有限公司 Component parameter obtaining method and device based on data screening

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140035678A (en) * 2012-09-14 2014-03-24 한국전자통신연구원 Learning-based dns analyzer and analysis method
US9912556B1 (en) * 2014-07-02 2018-03-06 Google Llc Displaying of network device status

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101083566A (en) * 2006-05-30 2007-12-05 中兴通讯股份有限公司 Method and apparatus for performing data performance monitor in transmission network management
KR100973402B1 (en) * 2007-10-10 2010-07-30 주식회사 케이티 Centralized DNS analysis system
CN102082836B (en) * 2009-11-30 2013-08-14 中国移动通信集团四川有限公司 DNS (Domain Name Server) safety monitoring system and method
CN106161130A (en) * 2015-04-14 2016-11-23 阿里巴巴集团控股有限公司 The performance monitoring device of sing on web Socket agreement, system and method
CN107566439A (en) * 2016-09-14 2018-01-09 彩讯科技股份有限公司 Equipment state method for real-time monitoring and system based on WebSocket
CN108833137A (en) * 2018-05-18 2018-11-16 南京南瑞信息通信科技有限公司 A kind of flexibility micro services Monitoring framework framework

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140035678A (en) * 2012-09-14 2014-03-24 한국전자통신연구원 Learning-based dns analyzer and analysis method
US9912556B1 (en) * 2014-07-02 2018-03-06 Google Llc Displaying of network device status

Also Published As

Publication number Publication date
CN111786849A (en) 2020-10-16

Similar Documents

Publication Publication Date Title
CN110096659B (en) Page display method, device and equipment and readable storage medium
CN110519401B (en) Method, device, equipment and storage medium for improving network access success rate
CN106897347B (en) Webpage display method, operation event recording method and device
CN111641723B (en) Equipment state tracking method and device
WO2008079510A2 (en) High-throughput extract-transform-load (etl) of program events for subsequent analysis
CN110851753A (en) Website access method, device, equipment and storage medium
US10389614B2 (en) Web site reachability management for content browsing
CN110413476B (en) Webpage crash monitoring method and device, computer equipment and storage medium
CN109634753B (en) Data processing method, device, terminal and storage medium for switching browser kernels
CN111786849B (en) Monitoring method, device and system of domain name server and computer equipment
CN111930472B (en) Code debugging method and device, electronic equipment and storage medium
CN113934913A (en) Data capture method and device, storage medium and electronic equipment
CN114070652A (en) CDN resource blocking method and device, electronic equipment and storage medium
CN110879773A (en) CGroup-based memory monitoring method and device
CN112685270A (en) System monitoring log acquisition method and device, electronic equipment and medium
CN111198853B (en) Data processing method, device, electronic equipment and computer readable storage medium
CN106550002B (en) paas cloud hosting system and method
CN114826877B (en) Asset alarm processing method, device, computer equipment and storage medium
CN115563423A (en) Data acquisition method and device, computer equipment and storage medium
US11218487B1 (en) Predictive entity resolution
CN110061864B (en) Method and system for automatically verifying domain name configuration
CN114547422A (en) Method and device for preventing repeated clicking of page elements
CN113590414A (en) Server cluster information acquisition and caching method, device, equipment and medium
CN111638987A (en) Data processing method and device, electronic equipment and storage medium
CN112163178A (en) Page data display method and device, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Room 221, 2 / F, block C, 18 Kechuang 11th Street, Daxing District, Beijing, 100176

Applicant after: Jingdong Technology Holding Co.,Ltd.

Address before: Room 221, 2 / F, block C, 18 Kechuang 11th Street, Daxing District, Beijing, 100176

Applicant before: Jingdong Digital Technology Holding Co.,Ltd.

Address after: Room 221, 2 / F, block C, 18 Kechuang 11th Street, Daxing District, Beijing, 100176

Applicant after: Jingdong Digital Technology Holding Co.,Ltd.

Address before: Room 221, 2 / F, block C, 18 Kechuang 11th Street, Daxing District, Beijing, 100176

Applicant before: JINGDONG DIGITAL TECHNOLOGY HOLDINGS Co.,Ltd.

GR01 Patent grant
GR01 Patent grant