CN113872834B - Visual monitoring method and system for distributed system - Google Patents

Visual monitoring method and system for distributed system Download PDF

Info

Publication number
CN113872834B
CN113872834B CN202111217462.5A CN202111217462A CN113872834B CN 113872834 B CN113872834 B CN 113872834B CN 202111217462 A CN202111217462 A CN 202111217462A CN 113872834 B CN113872834 B CN 113872834B
Authority
CN
China
Prior art keywords
node
sub
fractal graph
distributed system
graph
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
CN202111217462.5A
Other languages
Chinese (zh)
Other versions
CN113872834A (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.)
Beijing Jinghang Computing Communication Research Institute
Original Assignee
Beijing Jinghang Computing Communication Research Institute
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 Beijing Jinghang Computing Communication Research Institute filed Critical Beijing Jinghang Computing Communication Research Institute
Priority to CN202111217462.5A priority Critical patent/CN113872834B/en
Publication of CN113872834A publication Critical patent/CN113872834A/en
Application granted granted Critical
Publication of CN113872834B publication Critical patent/CN113872834B/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/04Processing captured monitoring data, e.g. for logfile generation
    • H04L43/045Processing captured monitoring data, e.g. for logfile generation for graphical visualisation of monitoring data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3006Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/323Visualisation of programs or trace data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/328Computer systems status display
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Computing Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Mathematical Physics (AREA)
  • Debugging And Monitoring (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

A visual monitoring method and a visual monitoring system of a distributed system, wherein the method comprises the following steps: acquiring a node level of the distributed system according to a node routing table of the distributed system, and representing a node level structure of the distributed system by adopting a regular polygon fractal graph, wherein one sub-fractal graph in the fractal graph corresponds to one node of the distributed system, and each sub-fractal graph is drawn by adopting a dotted line; acquiring subtask information and resource allocation information of a current task of a distributed system, acquiring an operation node corresponding to operation resources of each subtask based on the subtask information and the resource allocation information, searching the operation node in the fractal graph, and drawing a sub-fractal graph corresponding to the operation node into a solid graph; and acquiring monitoring information of each operation node in real time, and drawing and displaying the monitoring information on the side line of the sub fractal graph corresponding to the operation node based on the monitoring information.

Description

Visual monitoring method and system for distributed system
Technical Field
The invention relates to the technical field of distributed system monitoring, in particular to a visual monitoring method and a visual monitoring system for a distributed system.
Background
Distributed systems have become the core underlying framework for current cloud computing, cloud storage, intelligent computing centers. Based on Hadoop, spark and other distributed storage and computing frameworks, the system can integrate multiple traditional complex tasks such as network transmission, load balancing, AI processing and the like, and the bottom layer design of the system is comprehensive and has much more complexity than various prior distributed systems.
Visual monitoring of distributed systems is an important study of current distributed system management. At present, the visual monitoring of the distributed system mainly adopts the mode of establishing 3-5-dimensional visual charts such as annular charts, line charts, column charts, bubble charts and the like to display monitoring information, and the visual monitoring mode adopting the multi-chart mode can split the whole running state, so that not only is the single chart information provided, but also other parts can be ignored when an operation and maintenance person views one chart, and the system is not regulated timely if the abnormal state exists, so that serious consequences are caused.
Disclosure of Invention
In view of the above analysis, the present invention aims to provide a method and a system for visual monitoring of a distributed system, which are used for solving the problem that the existing distributed system adopts multiple charts to display monitoring information and cannot integrally display the running state of the system.
In one aspect, an embodiment of the present invention provides a method for visually monitoring a distributed system, including: acquiring a node level of the distributed system according to a node routing table of the distributed system, and representing a node level structure of the distributed system by adopting a regular polygon fractal graph, wherein one sub-fractal graph in the fractal graph corresponds to one node of the distributed system, and each sub-fractal graph is drawn by adopting a dotted line;
acquiring subtask information and resource allocation information of a current task of a distributed system, acquiring an operation node corresponding to operation resources of each subtask based on the subtask information and the resource allocation information, searching the operation node in the fractal graph, and drawing a sub-fractal graph corresponding to the operation node into a solid graph;
and acquiring monitoring information of each operation node in real time, and drawing and displaying the monitoring information on the side line of the sub fractal graph corresponding to the operation node based on the monitoring information.
The beneficial effects of the technical scheme are as follows: based on the fractal theory, when the node structure of the distributed system is infinitely expanded, the node hierarchical structure of the system and the real-time running states of various resources of each working node can be displayed in one graph at the same time, so that the monitoring efficiency is improved, and the omission of monitoring information is avoided.
Further, the node hierarchy structure of the distributed system is represented by a regular polygon fractal graph, which comprises the following steps:
adopting a positive N-type polygon to represent the uppermost node of the node hierarchical structure to form a zero-order sub-fractal graph;
for each positive N-sided polygon in the j-1 th-order sub-fractal graph, obtaining the number M of sub-nodes of the node represented by the current positive N-sided polygon according to the node routing table, dividing an inscribed circle of the positive N-sided polygon into M sector areas by adopting dividing lines, drawing a circle by taking the middle point of each dividing line as the center of a circle and taking half of the dividing line as the diameter, and drawing the positive N-sided polygon in the circle to form a j-order sub-fractal graph; the circle is an inscribed circle of the positive N-sided shape;
the N value is determined according to the monitoring dimension of the distributed system, and T represents the node layer number of the distributed system; j=1, 2, … T-1.
The beneficial effects of the technical scheme are as follows: the fractal graph can be generated rapidly, the structure is simple and clear, and monitoring personnel can check the fractal graph conveniently.
Further, the monitoring dimension comprises CPU resources, memory resources, disk resources and GPU resources, and the monitoring information comprises occupancy rate of the resources and states of the resources.
The beneficial effects of the technical scheme are as follows: the multi-dimensional resource occupation condition and the working state of the distributed system can be monitored conveniently and rapidly, so that missing information is avoided.
Further, based on the monitoring information, drawing and displaying the monitoring information on a side line of a sub-fractal graph corresponding to the operation node, including:
searching a sub fractal graph corresponding to the operation node in the regular polygon fractal graph based on a graph index;
and taking the side length of the sub-fractal graph multiplied by the occupancy rate of the resource as the length of a monitoring information display line, taking the color corresponding to the state level of the resource as the color of the monitoring information display line, and drawing the monitoring information display line at the side line position of the sub-fractal graph corresponding to the resource.
The beneficial effects of the technical scheme are as follows: by associating each side of the regular polygon with one monitoring dimension, a plurality of monitoring dimensions can be simultaneously displayed in one regular polygon, and by representing the monitoring information with different colors and lengths, the monitoring information can be displayed comprehensively.
Further, the fractal graph is drawn by using an OpenGL or DirectX graphics API.
In another aspect, an embodiment of the present invention provides a visual monitoring system of a distributed system, including the following modules:
the initial fractal graph generation module is used for acquiring a node level of the distributed system according to a node routing table of the distributed system, and representing a node level structure of the distributed system by adopting a regular polygon fractal graph, wherein one sub-fractal graph in the fractal graph corresponds to one node of the distributed system, and each sub-fractal graph is drawn by adopting a dotted line;
the running state display module is used for acquiring subtask information and resource allocation information of a current task of the distributed system, acquiring running nodes corresponding to running resources of each subtask based on the subtask information and the resource allocation information, searching the running nodes in the fractal graph, and drawing a sub-fractal graph corresponding to the running nodes into a real line graph;
the monitoring information display module is used for acquiring the monitoring information of each operation node in real time, and drawing and displaying the monitoring information on the side line of the sub-fractal graph corresponding to the operation node based on the monitoring information.
Further, the initial fractal graph generation module generates a regular polygon fractal graph by adopting the following method:
adopting a positive N-type polygon to represent the uppermost node of the node hierarchical structure to form a zero-order sub-fractal graph;
for each positive N-sided polygon in the j-1 th-order sub-fractal graph, obtaining the number M of sub-nodes of the node represented by the current positive N-sided polygon according to the node routing table, dividing an inscribed circle of the positive N-sided polygon into M sector areas by adopting dividing lines, drawing a circle by taking the middle point of each dividing line as the center of a circle and taking half of the dividing line as the diameter, and drawing the positive N-sided polygon in the circle to form a j-order sub-fractal graph; the circle is an inscribed circle of the positive N-sided shape;
the N value is determined according to the monitoring dimension of the distributed system, and T represents the node layer number of the distributed system; j=1, 2, … T-1.
Further, the monitoring dimension comprises CPU resources, memory resources, disk resources and GPU resources, and the monitoring information comprises occupancy rate of the resources and states of the resources.
Further, the monitoring information display module displays the monitoring information by adopting the following steps:
searching a sub fractal graph corresponding to the operation node in the regular polygon fractal graph based on a graph index;
and taking the side length of the sub-fractal graph multiplied by the occupancy rate of the resource as the length of a monitoring information display line, taking the color corresponding to the state level of the resource as the color of the monitoring information display line, and drawing the monitoring information display line at the side line position of the sub-fractal graph corresponding to the resource.
Further, the fractal graph is drawn by using an OpenGL or DirectX graphics API.
In the invention, the technical schemes can be mutually combined to realize more preferable combination schemes. Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention may be realized and attained by the structure particularly pointed out in the written description and drawings.
Drawings
The drawings are only for purposes of illustrating particular embodiments and are not to be construed as limiting the invention, like reference numerals being used to refer to like parts throughout the several views.
Fig. 1 is a flowchart of a visual monitoring method of a distributed system according to an embodiment of the present invention;
FIG. 2 is a block diagram of a visual monitoring system of a distributed system according to an embodiment of the present invention;
fig. 3 is a fractal graphic illustration provided in an embodiment of the present invention.
Detailed Description
Preferred embodiments of the present invention will now be described in detail with reference to the accompanying drawings, which form a part hereof, and together with the description serve to explain the principles of the invention, and are not intended to limit the scope of the invention.
Distributed systems have become the core underlying framework for current cloud computing, cloud storage, intelligent computing centers. Based on Hadoop, spark and other distributed storage and computing frameworks, the system can integrate multiple traditional complex tasks such as network transmission, load balancing, AI processing and the like, and the bottom layer design of the system is comprehensive and has much more complexity than various prior distributed systems.
Visual monitoring of distributed systems is an important study of current distributed system management. At present, the visual monitoring of the distributed system mainly adopts the mode of establishing 3-5-dimensional visual charts such as a ring chart, a line chart, a column chart, a bubble chart and the like to display monitoring information, and the visual monitoring mode adopting the multi-chart mode can fracture the whole running state, so that not only is the single chart information provided incompletely, but also other parts can be ignored when a user observes 1 chart, and the system is not regulated timely in case of abnormal conditions, thereby causing serious consequences.
Based on the above, a specific embodiment of the application discloses a visual monitoring method of a distributed system, which adopts a fractal graph to integrally display monitoring information of the distributed system in a graph, so that not only can the subordinate relations among nodes be displayed, but also the running state of each node of the distributed system can be comprehensively displayed, the monitoring personnel can monitor the system conveniently, and abnormal states of the system can be found in time. As shown in fig. 1, the method comprises the steps of:
s1, acquiring a node level of the distributed system according to a node routing table of the distributed system, and representing a node level structure of the distributed system by adopting a regular polygon fractal graph, wherein one sub-fractal graph in the fractal graph corresponds to one node of the distributed system, and each sub-fractal graph is drawn by adopting a dotted line.
The distributed system generally adopts a master-slave structure, which may be a two-hierarchy structure or a multi-hierarchy structure, and the master node of the distributed system maintains the information of the lower slave node, so that the information of the lower slave node is acquired according to the routing information table of the master node, and the node hierarchy structure of the whole distributed system is acquired.
The part of the fractal pattern has a certain degree of similarity to its whole, i.e. the parent image is structurally similar to the child image, but the child image is part of the parent image. In a recursive manner, the fractal graph can be theoretically drawn in an infinite hierarchy, and is therefore suitable for representing the node hierarchy of a distributed system. Each sub-fractal in the fractal graph corresponds to a node of the distributed system. The subsidiary level of the node can be clearly shown through the father-son fractal graph, each child is similar to the father graph in structure, the information dimension which can be displayed by each child is the same as that of the father graph, and as the child is a part of the father graph, all monitoring information can be displayed in one graph, so that the running state of the distributed system can be monitored integrally, and the problem of monitoring omission caused by the fact that the monitoring information is subjected to splitting display is avoided.
Specifically, the number of edges of the regular polygon is determined according to the monitored dimension. The monitoring dimension of the distributed system generally comprises CPU resources, memory resources, disk resources and GPU resources, and monitoring information which can be obtained by monitoring the resources comprises the occupancy rate of the resources and the state of the resources. The monitoring dimension may also include other dimensions, such as a network resource, a JVM resource, etc., and corresponding monitoring information is obtained according to the difference of the monitoring dimensions.
The main stream distributed system comprises a monitoring interface through which the monitoring information can be obtained. Such as the http monitor port of Hadoop or JMX port. Monitoring information, such as the ganlia tool, may also be obtained through a monitoring interface provided by a third party monitoring tool. And each side of the regular polygon corresponds to one monitoring dimension, and the acquired monitoring information can be displayed as the side line information of the regular polygon, so that the monitoring information of a plurality of dimensions is displayed in one graph.
Adopting a positive N-type polygon to represent the uppermost node of the node hierarchical structure to form a zero-order sub-fractal graph;
for each positive N-sided polygon in the j-1 th-order sub-fractal graph, obtaining the number M of sub-nodes of the node represented by the current positive N-sided polygon according to the node routing table, dividing an inscribed circle of the positive N-sided polygon into M sector areas by adopting dividing lines, drawing a circle by taking the middle point of each dividing line as the center of a circle and taking half of the dividing line as the diameter, and drawing the positive N-sided polygon in the circle to form a j-order sub-fractal graph; the circle is the inscribed circle of the positive N deformation;
the N value is determined according to the monitoring dimension of the distributed system, and T represents the node layer number of the distributed system; j=1, 2, … T-1.
By way of example, 4 monitoring dimensions are illustrated. Firstly, drawing a regular quadrangle on a monitoring interface, and representing the main node of the uppermost layer of the distributed system by the regular quadrangle to form a zero-order fractal graph. And recording the graph index of the regular quadrilateral graph and the node information corresponding to the graph index.
If the uppermost layer of the master nodes has 5 slave nodes, dividing an inscribed circle of a regular quadrangle of the zero-order fractal graph into 5 fan-shaped areas on average, drawing a small circle by taking the middle point of each dividing line as the center of a circle, taking half of the length of the dividing line as the diameter, drawing the regular quadrangle by taking the small circle as the inscribed circle, and forming a first-order fractal graph, wherein the small circle can be used as an circumscribed circle for drawing the regular quadrangle when the method is implemented. Each positive quadrangle of the first-order sub-fractal graph represents a slave node, and the graph index of each positive quadrangle and corresponding node information are recorded.
And by analogy with the steps, forming a fractal graph representing the static structure of the distributed system. The static structure is because, although a plurality of nodes are constructed in the distributed system, for each task, the task is split into a plurality of subtasks, the subtasks are distributed and run on different nodes, and for one distributed task, not all the nodes are running their subtasks, so in step S1, all the subtracts in the fractal graph are drawn as dotted lines, indicating the state that the node is not running the subtasks yet. And drawing the sub-graph corresponding to the node as a solid line after the subtasks are distributed in the node, so that the node task operation condition of the distributed system is clearly shown.
In implementation, the fractal graph may be drawn using an OpenGL or DirectX graphics API.
S2, acquiring subtask information and resource allocation information of a current task of the distributed system, acquiring operation nodes corresponding to operation resources of each subtask based on the subtask information and the resource allocation information, searching the operation nodes in the fractal graph, and drawing a sub-fractal graph corresponding to the operation nodes into a solid graph.
The distributed system divides a task into sub-tasks, the sub-tasks are distributed to run on different nodes according to a distribution scheduling strategy, and one sub-task may run on a plurality of nodes. The task scheduling management center of the distributed system maintains the partition information and the node allocation information of each task. For example, a certain subtask of a certain task runs on a certain node(s). Data for one subtask may be stored on one node, but computation may be performed on another node, i.e., two or more nodes cooperate to perform one subtask. When one task is operated, subtask information and node allocation information of the current task of the task scheduling management center are obtained, so that operation nodes corresponding to each subtask are obtained. Inquiring a sub-fractal graph corresponding to an operation node in the fractal graph according to the graph index and the node information, and drawing the sub-fractal graph into a solid line so as to represent that the operation task of the node is required. Therefore, monitoring staff can clearly and completely see which nodes in the system are running tasks, and the monitoring staff can monitor the nodes.
In implementation, the operation nodes corresponding to different subtasks can be filled with different colors, so that monitoring personnel can monitor conveniently, and the filling color is different from the color representing the monitoring information.
And S3, acquiring monitoring information of each operation node in real time, and drawing and displaying the monitoring information on the side line of the sub fractal graph corresponding to the operation node based on the monitoring information.
Specifically, the monitoring information of each operation node can be obtained through a monitoring interface or a third-party monitoring tool of the distributed system.
Searching a sub fractal graph corresponding to the operation node in the regular polygon fractal graph based on a graph index.
And taking the side length of the sub-fractal graph multiplied by the occupancy rate of the resource as the length of a monitoring information display line, taking the color corresponding to the state level of the resource as the color of the monitoring information display line, and drawing the monitoring information display line at the side line position of the sub-fractal graph corresponding to the resource.
Specifically, sub-fractal graph information corresponding to the operation node can be queried according to the graph index, for example, information such as vertex coordinates, side lengths and the like of the sub-fractal graph is obtained. For example, if the lowest edge of the quadrangle represents the disk resource, as shown in fig. 3, the side length of the sub fractal graph P1 is multiplied by the occupancy rate of the disk to be used as the length of the monitor information display line, the color corresponding to the status level of the disk is used as the color of the monitor information display line, and the status of the disk can be classified into different levels according to the actual monitoring requirement, for example, the status of the disk is classified into normal normal, warning, alert according to the number of bad tracks of the disk, and the status of the disk is respectively represented by green, yellow and red. The ratio of memory read/write rate to normal value determines the state level, which the GPU and CPU can determine in terms of the number of their queued (polling) processing tasks. For example, 10 threads are queued in the warn state, and more than 100 threads are queued in the alert state.
In implementation, the highest-level abnormality can also be expressed in a high-frequency flashing mode, the flashing frequency is the inverse of the time difference (in minutes) from the time of the primary signal to the current time, so that the longer the abnormality is, the higher the flashing frequency is, namely, a certain frequency is used for drawing the monitoring information display lines into different colors, thereby helping monitoring staff to find out abnormal information in time and further ensuring that the system can stably run.
If the node monitoring information in each subgroup needs to be checked, the local image can be amplified by mouse scrolling, so that the monitoring information can be checked conveniently.
Based on the fractal theory, when the node structure of the distributed system is infinitely expanded, the running states of the network structure, the working group and various resources of each working node can be displayed in one graph at the same time, and the monitoring capability of operators on the real-time state of the system is enhanced.
In another aspect, an embodiment of the present invention provides a visual monitoring system of a distributed system, including the following modules:
the initial fractal graph generation module is used for acquiring a node level of the distributed system according to a node routing table of the distributed system, and representing a node level structure of the distributed system by adopting a regular polygon fractal graph, wherein one sub-fractal graph in the fractal graph corresponds to one node of the distributed system, and each sub-fractal graph is drawn by adopting a dotted line;
the running state display module is used for acquiring subtask information and resource allocation information of a current task of the distributed system, acquiring running nodes corresponding to running resources of each subtask based on the subtask information and the resource allocation information, searching the running nodes in the fractal graph, and drawing a sub-fractal graph corresponding to the running nodes into a real line graph;
the monitoring information display module is used for acquiring the monitoring information of each operation node in real time, and drawing and displaying the monitoring information on the side line of the sub-fractal graph corresponding to the operation node based on the monitoring information.
Preferably, the initial fractal graph generation module generates the regular polygon fractal graph by adopting the following method:
adopting a positive N-type polygon to represent the uppermost node of the node hierarchical structure to form a zero-order sub-fractal graph;
for each positive N-sided polygon in the j-1 th-order sub-fractal graph, obtaining the number M of sub-nodes of the node represented by the current positive N-sided polygon according to the node routing table, dividing an inscribed circle of the positive N-sided polygon into M sector areas by adopting dividing lines, drawing a circle by taking the middle point of each dividing line as the center of a circle and taking half of the dividing line as the diameter, and drawing the positive N-sided polygon in the circle to form a j-order sub-fractal graph; the circle is an inscribed circle of the positive N-sided shape;
the N value is determined according to the monitoring dimension of the distributed system, and T represents the node layer number of the distributed system; j=1, 2, … T-1.
Preferably, the monitoring dimension includes a CPU resource, a memory resource, a disk resource and a GPU resource, and the monitoring information includes an occupancy rate of the resource and a status of the resource.
Preferably, the monitoring information display module displays the monitoring information by adopting the following steps:
searching a sub fractal graph corresponding to the operation node in the regular polygon fractal graph based on a graph index;
and taking the side length of the sub-fractal graph multiplied by the occupancy rate of the resource as the length of a monitoring information display line, taking the color corresponding to the state level of the resource as the color of the monitoring information display line, and drawing the monitoring information display line at the side line position of the sub-fractal graph corresponding to the resource.
Preferably, the fractal graph is drawn by using an OpenGL or DirectX graphics API.
The method embodiment and the system embodiment are based on the same principle, and the related parts can be mutually referred to and can achieve the same technical effect. The specific implementation process refers to the foregoing embodiment, and will not be described herein.
Those skilled in the art will appreciate that all or part of the flow of the methods of the embodiments described above may be accomplished by way of a computer program to instruct associated hardware, where the program may be stored on a computer readable storage medium. Wherein the computer readable storage medium is a magnetic disk, an optical disk, a read-only memory or a random access memory, etc.
The present invention is not limited to the above-mentioned embodiments, and any changes or substitutions that can be easily understood by those skilled in the art within the technical scope of the present invention are intended to be included in the scope of the present invention.

Claims (8)

1. A method for visual monitoring of a distributed system, comprising the steps of:
acquiring a node level of the distributed system according to a node routing table of the distributed system, and representing a node level structure of the distributed system by adopting a regular polygon fractal graph, wherein one sub-fractal graph in the regular polygon fractal graph corresponds to one node of the distributed system, and each sub-fractal graph is drawn by adopting a dotted line;
acquiring subtask information and resource allocation information of a current task of a distributed system, acquiring an operation node corresponding to operation resources of each subtask based on the subtask information and the resource allocation information, searching the operation node in the regular polygon fractal graph, and drawing a sub-fractal graph corresponding to the operation node into a real line graph;
acquiring monitoring information of each operation node in real time, and drawing and displaying the monitoring information on a side line of a sub fractal graph corresponding to the operation node based on the monitoring information;
the monitoring information comprises the occupancy rate of the resource and the state of the resource;
and drawing and displaying the monitoring information on the side line of the sub-fractal graph corresponding to the operation node based on the monitoring information, wherein the method comprises the following steps:
searching a sub fractal graph corresponding to the operation node in the regular polygon fractal graph based on a graph index;
and taking the side length of the sub-fractal graph multiplied by the occupancy rate of the resource as the length of a monitoring information display line, taking the color corresponding to the state level of the resource as the color of the monitoring information display line, and drawing the monitoring information display line at the side line position of the sub-fractal graph corresponding to the resource.
2. The visual monitoring method of a distributed system according to claim 1, wherein the node hierarchy of the distributed system is represented by a regular polygon fractal graph, comprising:
adopting a positive N-type polygon to represent the uppermost node of the node hierarchical structure to form a zero-order sub-fractal graph;
for each positive N-sided polygon in the j-1 th-order sub-fractal graph, obtaining the number M of sub-nodes of the node represented by the current positive N-sided polygon according to the node routing table, dividing an inscribed circle of the positive N-sided polygon into M sector areas by adopting dividing lines, drawing a circle by taking the middle point of each dividing line as the center of a circle and taking half of the dividing line as the diameter, and drawing the positive N-sided polygon in the circle to form a j-order sub-fractal graph; the circle is an inscribed circle of the positive N-sided shape;
wherein j=1, 2, … T-1, n values are determined according to the monitored dimension of the distributed system, and T represents the node level number of the distributed system.
3. The method of claim 2, wherein the monitoring dimension includes CPU resources, memory resources, disk resources, and GPU resources.
4. The visual monitoring method of a distributed system according to claim 1, wherein the regular polygon fractal graph is drawn by using OpenGL or DirectX graphics API.
5. A visual monitoring system for a distributed system, comprising the following modules:
the initial fractal graph generation module is used for acquiring a node level of the distributed system according to a node routing table of the distributed system, and representing a node level structure of the distributed system by adopting a regular polygon fractal graph, wherein one sub-fractal graph in the regular polygon fractal graph corresponds to one node of the distributed system, and each sub-fractal graph is drawn by adopting a dotted line;
the running state display module is used for acquiring subtask information and resource allocation information of a current task of the distributed system, acquiring running nodes corresponding to running resources of each subtask based on the subtask information and the resource allocation information, searching the running nodes in the regular polygon fractal graph, and drawing a sub-fractal graph corresponding to the running nodes into a solid graph;
the monitoring information display module is used for acquiring the monitoring information of each operation node in real time, and drawing and displaying the monitoring information on the side line of the sub-fractal graph corresponding to the operation node based on the monitoring information;
the monitoring information comprises the occupancy rate of the resource and the state of the resource;
the monitoring information display module displays monitoring information by adopting the following steps:
searching a sub fractal graph corresponding to the operation node in the regular polygon fractal graph based on a graph index;
and taking the side length of the sub-fractal graph multiplied by the occupancy rate of the resource as the length of a monitoring information display line, taking the color corresponding to the state level of the resource as the color of the monitoring information display line, and drawing the monitoring information display line at the side line position of the sub-fractal graph corresponding to the resource.
6. The visual monitoring system of claim 5, wherein the initial fractal graph generation module generates a regular polygon fractal graph by:
adopting a positive N-type polygon to represent the uppermost node of the node hierarchical structure to form a zero-order sub-fractal graph;
for each positive N-sided polygon in the j-1 th-order sub-fractal graph, obtaining the number M of sub-nodes of the node represented by the current positive N-sided polygon according to the node routing table, dividing an inscribed circle of the positive N-sided polygon into M sector areas by adopting dividing lines, drawing a circle by taking the middle point of each dividing line as the center of a circle and taking half of the dividing line as the diameter, and drawing the positive N-sided polygon in the circle to form a j-order sub-fractal graph; the circle is an inscribed circle of the positive N-sided shape;
wherein j=1, 2, … T-1, n values are determined according to the monitored dimension of the distributed system, and T represents the node level number of the distributed system.
7. The visual monitoring system of claim 6, wherein the monitoring dimensions comprise CPU resources, memory resources, disk resources, and GPU resources.
8. The visual monitoring system of claim 5, wherein the regular polygon fractal graph is drawn using an OpenGL or DirectX graphics API.
CN202111217462.5A 2021-10-19 2021-10-19 Visual monitoring method and system for distributed system Active CN113872834B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111217462.5A CN113872834B (en) 2021-10-19 2021-10-19 Visual monitoring method and system for distributed system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111217462.5A CN113872834B (en) 2021-10-19 2021-10-19 Visual monitoring method and system for distributed system

Publications (2)

Publication Number Publication Date
CN113872834A CN113872834A (en) 2021-12-31
CN113872834B true CN113872834B (en) 2023-05-23

Family

ID=79000436

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111217462.5A Active CN113872834B (en) 2021-10-19 2021-10-19 Visual monitoring method and system for distributed system

Country Status (1)

Country Link
CN (1) CN113872834B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101470711B (en) * 2007-12-25 2011-04-20 国际商业机器公司 Data visualization method and apparatus for layered graph structure
CN105573824B (en) * 2014-10-10 2020-04-03 腾讯科技(深圳)有限公司 Monitoring method and system for distributed computing system
CN105426499A (en) * 2015-11-25 2016-03-23 成都数联铭品科技有限公司 Implementation method of data visualization
CN105488130A (en) * 2015-11-25 2016-04-13 成都数联铭品科技有限公司 Associated data visualization display method
CN107168847A (en) * 2017-04-21 2017-09-15 国家电网公司 The full link application monitoring method and device of a kind of support distribution formula framework

Also Published As

Publication number Publication date
CN113872834A (en) 2021-12-31

Similar Documents

Publication Publication Date Title
US11616703B2 (en) Scalable visualization of health data for network devices
US8013859B2 (en) Graphical display for illustrating effectiveness of resource management and resource balancing
Hillier The genetic code for cities: is it simpler than we think?
CN114096975A (en) System and method for modeling and monitoring a procedure in tissue using digital twins
CN108804383B (en) Support point parallel enumeration method and device based on measurement space
CN109063838B (en) Knowledge model servization and flow customization system
CN111581104A (en) DevOps research and development operation integration-based measurement method
CN113872834B (en) Visual monitoring method and system for distributed system
CN110135603A (en) It is a kind of to alert space characteristics analysis method based on the electric power networks for improving entropy assessment
Dziecielski et al. Basins of attraction around large cities-A study of urban interaction spaces in Europe
CN114968227A (en) Intelligent combat simulation platform and data processing method thereof
Chuah et al. Glyphs for software visualization
WO2016106590A1 (en) Method and apparatus for presenting device load state in cloud computing network
CN114169521A (en) Knowledge graph construction method based on fault mode and influence analysis information
CN102819533B (en) The warehouse compartment information processing method in visualization warehouse and device
Bandyopadhyay et al. Spatial Pattern Analysis for finding Weighted Candidate Set for p-median Problem inLocating Emergency Facilities
Krekhov et al. Towards in situ visualization of extreme-scale, agent-based, worldwide disease-spreading simulations
CN114819367A (en) Public service platform based on industrial internet
CN113673817A (en) Complex supply chain network system architecture modeling and adaptability evaluation method
CN113360563A (en) Navigation big data platform monitoring system and method
CN102546264A (en) Method for visually monitoring equipment by cloud computing terminal management user
CN111462291A (en) AIS (automatic identification System) target-based three-dimensional rendering method and system
Hesse et al. Visualizing time-dependent key performance indicator in a graph-based analysis
Zayas et al. Getting ready for data analytics of electric power distribution systems
CN116467071B (en) Method and device for sensing computing power in computing power network, storage medium and electronic equipment

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
GR01 Patent grant
GR01 Patent grant