CN112559255B - Method, system, device and storage medium for testing file mount recovery - Google Patents
Method, system, device and storage medium for testing file mount recovery Download PDFInfo
- Publication number
- CN112559255B CN112559255B CN202011560631.0A CN202011560631A CN112559255B CN 112559255 B CN112559255 B CN 112559255B CN 202011560631 A CN202011560631 A CN 202011560631A CN 112559255 B CN112559255 B CN 112559255B
- Authority
- CN
- China
- Prior art keywords
- server
- client
- monitoring
- mount
- performance parameters
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1458—Management of the backup or restore process
- G06F11/1469—Backup restoration techniques
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1448—Management of the data involved in backup or backup restore
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/04—Processing captured monitoring data, e.g. for logfile generation
- H04L43/045—Processing captured monitoring data, e.g. for logfile generation for graphical visualisation of monitoring data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Mining & Analysis (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a test method, a system, a device and a storage medium for file mount recovery, wherein the method comprises the following steps: acquiring a mount recovery instruction, starting a mount recovery function of a backup file copy of a server side according to the instruction and exporting a mount point for a client side to mount; the server side and the client side are both provided with Python operating environments; acquiring a monitoring instruction, and monitoring performance parameters of a server and a client according to the monitoring instruction; and after the test is finished, generating a data chart according to the performance parameters and displaying the data chart. According to the embodiment of the invention, the Python operating environments are installed at the server side and the client side, so that cross-platform testing is realized, and the transportability is strong; performance parameters can be monitored on the server side and the client side respectively through the monitoring instructions, and the monitoring parameters are diversified and synchronous and have higher pertinence; the monitored performance parameters are displayed in a chart form and are simple and easy to understand. The embodiment of the invention can be widely applied to the technical field of computer networks.
Description
Technical Field
The invention relates to the technical field of computer networks, in particular to a method, a system and a device for testing file mount recovery and a storage medium.
Background
With the development of file backup recovery, the file mount recovery method is used more and more; mount recovery generates a virtual file system by parsing the backup copy file and exporting the NFS mount point, and recovers the required backup copy file from the NFS mount point. The mount recovery method accelerates the time and efficiency of file recovery and saves the disk space.
However, a test scheme for the mount recovery method is not mature at present, a common test mode is to test the test scheme by writing a script and monitor the use conditions of some simple system parameters by using system commands, the test method has single monitoring parameters, the monitoring data of a backup server and a client are not synchronous, the script is difficult to run across platforms, and the test result is obscure.
Disclosure of Invention
In view of this, an object of the embodiments of the present invention is to provide a method, a system, a device and a storage medium for testing file mount recovery, where the testing method can achieve cross-platform operation, diversified and synchronous testing parameters, and simple and understandable testing results.
In a first aspect, an embodiment of the present invention provides a method for testing file mount recovery, including the following steps:
acquiring a mount recovery instruction, starting a mount recovery function of a backup file copy of a server side according to the instruction and exporting a mount point for a client side to mount; the server and the client are both provided with Python operating environments;
acquiring a monitoring instruction, and monitoring performance parameters of the server and the client according to the monitoring instruction;
and after the test is finished, generating a data chart according to the performance parameters and displaying the data chart.
Optionally, the monitoring performance parameters of the server and the client includes:
and monitoring basic performance parameters and mounting recovery performance parameters of the server and the client.
Optionally, the generating a data graph according to the performance parameter includes:
acquiring performance parameters of the server and the client;
and classifying the performance parameters and drawing a chart according to the classified data.
Optionally, the method further comprises: and acquiring monitoring performance parameters of the server and the client.
Optionally, the method further comprises: and acquiring the client to be monitored.
Optionally, the method further comprises: and acquiring client registration information and registering the client.
In a second aspect, an embodiment of the present invention provides a test system for file mount recovery, including:
the mounting generation module is used for acquiring a mounting recovery instruction, starting a mounting recovery function of the backup file copy of the server side according to the instruction and exporting a mounting point for the mounting of the client side; the server and the client are both provided with Python operating environments;
the monitoring module is used for acquiring a monitoring instruction and monitoring the performance parameters of the server and the client according to the monitoring instruction;
and the display module is used for generating and displaying a data chart according to the performance parameters after the test is finished.
In a third aspect, an embodiment of the present invention provides a device for testing file mount recovery, including:
at least one processor;
at least one memory for storing at least one program;
when the at least one program is executed by the at least one processor, the at least one processor is enabled to implement the above-mentioned test method for file mount recovery.
In a fourth aspect, an embodiment of the present invention provides a storage medium, in which a program executable by a processor is stored, and the program executable by the processor is used for executing the above-mentioned test method for file mount recovery.
In a fifth aspect, an embodiment of the present invention provides a test system for file mount recovery, including a server and a plurality of clients, where the plurality of clients are respectively connected to the server, the clients are configured to mount backup mount points and send monitoring data to the server, and the server includes:
at least one processor;
at least one memory for storing at least one program and backup files
When the at least one program is executed by the at least one processor, the at least one processor is enabled to implement the above-mentioned test method for file mount recovery.
The implementation of the embodiment of the invention has the following beneficial effects: according to the embodiment of the invention, the Python operating environments are installed at the server side and the client side, so that cross-platform testing is realized, and the transportability is strong; performance parameters can be monitored on the server side and the client side respectively through the monitoring instructions, and the monitoring parameters are diversified and synchronous and have higher pertinence; the monitored performance parameters are displayed in a chart form and are simple and easy to understand.
Drawings
Fig. 1 is a schematic flowchart illustrating steps of a method for testing file mount recovery according to an embodiment of the present invention;
FIG. 2 is a block diagram of a test system for file mount recovery according to an embodiment of the present invention;
FIG. 3 is a block diagram of a testing apparatus for recovering from file mount according to an embodiment of the present invention;
fig. 4 is another structural block diagram of a test system for file mount recovery according to an embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the figures and the specific embodiments. The step numbers in the following embodiments are provided only for convenience of illustration, the order between the steps is not limited at all, and the execution order of each step in the embodiments can be adapted according to the understanding of those skilled in the art.
As shown in fig. 1, an embodiment of the present invention provides a method for testing file mount recovery, which includes the following steps.
S1, acquiring a mount recovery instruction, and starting a mount recovery function of the backup file copy of the server and exporting a mount point for the client to mount according to the instruction; the server and the client are both provided with Python operating environments;
s2, acquiring a monitoring instruction, and monitoring performance parameters of the server and the client according to the monitoring instruction;
and S3, after the test is finished, generating a data chart according to the performance parameters and displaying the data chart.
Specifically, before starting the test method for file mount recovery, it is necessary to install Python operating environments in both the client and the server storing the backup file copies, and install and operate the server and the client of the test software in the server and the client, respectively. Firstly, a mount recovery instruction is obtained through an interactive interface, a mount recovery function of a backup File copy of a server is started according to the mount recovery instruction, and an NFS (Network File System) mount point is exported, wherein the NFS mount point is mounted by a client, and a plurality of clients can mount the NFS mount point at the same time; then, acquiring a monitoring instruction through an interactive interface, and monitoring performance parameters of a server side and a client side according to the monitoring instruction, wherein the monitoring instruction comprises a monitored object, monitoring parameters of the monitored object and the like; and finally, after monitoring is finished, generating a data chart according to the monitored performance parameters and displaying the data chart.
It should be noted that the interactive interface may be a WEB management console interface, the WEB management console interface includes a plurality of control buttons and a result display area, the interface may be divided into a server side section and a client side section, and there may be a plurality of clients, so that the client side section may set pages. The control buttons can be set to be in a hook selection mode, and operation by a user is facilitated.
Optionally, the monitoring performance parameters of the server and the client includes:
and monitoring basic performance parameters and mounting recovery performance parameters of the server and the client.
It should be noted that the basic performance parameters include IO (Input/Output) of a disk, CPU utilization, memory utilization, network bandwidth, and the like. The mounting recovery performance parameters comprise monitoring file opening response time, file reading rate, file switching response time and the like.
Optionally, the generating a data graph according to the performance parameter includes:
acquiring performance parameters of the server and the client;
and classifying the performance parameters and drawing a chart according to the classified data.
Specifically, firstly, summarizing the acquired performance parameters of the server and the client; then, classifying the performance parameters according to the use purpose, such as analyzing the CPU use rates of the server and the clients, such as analyzing the file reading rates of a plurality of clients, and the like; finally, drawing a chart according to the classified data, wherein the specific representation form of the chart can also be set, such as a pie chart, a bar chart or a line chart.
Optionally, the method further comprises: and acquiring monitoring performance parameters of the server and the client.
Specifically, the server and the client can monitor more performance parameters, and the user can select the monitored performance parameters according to the requirement, so that the monitoring resources are saved, and the personalized requirements are met; in addition, the selection can be selected and set in a checking mode of the interactive interface.
Optionally, the method further comprises: and acquiring the client to be monitored.
Specifically, a plurality of clients can be simultaneously performed, and a user can select some or a certain client to perform monitoring according to needs, so that monitoring resources are saved, and personalized requirements are met; in addition, the selection can be selected and set in a checking mode of the interactive interface.
It should be noted that the interactive interface may also obtain and set performance monitoring parameters such as the number of open files, the test time, and the file read size, and start a performance monitoring function, which may simulate an operation of reading files by multiple users concurrently, for monitoring the performance of file mount recovery.
It should be noted that, the pressure test of the client and the server can also be started through the interactive interface.
Optionally, the method further comprises: and acquiring client registration information and registering the client.
It should be noted that after the server and the client install and run the test software and before the mount recovery function is started, the client needs to be registered on the interactive interface, and after the registration is completed, the interactive interface displays the relevant information of the registered client.
The implementation of the embodiment of the invention has the following beneficial effects: according to the embodiment of the invention, the Python operating environments are installed at the server side and the client side, so that cross-platform testing is realized, and the transportability is strong; performance parameters can be monitored on the server side and the client side respectively through the monitoring instructions, and the monitoring parameters are diversified and synchronous and have higher pertinence; the monitored performance parameters are displayed in a chart form and are simple and easy to understand.
As shown in fig. 2, an embodiment of the present invention provides a test system for file mount recovery, including:
the mounting generation module is used for acquiring a mounting recovery instruction, starting a mounting recovery function of the backup file copy of the server side according to the instruction and exporting a mounting point for the mounting of the client side; the server and the client are both provided with Python operating environments;
the monitoring module is used for acquiring a monitoring instruction and monitoring the performance parameters of the server and the client according to the monitoring instruction;
and the display module is used for generating and displaying a data chart according to the performance parameters after the test is finished.
It can be seen that the contents in the foregoing method embodiments are all applicable to this system embodiment, the functions specifically implemented by this system embodiment are the same as those in the foregoing method embodiment, and the advantageous effects achieved by this system embodiment are also the same as those achieved by the foregoing method embodiment.
As shown in fig. 3, an embodiment of the present invention provides a test apparatus for file mount recovery, including:
at least one processor;
at least one memory for storing at least one program;
when the at least one program is executed by the at least one processor, the at least one processor is enabled to implement the above-mentioned test method for file mount recovery.
It can be seen that the contents in the foregoing method embodiments are all applicable to this apparatus embodiment, the functions specifically implemented by this apparatus embodiment are the same as those in the foregoing method embodiment, and the advantageous effects achieved by this apparatus embodiment are also the same as those achieved by the foregoing method embodiment.
In addition, the embodiment of the invention also discloses a computer program product or a computer program, and the computer program product or the computer program is stored in a computer readable storage medium. The processor of the computer device may read the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device executes the above-described test method for file mount recovery. Likewise, the contents of the above method embodiments are all applicable to the present storage medium embodiment, the functions specifically implemented by the present storage medium embodiment are the same as those of the above method embodiments, and the advantageous effects achieved by the present storage medium embodiment are also the same as those achieved by the above method embodiments.
As shown in fig. 4, an embodiment of the present invention provides a test system for file mount recovery, including a server and a plurality of clients, where the plurality of clients are respectively connected to the server, the clients are configured to mount backup mount points and send monitoring data to the server, and the server includes:
at least one processor;
at least one memory for storing at least one program and backup files
When the at least one program is executed by the at least one processor, the at least one processor is enabled to implement the above-mentioned test method for file mount recovery.
Specifically, the server and the client may be different types of electronic devices, including but not limited to a desktop computer, a laptop computer, and other terminals.
It can be seen that the contents in the foregoing method embodiments are all applicable to this system embodiment, the functions specifically implemented by this system embodiment are the same as those in the foregoing method embodiment, and the advantageous effects achieved by this system embodiment are also the same as those achieved by the foregoing method embodiment.
While the preferred embodiments of the present invention have been illustrated and described, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (10)
1. A test method for file mount recovery is characterized by comprising the following steps:
acquiring a mount recovery instruction through an interactive interface, starting a mount recovery function of a backup file copy of a server side according to the instruction and exporting mount points for mounting a plurality of clients; the server and the client are both provided with Python operating environments;
acquiring a monitoring instruction, and monitoring performance parameters of the server and the client according to the monitoring instruction;
and after the test is finished, generating a data chart according to the performance parameters and displaying the data chart through an interactive interface.
2. The method for testing file mount recovery according to claim 1, wherein the step of monitoring the performance parameters of the server and the client comprises the steps of:
and monitoring basic performance parameters and mounting recovery performance parameters of the server and the client.
3. The method for testing file mount recovery according to claim 1, wherein the step of generating a data chart according to the performance parameters comprises the steps of:
acquiring performance parameters of the server and the client;
and classifying the performance parameters and drawing a chart according to the classified data.
4. The method for testing file mount recovery according to claim 1, wherein the method further comprises: and acquiring monitoring performance parameters of the server and the client.
5. The method for testing file mount recovery according to claim 1, wherein the method further comprises: and acquiring the client to be monitored.
6. The method for testing file mount recovery according to any one of claims 1 to 4, wherein the method further comprises: and acquiring client registration information and registering the client.
7. A system for testing file mount recovery, comprising:
the mount generation module is used for acquiring a mount recovery instruction through an interactive interface, starting a mount recovery function of a backup file copy of a server side according to the instruction and exporting mount points for mounting a plurality of clients; the server and the client are both provided with Python operating environments;
the monitoring module is used for acquiring a monitoring instruction and monitoring the performance parameters of the server and the client according to the monitoring instruction;
and the display module is used for generating a data chart according to the performance parameters and displaying the data chart through an interactive interface after the test is finished.
8. A test device for file mount recovery, comprising:
at least one processor;
at least one memory for storing at least one program;
when executed by the at least one processor, the at least one program causes the at least one processor to implement the method for testing file mount recovery according to any of claims 1-6.
9. A storage medium having stored therein a program executable by a processor, wherein the program executable by the processor is for performing a test method for file mount recovery according to any one of claims 1 to 6 when executed by the processor.
10. The utility model provides a test system of file mount restoration which characterized in that, includes server and a plurality of customer end, a plurality of customer end respectively with the server is connected, the customer end is used for mounting backup mount point and sends monitoring data for the server, the server includes:
at least one processor;
at least one memory for storing at least one program and backup files
When executed by the at least one processor, the at least one program causes the at least one processor to implement the method for testing file mount recovery according to any of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011560631.0A CN112559255B (en) | 2020-12-25 | 2020-12-25 | Method, system, device and storage medium for testing file mount recovery |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011560631.0A CN112559255B (en) | 2020-12-25 | 2020-12-25 | Method, system, device and storage medium for testing file mount recovery |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112559255A CN112559255A (en) | 2021-03-26 |
CN112559255B true CN112559255B (en) | 2021-08-31 |
Family
ID=75034255
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011560631.0A Active CN112559255B (en) | 2020-12-25 | 2020-12-25 | Method, system, device and storage medium for testing file mount recovery |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112559255B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102243610A (en) * | 2011-08-09 | 2011-11-16 | 广东省电力调度中心 | Operating system test method and test system |
CN106066820A (en) * | 2016-06-08 | 2016-11-02 | 上海爱数信息技术股份有限公司 | Checking carry recovers automated testing method and the system of volume |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101635655B (en) * | 2008-07-25 | 2012-01-04 | 阿里巴巴集团控股有限公司 | Method, device and system for page performance test |
CN105721239A (en) * | 2016-01-18 | 2016-06-29 | 网易(杭州)网络有限公司 | Game test method, device and game system |
CN106453601A (en) * | 2016-10-25 | 2017-02-22 | 郑州云海信息技术有限公司 | Client, server, file-level data sharing methods and system |
CN108205482B (en) * | 2017-12-29 | 2019-03-05 | 广州鼎甲计算机科技有限公司 | File mount restoration methods |
CN109669865A (en) * | 2018-12-10 | 2019-04-23 | 万兴科技股份有限公司 | Performance test methods, device, electronic equipment and readable storage medium storing program for executing |
CN111158957B (en) * | 2019-12-31 | 2021-02-09 | 广州鼎甲计算机科技有限公司 | Virtual machine file recovery method, system, device and storage medium |
-
2020
- 2020-12-25 CN CN202011560631.0A patent/CN112559255B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102243610A (en) * | 2011-08-09 | 2011-11-16 | 广东省电力调度中心 | Operating system test method and test system |
CN106066820A (en) * | 2016-06-08 | 2016-11-02 | 上海爱数信息技术股份有限公司 | Checking carry recovers automated testing method and the system of volume |
Also Published As
Publication number | Publication date |
---|---|
CN112559255A (en) | 2021-03-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109302522B (en) | Test method, test device, computer system, and computer medium | |
CN109815119B (en) | APP link channel testing method and device | |
CN110750458A (en) | Big data platform testing method and device, readable storage medium and electronic equipment | |
CN101917286B (en) | Web performance analysis system and method for realizing cross-browser in internet application system | |
CN108830383B (en) | Method and system for displaying machine learning modeling process | |
CN110515854B (en) | Application program abnormality reproduction method and device and electronic equipment | |
US20080244062A1 (en) | Scenario based performance testing | |
WO2021129335A1 (en) | Operation monitoring method and apparatus, operation analysis method and apparatus | |
CN111352836A (en) | Pressure testing method and related device | |
CN111159039A (en) | Service simulation method, system, device and storage medium | |
CN111177113A (en) | Data migration method and device, computer equipment and storage medium | |
CN111934908A (en) | Internet of things simulation method, device and system and storage medium | |
CN111523676B (en) | Method and device for assisting machine learning model to be online | |
JP5545761B2 (en) | Failure analysis support system, failure analysis support method, and failure analysis support program | |
CN108984380A (en) | A kind of server test method, device and medium based on linux system | |
CN113849356A (en) | Equipment testing method and device, electronic equipment and storage medium | |
CN112559255B (en) | Method, system, device and storage medium for testing file mount recovery | |
CN115858282A (en) | Front-end performance visual monitoring method and system | |
CN113626099B (en) | Application program starting method and device and electronic equipment | |
CN115328891A (en) | Data migration method and device, storage medium and electronic equipment | |
CN108960433B (en) | Method and system for running machine learning modeling process | |
CN113973060A (en) | Internet of things simulation method, device and system and storage medium | |
CN107193670B (en) | Remote management method, device and system for cluster workstations | |
CN112395350A (en) | Method and device for visualizing monitoring data of multiple data sources | |
CN113765731A (en) | Information processing method, device and computer readable 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: Testing method, system, device and storage medium for file mount recovery Effective date of registration: 20221021 Granted publication date: 20210831 Pledgee: Industrial Bank Co.,Ltd. Guangzhou Development Zone sub branch Pledgor: Guangzhou Dingjia Computer Technology Co.,Ltd. Registration number: Y2022980018838 |