CN116051678A - Method, device and medium for drawing test data curve of distributed storage - Google Patents

Method, device and medium for drawing test data curve of distributed storage Download PDF

Info

Publication number
CN116051678A
CN116051678A CN202310076338.4A CN202310076338A CN116051678A CN 116051678 A CN116051678 A CN 116051678A CN 202310076338 A CN202310076338 A CN 202310076338A CN 116051678 A CN116051678 A CN 116051678A
Authority
CN
China
Prior art keywords
test data
curve
data
template
data packet
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.)
Pending
Application number
CN202310076338.4A
Other languages
Chinese (zh)
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.)
Jinan Inspur Data Technology Co Ltd
Original Assignee
Jinan Inspur Data Technology 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 Jinan Inspur Data Technology Co Ltd filed Critical Jinan Inspur Data Technology Co Ltd
Priority to CN202310076338.4A priority Critical patent/CN116051678A/en
Publication of CN116051678A publication Critical patent/CN116051678A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/203Drawing of straight lines or curves
    • 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

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application discloses a method, a device and a medium for drawing a test data curve of distributed storage, relates to the field of distributed storage, and solves the problem that the curve drawing of data needs to be manually imported, and test data packets are obtained after drawing instructions are received; acquiring a corresponding drawing template according to the data type of the test data packet; analyzing the test data packet according to the drawing template to obtain drawing data, and drawing a curve according to the drawing data to obtain a test data curve. By selecting the existing drawing templates before drawing the curves, the existing mode can be used for drawing the curves rapidly, so that the performance analysis time is shortened, and the efficiency is improved; the user can conveniently construct different drawing models according to different test data so as to realize different data processing modes and graphic drawing methods, and the drawing of different test data curves can be satisfied on the premise of not modifying codes.

Description

Method, device and medium for drawing test data curve of distributed storage
Technical Field
The present invention relates to the field of distributed storage, and in particular, to a method, an apparatus, and a medium for drawing a test data curve for distributed storage.
Background
In distributed storage, cluster performance often needs to be tested, and various performance indexes are needed for the test. Sometimes, even for the same performance index, performance data under different conditions at different time periods need to be tested. Taking performance data is on the one hand, and how to better display the acquired performance data faster is on the other hand. This places higher demands on the test, and if there is no effective means or method, even if performance data is taken, it cannot be presented quickly; without clear presentation, it is difficult to maximize the value of the measured data.
Currently, data is typically extracted and then rendered using spreadsheet software (Excel). The method has the advantages of simplicity, intuition, complex operation, troublesome presentation, large workload and the like, and needs to manually import data to draw and modify contents such as titles each time.
Therefore, the test data curve drawing method without manually importing data is provided, and is a technical problem to be solved urgently by the person skilled in the art.
Disclosure of Invention
The purpose of the application is to provide a test data curve drawing method which does not need to draw manually imported data.
In order to solve the above technical problems, the present application provides a method for drawing a test data curve in distributed storage, including:
after receiving a drawing instruction, obtaining a test data packet;
acquiring a corresponding drawing template according to the data type of the test data packet;
analyzing the test data packet according to the drawing template to obtain drawing data;
and drawing a curve according to the drawing data to obtain a test data curve.
Preferably, in the method for drawing a test data curve in distributed storage, after analyzing a test data packet according to a drawing template to obtain drawing data, the method further includes:
and carrying out data statistics according to the drawing data, and storing a statistical result.
Preferably, in the method for drawing a test data curve in distributed storage, before obtaining a corresponding drawing template according to a data type of a test data packet, the method further includes:
judging whether the type of the test data packet exists or not to acquire a corresponding drawing template;
if yes, entering a step of acquiring a corresponding drawing template according to the data type of the test data packet;
if not, calling a template management module to create the template.
Preferably, in the method for drawing a test data curve in distributed storage, the method for creating a template by calling a template management module includes:
performing data analysis on the test data packet;
calling a corresponding basic analysis rule according to the data analysis result to generate an initial drawing template;
judging whether the initial drawing template meets the creation requirement or not;
if yes, storing the initial drawing template into a database.
Preferably, in the above method for drawing a test data curve in distributed storage, the generating an initial drawing template includes:
calling a corresponding basic analysis rule from the Python database according to the data analysis result;
and integrating the basic analysis rules to generate an initial drawing template.
Preferably, in the method for drawing a test data curve in distributed storage, analyzing a test data packet according to a drawing template to obtain drawing data, including:
analyzing the test data packet according to the drawing template by using Python language to obtain drawing data;
correspondingly, drawing a curve according to the drawing data to obtain a test data curve, which comprises the following steps:
and (5) performing curve drawing according to the drawing data by using Python language to obtain a test data curve.
Preferably, in the method for drawing a test data curve in distributed storage, the method further includes, after drawing the curve according to the drawing data,:
a test data curve is displayed.
In order to solve the above technical problem, the present application further provides a test data curve drawing device for distributed storage, including:
the first acquisition module is used for acquiring a test data packet after receiving a drawing instruction;
the second acquisition module is used for acquiring a corresponding drawing template according to the data type of the test data packet;
the analysis module is used for analyzing the test data packet according to the drawing template to obtain drawing data;
and the drawing module is used for drawing the curve according to the drawing data to obtain a test data curve.
In addition, the device further comprises:
and the statistics module is used for carrying out data statistics according to the drawing data and storing the statistical result.
The judging module is used for judging whether the type of the test data packet exists or not to acquire a corresponding drawing template; if yes, triggering a second acquisition module to acquire a corresponding drawing template according to the data type of the test data packet; if not, triggering a calling module for calling the template management module to create the template.
The data analysis module is used for carrying out data analysis on the test data packet;
the generation module is used for calling the corresponding basic analysis rule according to the data analysis result to generate an initial drawing template;
the first judging module is used for judging whether the initial drawing template meets the creation requirement or not;
if yes, a trigger storage module is used for storing the initial drawing template into a database.
The calling subunit is used for calling the corresponding basic analysis rule from the Python database according to the data analysis result;
and the generation subunit is used for carrying out integration processing on the basic analysis rules to generate an initial drawing template.
The analysis subunit is used for analyzing the test data packet according to the drawing template by using the Python language to obtain drawing data;
and the drawing subunit is used for drawing the curve according to the drawing data by using Python language to obtain a test data curve.
And the display module is used for displaying the test data curve.
In order to solve the above technical problem, the present application further provides a test data curve drawing device for distributed storage, including:
a memory for storing a computer program;
and the processor is used for realizing the step of the distributed stored test data curve drawing method when executing the computer program.
In order to solve the above technical problem, the present application further provides a computer readable storage medium, on which a computer program is stored, where the computer program when executed by a processor implements the steps of the above-mentioned test data curve drawing method for distributed storage.
The method for drawing the test data curve of the distributed storage comprises the following steps: after receiving a drawing instruction, obtaining a test data packet; acquiring a corresponding drawing template according to the data type of the test data packet; analyzing the test data packet according to the drawing template to obtain drawing data, and drawing a curve according to the drawing data to obtain a test data curve. By selecting the existing drawing templates before drawing the curves, the existing mode can be used for drawing the curves rapidly, so that the performance analysis time is shortened, and the efficiency is improved; the user can conveniently construct different drawing models according to different test data so as to realize different data processing modes and graphic drawing methods, and the drawing of different test data curves can be satisfied on the premise of not modifying codes.
In addition, the application also provides a device and a medium for drawing the test data curve of the distributed storage, which correspond to the method for drawing the test data curve of the distributed storage and have the same effects.
Drawings
For a clearer description of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described, it being apparent that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a method for drawing a curve of test data stored in a distributed manner according to an embodiment of the present application;
FIG. 2 is a block diagram of a test data curve drawing device with distributed storage according to an embodiment of the present application;
fig. 3 is a block diagram of another apparatus for drawing a curve of test data in distributed storage according to an embodiment of the present application.
Detailed Description
The following description of the technical solutions in the embodiments of the present application will be made clearly and completely with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments herein without making any inventive effort are intended to fall within the scope of the present application.
The core of the application is to provide a method, a device and a medium for drawing a test data curve of distributed storage.
In order to provide a better understanding of the present application, those skilled in the art will now make further details of the present application with reference to the drawings and detailed description.
In recent years, with the rapid development of internet technology and the development of the entire information industry, information is mass-produced, transmitted, processed and stored, and has an exponentially increasing trend. In order to meet the storage requirement of mass data, the distributed storage system is widely applied due to the characteristics of low cost, strong expansibility, high access speed, high reliability, higher concurrent access support and the like.
In distributed storage, cluster performance often needs to be tested, and various performance indexes are needed for the test. Sometimes, even for the same performance index, performance data under different conditions at different time periods need to be tested. Taking performance data is on the one hand, and how to better display the acquired performance data faster is on the other hand. This places higher demands on the test, and if there is no effective means or method, even if performance data is taken, it cannot be presented quickly; without clear presentation, it is difficult to maximize the value of the measured data.
The current common curve drawing method is to draw data by using excel. The advantages are simple and visual; however, the operation is complex, the presentation is troublesome, the contents such as the title and the like need to be manually imported for drawing data and modifying each time, and the workload is large.
The curve drawing code can be written firstly, the data is extracted and then imported, and the curve is generated as required. If similar performance data need to be drawn into a data curve, the data curve can be redrawn by simply modifying certain parameter codes; if the performance index required to be drawn changes, such as the extraction and drawing of the data curve of the number of read/write operations per second (Input/Output Operations Per Second, IOPS) and bandwidth performed before. In this case, when a data curve of the CPU (Central Processing Unit, CPU) is required to be drawn, a code for processing CPU data is required to be newly added and the data curve is newly drawn. The method has the advantages that the operation is simplified for the most part compared with the first method, but the code is required to be modified each time under the requirement of drawing the new performance index, and the method is more troublesome.
In order to solve the above technical problems, the present application provides a method for drawing a test data curve in distributed storage, which includes:
s11: after receiving a drawing instruction, obtaining a test data packet;
s12: acquiring a corresponding drawing template according to the data type of the test data packet;
s13: analyzing the test data packet according to the drawing template to obtain drawing data;
s14: and drawing a curve according to the drawing data to obtain a test data curve.
The test data packet mentioned in the embodiment of the present application refers to a data packet that is generated in the testing process of the cluster performance in the distributed storage and needs to be analyzed, and the embodiment does not limit the specific content of the cluster performance test, and only needs to be set according to actual needs.
After a drawing instruction is received, a test data packet is acquired, and then a corresponding drawing template is acquired according to the data type of the test data packet, wherein the drawing template mentioned in the embodiment refers to an applicable template which is preset and corresponds to different requirements, for example, a data curve template of a drawing CPU is preset according to the requirements, and is combined through basic analysis rules to generate an operable drawing template.
Analyzing the test data packet according to the drawing template to obtain drawing data, analyzing the test data packet according to the request data of the drawing template, obtaining drawing data needed by drawing a curve from the test data packet, and drawing the curve according to the drawing data to obtain a test data curve.
Preferably, the embodiment of the application uses Python as a programming language, uses a powerful data processing plug-in the Python to generate a drawing template, and processes a test data board generated in the test. Python, a computer programming language. Is a dynamic, object-oriented scripting language, originally designed for writing automated scripts (shell), and is increasingly being used for independent, large-scale project development with the continual updating of versions and the addition of new language functions.
Preferably, step S13 parses the test packet according to the rendering template to obtain rendering data, including:
analyzing the test data packet according to the drawing template by using Python language to obtain drawing data;
correspondingly, step S14 performs curve drawing according to the drawing data to obtain a test data curve, including:
and (5) performing curve drawing according to the drawing data by using Python language to obtain a test data curve.
In addition, step S14 performs curve drawing according to the drawing data, and after obtaining the test data curve, further includes:
a test data curve is displayed.
The method for drawing the test data curve of the distributed storage, provided by the embodiment of the application, comprises the following steps: after receiving a drawing instruction, obtaining a test data packet; acquiring a corresponding drawing template according to the data type of the test data packet; analyzing the test data packet according to the drawing template to obtain drawing data, and drawing a curve according to the drawing data to obtain a test data curve. By selecting the existing drawing templates before drawing the curves, the existing mode can be used for drawing the curves rapidly, so that the performance analysis time is shortened, and the efficiency is improved; the user can conveniently construct different drawing models according to different test data so as to realize different data processing modes and graphic drawing methods, and the drawing of different test data curves can be satisfied on the premise of not modifying codes.
According to the above embodiment of the method for drawing a test data curve in distributed storage, the present embodiment provides a preferred solution, and after analyzing a test data packet according to a drawing template, the method further includes:
and carrying out data statistics according to the drawing data, and storing a statistical result.
After drawing data is obtained, a user builds different drawing models according to different test data to realize different data processing modes and graphic drawing methods, drawing of different test data curves is met on the premise of not modifying codes, meanwhile, a data statistics function is carried out, and data statistics is used for counting some important information of data in the drawing process according to the needs of the user.
According to the above embodiment of the method for drawing a test data curve in distributed storage, the present embodiment provides a preferred solution, and before obtaining a corresponding drawing template according to a data type of a test data packet, the method further includes:
judging whether the type of the test data packet exists or not to acquire a corresponding drawing template;
if yes, entering a step of acquiring a corresponding drawing template according to the data type of the test data packet;
if not, calling a template management module to create the template.
In this embodiment, according to actual needs, a common drawing template may be preset, after a drawing instruction is received, it is determined whether a corresponding drawing template is obtained by the type of the test data packet, if yes, a user enters to obtain the corresponding drawing template according to the data type of the test data packet, and builds different drawing models according to different test data, so as to implement different data processing modes and graphics drawing methods, and drawing of different test data curves is satisfied without modifying codes. If not, creating a template to realize curve drawing.
Preferably, invoking the template management module to create the template includes:
performing data analysis on the test data packet;
calling a corresponding basic analysis rule according to the data analysis result to generate an initial drawing template;
judging whether the initial drawing template meets the creation requirement or not;
if yes, storing the initial drawing template into a database.
In the embodiment, firstly, data analysis is carried out on a test data packet, and a corresponding basic analysis rule is called according to a data analysis result to generate an initial drawing template; the basic analysis rules mentioned in this embodiment refer to analysis forms of different data, drawing modes and graphic features used by different data, data statistics methods used by different data, and the like; wherein the data parsing form provides optional basic parsing rules such as a certain column of a certain data in a data source file; the user can also customize the settings. After the initial drawing template is established, judging whether the initial drawing template meets the establishment requirement, namely judging whether the initial drawing template has a problem or not, analyzing data, if so, storing the initial drawing template into a database for later use; if the initial drawing template is wrong, the problem is found when the initial drawing template is checked, and parameter adjustment and retesting are needed until the initial drawing template meets the requirement.
Preferably, the generating the initial drawing template includes:
calling a corresponding basic analysis rule from the Python database according to the data analysis result;
and integrating the basic analysis rules to generate an initial drawing template.
In the embodiment, firstly, data analysis is carried out on a test data packet, and corresponding basic analysis rules are called from a Python database according to a data analysis result; integrating the basic analysis rules to generate an initial drawing template, judging whether the initial drawing template meets the creation requirement after the initial drawing template is created, namely judging whether the initial drawing template has problems or not, analyzing data, and if so, storing the initial drawing template into a database for later use; if the initial drawing template is wrong, the problem is found when the initial drawing template is checked, and parameter adjustment and retesting are needed until the initial drawing template meets the requirement.
In the above embodiments, the method for drawing the test data curve of the distributed storage is described in detail, and the application further provides a corresponding embodiment of the apparatus for drawing the test data curve of the distributed storage. It should be noted that the present application describes an embodiment of the device portion from two angles, one based on the angle of the functional module and the other based on the angle of the hardware.
Based on the angle of the functional module, fig. 2 is a block diagram of a device for drawing a test data curve of distributed storage, which is provided in an embodiment of the present application, as shown in fig. 2, and includes:
a first obtaining module 21, configured to obtain a test data packet after receiving a drawing instruction;
a second obtaining module 22, configured to obtain a corresponding drawing template according to the data type of the test data packet;
the parsing module 23 is configured to parse the test data packet according to the drawing template to obtain drawing data;
and the drawing module 24 is used for drawing a curve according to the drawing data to obtain a test data curve.
In the test data curve drawing device for distributed storage provided by the embodiment of the application, after a first acquisition module 21 receives a drawing instruction, a test data packet is acquired; the second obtaining module 22 obtains a corresponding drawing template according to the data type of the test data packet; the analysis module 23 analyzes the test data packet according to the drawing template to obtain drawing data; the drawing module 24 performs curve drawing according to the drawing data to obtain a test data curve. By selecting the existing drawing templates before drawing the curves, the existing mode can be used for drawing the curves rapidly, so that the performance analysis time is shortened, and the efficiency is improved; the user can conveniently construct different drawing models according to different test data so as to realize different data processing modes and graphic drawing methods, and the drawing of different test data curves can be satisfied on the premise of not modifying codes.
In addition, the device further comprises:
and the statistics module is used for carrying out data statistics according to the drawing data and storing the statistical result.
The judging module is used for judging whether the type of the test data packet exists or not to acquire a corresponding drawing template; if yes, triggering the second acquisition module 22 to acquire a corresponding drawing template according to the data type of the test data packet; if not, triggering a calling module for calling the template management module to create the template.
The data analysis module is used for carrying out data analysis on the test data packet;
the generation module is used for calling the corresponding basic analysis rule according to the data analysis result to generate an initial drawing template;
the first judging module is used for judging whether the initial drawing template meets the creation requirement or not;
if yes, a trigger storage module is used for storing the initial drawing template into a database.
The calling subunit is used for calling the corresponding basic analysis rule from the Python database according to the data analysis result;
and the generation subunit is used for carrying out integration processing on the basic analysis rules to generate an initial drawing template.
The analysis subunit is used for analyzing the test data packet according to the drawing template by using the Python language to obtain drawing data;
and the drawing subunit is used for drawing the curve according to the drawing data by using Python language to obtain a test data curve.
And the display module is used for displaying the test data curve.
Since the embodiments of the apparatus portion and the embodiments of the method portion correspond to each other, the embodiments of the apparatus portion are referred to the description of the embodiments of the method portion, and are not repeated herein.
Fig. 3 is a block diagram of another apparatus for drawing a test data curve of distributed storage according to an embodiment of the present application, where, as shown in fig. 3, the apparatus for drawing a test data curve of distributed storage includes: a memory 30 for storing a computer program;
the processor 31 is configured to implement the steps of the method for acquiring user operation habit information according to the above-described embodiment (the distributed stored test data curve drawing method) when executing the computer program.
The test data curve drawing device for distributed storage provided in this embodiment may include, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, or the like.
Processor 31 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 31 may be implemented in hardware in at least one of a digital signal processor (Digital Signal Processor, DSP), a Field programmable gate array (Field-Programmable Gate Array, FPGA), a programmable logic array (Programmable Logic Array, PLA). The processor 31 may also comprise a main processor, which is a processor for processing data in an awake state, also called central processor (Central Processing Unit, CPU), and a coprocessor; a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 31 may be integrated with an image processor (Graphics Processing Unit, GPU) for rendering and rendering of content required to be displayed by the display screen. In some embodiments, the processor 31 may also include an artificial intelligence (Artificial Intelligence, AI) processor for processing computing operations related to machine learning.
Memory 30 may include one or more computer-readable storage media, which may be non-transitory. Memory 30 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 30 is at least used for storing a computer program 301, where the computer program, when loaded and executed by the processor 31, is capable of implementing the relevant steps of the method for curve plotting test data in distributed storage disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 30 may further include an operating system 302, data 303, and the like, where the storage manner may be transient storage or permanent storage. The operating system 302 may include Windows, unix, linux, among other things. The data 303 may include, but is not limited to, data related to implementing a test data profiling method for distributed storage, and the like.
In some embodiments, the test data profiling apparatus of the distributed storage may further comprise a display screen 32, an input/output interface 33, a communication interface 34, a power supply 35, and a communication bus 36.
Those skilled in the art will appreciate that the structure shown in fig. 3 is not limiting of a distributed stored test data profiling apparatus and may include more or fewer components than illustrated.
The device for drawing the test data curve of the distributed storage comprises a memory and a processor, wherein the processor can realize the following method when executing a program stored in the memory: the method for drawing the test data curve of the distributed storage comprises the following steps: after receiving a drawing instruction, obtaining a test data packet; acquiring a corresponding drawing template according to the data type of the test data packet; analyzing the test data packet according to the drawing template to obtain drawing data, and drawing a curve according to the drawing data to obtain a test data curve. By selecting the existing drawing templates before drawing the curves, the existing mode can be used for drawing the curves rapidly, so that the performance analysis time is shortened, and the efficiency is improved; the user can conveniently construct different drawing models according to different test data so as to realize different data processing modes and graphic drawing methods, and the drawing of different test data curves can be satisfied on the premise of not modifying codes.
Finally, the present application also provides a corresponding embodiment of the computer readable storage medium. The computer readable storage medium has stored thereon a computer program which, when executed by a processor, performs the steps described in the above-described embodiments of the distributed stored test data curve plotting method.
It will be appreciated that the methods of the above embodiments, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored on a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in part or all of the technical solution contributing to the prior art, or in a software product stored in a storage medium, performing all or part of the steps of the methods of the various embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The computer readable storage medium provided in this embodiment has a computer program stored thereon, which when executed by a processor, can implement the following method: the method for drawing the test data curve of the distributed storage comprises the following steps: after receiving a drawing instruction, obtaining a test data packet; acquiring a corresponding drawing template according to the data type of the test data packet; analyzing the test data packet according to the drawing template to obtain drawing data, and drawing a curve according to the drawing data to obtain a test data curve. By selecting the existing drawing templates before drawing the curves, the existing mode can be used for drawing the curves rapidly, so that the performance analysis time is shortened, and the efficiency is improved; the user can conveniently construct different drawing models according to different test data so as to realize different data processing modes and graphic drawing methods, and the drawing of different test data curves can be satisfied on the premise of not modifying codes.
The method, the device and the medium for drawing the distributed stored test data curve provided by the application are described in detail. In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section. It should be noted that it would be obvious to those skilled in the art that various improvements and modifications can be made to the present application without departing from the principles of the present application, and such improvements and modifications fall within the scope of the claims of the present application.
It should also be noted that in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A method for drawing a test data curve of distributed storage, comprising:
after receiving a drawing instruction, obtaining a test data packet;
acquiring a corresponding drawing template according to the data type of the test data packet;
analyzing the test data packet according to the drawing template to obtain drawing data;
and drawing a curve according to the drawing data to obtain a test data curve.
2. The method for drawing a curve of a test data stored in a distributed manner according to claim 1, wherein after the analyzing the test data packet according to the drawing template, the method further comprises:
and carrying out data statistics according to the drawing data, and storing a statistical result.
3. The method for drawing a curve of a test data stored in a distributed manner according to claim 1, wherein before the corresponding drawing template is obtained according to the data type of the test data packet, the method further comprises:
judging whether the type of the test data packet exists or not to acquire a corresponding drawing template;
if yes, entering the step of acquiring a corresponding drawing template according to the data type of the test data packet;
if not, calling a template management module to create the template.
4. The method for drawing a curve of a test data stored in a distributed manner according to claim 3, wherein the calling the template management module to create the template comprises:
performing data analysis on the test data packet;
calling a corresponding basic analysis rule according to the data analysis result to generate an initial drawing template;
judging whether the initial drawing template meets the creation requirement or not;
if yes, storing the initial drawing template into a database.
5. The method for drawing a curve of a test data stored in a distributed manner according to claim 4, wherein the step of calling a corresponding basic parsing rule according to the data analysis result to generate an initial drawing template comprises the steps of:
calling a corresponding basic analysis rule from the Python database according to the data analysis result;
and integrating the basic analysis rules to generate an initial drawing template.
6. The method for drawing a curve of a test data stored in a distributed manner according to claim 1, wherein the parsing the test data packet according to the drawing template to obtain drawing data includes:
analyzing the test data packet according to the drawing template by using Python language to obtain drawing data;
correspondingly, the curve drawing is carried out according to the drawing data to obtain a test data curve, which comprises the following steps:
and drawing a curve according to the drawing data by using Python language to obtain a test data curve.
7. The method for drawing a curve of a test data in distributed storage according to claim 1, wherein after the drawing of the curve according to the drawing data, the method further comprises:
and displaying the test data curve.
8. A test data curve plotting device for distributed storage, comprising:
the first acquisition module is used for acquiring a test data packet after receiving a drawing instruction;
the second acquisition module is used for acquiring a corresponding drawing template according to the data type of the test data packet;
the analysis module is used for analyzing the test data packet according to the drawing template to obtain drawing data;
and the drawing module is used for drawing the curve according to the drawing data to obtain a test data curve.
9. A test data curve plotting device for distributed storage, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the method for curve plotting of test data stored in a distributed manner as claimed in any one of claims 1 to 7 when executing said computer program.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, implements the steps of the method for curve-drawing test data stored in a distributed manner as claimed in any one of claims 1 to 7.
CN202310076338.4A 2023-01-30 2023-01-30 Method, device and medium for drawing test data curve of distributed storage Pending CN116051678A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310076338.4A CN116051678A (en) 2023-01-30 2023-01-30 Method, device and medium for drawing test data curve of distributed storage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310076338.4A CN116051678A (en) 2023-01-30 2023-01-30 Method, device and medium for drawing test data curve of distributed storage

Publications (1)

Publication Number Publication Date
CN116051678A true CN116051678A (en) 2023-05-02

Family

ID=86113182

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310076338.4A Pending CN116051678A (en) 2023-01-30 2023-01-30 Method, device and medium for drawing test data curve of distributed storage

Country Status (1)

Country Link
CN (1) CN116051678A (en)

Similar Documents

Publication Publication Date Title
CN111045655B (en) Page rendering method and device, rendering server and storage medium
CN105511873B (en) User interface control display method and device
CN113655999B (en) Page control rendering method, device, equipment and storage medium
US9507693B2 (en) Method, device and computer-readable storage medium for closure testing
CN111880813B (en) Method for realizing android card UI (user interface) and storage medium
CN113018870A (en) Data processing method and device and computer readable storage medium
KR20140116438A (en) Graphical representation of an order of operations
CN112799670B (en) Method and system for unified multi-terminal logic development
CN112395027A (en) Widget interface generation method and device, storage medium and electronic equipment
CN113050921A (en) Webpage conversion method, device, storage medium and computer equipment
CN115858282A (en) Front-end performance visual monitoring method and system
CN115577689A (en) Table component generation method, device, equipment and medium
CN108628909B (en) Information pushing method and device
CN116051678A (en) Method, device and medium for drawing test data curve of distributed storage
CN114706581A (en) Image analysis method, image analysis device, computer equipment and storage medium
Hraška Browser fingerprinting
CN111338941B (en) Information processing method and device, electronic equipment and storage medium
CN113138910B (en) Input data acquisition method, device and medium
CN111144066B (en) Adjusting method, device and equipment for font of font library and storage medium
CN113342416B (en) Method and equipment for displaying H5 graphic data in applet
CN111651969B (en) style migration
CN114675923A (en) Configuration type operation interface setting method, device and medium
CN117407495A (en) Broadcasting method and device of generated content, electronic equipment and storage medium
CN114064411A (en) Component detection method, device, equipment and storage medium
CN116225437A (en) Page generation method and device, electronic equipment and storage medium

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