[go: up one dir, main page]

CN108763043A - Acquisition methods, the apparatus and system of pressure testing data in a kind of storage device - Google Patents

Acquisition methods, the apparatus and system of pressure testing data in a kind of storage device Download PDF

Info

Publication number
CN108763043A
CN108763043A CN201810523393.2A CN201810523393A CN108763043A CN 108763043 A CN108763043 A CN 108763043A CN 201810523393 A CN201810523393 A CN 201810523393A CN 108763043 A CN108763043 A CN 108763043A
Authority
CN
China
Prior art keywords
data
stress test
test data
storage device
target
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
CN201810523393.2A
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810523393.2A priority Critical patent/CN108763043A/en
Publication of CN108763043A publication Critical patent/CN108763043A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3452Performance evaluation by statistical analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Probability & Statistics with Applications (AREA)
  • Evolutionary Biology (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Computer Hardware Design (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Quality & Reliability (AREA)
  • General Physics & Mathematics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

本申请公开了一种存储设备中压力测试数据的获取方法,包括通过数据采集脚本定时从存储设备中采集目标压力测试数据;将所述目标压力测试数据保存至数据文件中;通过数据解析脚本在所述数据文件中对所述目标压力测试数据进行解析,获得压力测试数据。该获取方法可更加快速的获取存储设备在测试过程中产生的相关数据,并对其进行准确的解析,有效的提高了工作效率和数据的准确性,同时也大大降低了存储系统的测试成本。本申请还公开了一种存储设备中压力测试数据的获取装置、系统及计算机可读存储介质,均具有上述有益效果。

The present application discloses a method for acquiring stress test data in a storage device, which includes regularly collecting target stress test data from the storage device through a data collection script; saving the target stress test data into a data file; The target stress test data is analyzed in the data file to obtain the stress test data. The acquisition method can more quickly acquire relevant data generated by the storage device during the test process, and accurately analyze it, effectively improving work efficiency and data accuracy, and also greatly reducing the test cost of the storage system. The present application also discloses a device, system and computer-readable storage medium for acquiring stress test data in a storage device, all of which have the above beneficial effects.

Description

一种存储设备中压力测试数据的获取方法、装置及系统A method, device and system for acquiring stress test data in a storage device

技术领域technical field

本申请涉及分布式存储系统领域,特别涉及一种存储设备中压力测试数据的获取方法,还涉及一种存储设备中压力测试数据的获取装置、系统及计算机可读存储介质。The present application relates to the field of distributed storage systems, in particular to a method for acquiring stress test data in a storage device, and also relates to an acquisition device, system and computer-readable storage medium for stress test data in a storage device.

背景技术Background technique

随着信息技术的不断发展,数据作为一种宝贵资源逐渐被人们重视,如何快速处理数据资源并得到预期结果成为由资源到资产转变的关键问题之一。人们在工作生活中的各种活动都会产生数据,收集这些数据再通过分析处理能够获得很有有用信息,实现有资源到资产的转化,从而催化了大数据、高性能计算的高速发展。数据存储作为数据资源的核心要素之一也迎来了高速发展的时期。With the continuous development of information technology, data is gradually being valued as a valuable resource. How to quickly process data resources and obtain expected results has become one of the key issues in the transformation from resources to assets. Various activities in people's work and life will generate data. Collecting these data and then analyzing and processing them can obtain useful information and realize the transformation of resources into assets, thus catalyzing the rapid development of big data and high-performance computing. As one of the core elements of data resources, data storage has also ushered in a period of rapid development.

传统的网络存储系统采用集中的存储服务器存放所有数据,而随着大数据的发展,存储服务器成为系统性能的瓶颈,也是可靠性和安全性的焦点,越来越不能满足大规模存储应用的需要。分布式网络存储系统采用可扩展的系统结构,不但提高了系统的可靠性、可用性和存取效率,还易于扩展,从而被越来越多的企业单位接受认可。Traditional network storage systems use centralized storage servers to store all data. With the development of big data, storage servers have become the bottleneck of system performance and the focus of reliability and security, which are increasingly unable to meet the needs of large-scale storage applications. . The distributed network storage system adopts an expandable system structure, which not only improves the reliability, availability and access efficiency of the system, but also is easy to expand, thus being accepted and recognized by more and more enterprise units.

分布式存储系统一般由1到N个节点构成,用以提供高性能、海量数据存储。在实际的开发测试环境中,研发人员在增加某些分布式存储系统新特性之后往往会对其进行功能、性能及稳定性的验证工作。进一步,在进行性能和稳定性验证工作时,工作人员需要对分布式存储系统集群做长时间的压力测试,并对其测试过程中产生的相关数据进行统计和分析。然而,由于人为的参与相关数据的统计和分析工作,则将会消耗大量的时间与人力,降低了工作效率的同时,也大大提高了其测试成本;此外,人为的参与也会在很大程度上造成获取数据的不准确性。A distributed storage system generally consists of 1 to N nodes to provide high performance and massive data storage. In the actual development and testing environment, developers often verify the function, performance and stability of some distributed storage systems after adding new features. Furthermore, when performing performance and stability verification work, staff need to conduct long-term stress tests on distributed storage system clusters, and perform statistics and analysis on relevant data generated during the testing process. However, due to artificial participation in statistics and analysis of relevant data, it will consume a lot of time and manpower, reduce work efficiency, and greatly increase its testing cost; resulting in inaccurate data acquisition.

因此,如何快速获取存储设备在测试过程中产生的相关数据,并对其进行准确的解析,以提高工作效率和数据准确性,同时降低测试成本是本领域技术人员亟待解决的问题。Therefore, it is an urgent problem to be solved by those skilled in the art how to quickly obtain relevant data generated by the storage device during the testing process and accurately analyze it to improve work efficiency and data accuracy while reducing testing costs.

发明内容Contents of the invention

本申请的目的是提供一种存储设备中压力测试数据的获取方法,该获取方法可以更加快速的获取存储设备在测试过程中产生的相关数据,并对其进行准确的解析,有效的提高了工作效率和数据的准确性,同时也大大降低了存储系统的测试成本;本申请的另一目的是提供一种存储设备中压力测试数据的获取装置、系统及计算机可读存储介质,均具有上述有益效果。The purpose of this application is to provide a method for obtaining stress test data in a storage device, which can more quickly obtain relevant data generated by the storage device during the test process, and accurately analyze it, effectively improving the work efficiency. efficiency and data accuracy, and also greatly reduce the test cost of the storage system; another purpose of the present application is to provide an acquisition device, system and computer-readable storage medium for stress test data in a storage device, all of which have the above-mentioned benefits Effect.

为解决上述技术问题,本申请提供了一种存储设备中压力测试数据的获取方法,所述获取方法包括:In order to solve the above technical problems, the present application provides a method for acquiring stress test data in a storage device, the acquisition method comprising:

通过数据采集脚本定时从存储设备中采集目标压力测试数据;Collect the target stress test data from the storage device regularly through the data collection script;

将所述目标压力测试数据保存至数据文件中;Save the target stress test data into a data file;

通过数据解析脚本在所述数据文件中对所述目标压力测试数据进行解析,获得压力测试数据。Analyzing the target stress test data in the data file through a data parsing script to obtain stress test data.

优选的,所述通过数据采集脚本定时从存储设备中采集目标压力测试数据,包括:Preferably, the regularly collecting target stress test data from the storage device through the data collection script includes:

在所述存储设备的存储节点上通过任务定时运行机制运行所述数据采集脚本;Running the data collection script through a task timing running mechanism on the storage node of the storage device;

利用所述数据采集脚本采集所述目标压力测试数据。The target stress test data is collected by using the data collection script.

优选的,所述数据采集脚本包括:top命令,free命令,dstst命令,iostat命令以及ceph–s命令。Preferably, the data collection script includes: top command, free command, dstst command, iostat command and ceph-s command.

优选的,所述通过数据解析脚本在所述数据文件中对所述目标压力测试数据进行解析,获得压力测试数据包括:Preferably, analyzing the target stress test data in the data file through the data parsing script, and obtaining the stress test data includes:

通过Linux的文本解析工具对所述目标压力数据进行解析,获得所述压力测试数据。The target pressure data is analyzed by a text analysis tool of Linux to obtain the stress test data.

优选的,所述获取方法还包括:Preferably, the acquisition method also includes:

将所述压力测试数据保存至txt文件;Save the stress test data to a txt file;

将所述txt文件中的所述压力测试数据导入至EXCEL文件中。Import the stress test data in the txt file into an EXCEL file.

为解决上述技术问题,本申请还提供了一种存储设备中压力测试数据的获取装置,所述获取装置包括:In order to solve the above technical problems, the present application also provides an acquisition device for stress test data in a storage device, the acquisition device includes:

采集模块,用于通过数据采集脚本定时从存储设备中采集目标压力测试数据;The collection module is used to regularly collect target stress test data from the storage device through the data collection script;

保存模块,用于将所述目标压力测试数据保存至数据文件中;A saving module, configured to save the target stress test data into a data file;

解析模块,用于通过数据解析脚本在所述数据文件中对所述目标压力测试数据进行解析,获得压力测试数据。The parsing module is configured to parse the target stress test data in the data file through a data parsing script to obtain stress test data.

优选的,所述采集模块包括:Preferably, the collection module includes:

脚本运行子模块,用于在所述存储设备的存储节点上通过任务定时运行机制运行所述数据采集脚本;A script running submodule, configured to run the data collection script on the storage node of the storage device through a task timing running mechanism;

数据采集子模块,用于利用所述数据采集脚本采集所述目标压力测试数据。The data collection sub-module is configured to use the data collection script to collect the target stress test data.

优选的,所述获取装置还包括:Preferably, the acquisition device further includes:

数据保存模块,用于将所述压力测试数据保存至txt文件;A data saving module, configured to save the stress test data to a txt file;

数据导入模块,用于将所述txt文件中的所述压力测试数据导入至EXCEL文件中。A data import module, configured to import the stress test data in the txt file into an EXCEL file.

为解决上述技术问题,本申请还提供了一种存储设备中压力测试数据的获取系统,该获取系统包括:In order to solve the above technical problems, the present application also provides an acquisition system for stress test data in storage devices, the acquisition system includes:

存储器,用于存储计算机程序;memory for storing computer programs;

处理器,用于执行所述计算机程序时实现上述任一种所述的存储设备中压力测试数据的获取方法的步骤。A processor configured to implement the steps of any one of the methods for acquiring stress test data in the storage device described above when executing the computer program.

为解决上述技术问题,本申请还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述任意一种所述的存储设备中压力测试数据的获取方法的步骤。In order to solve the above-mentioned technical problems, the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, any one of the above-mentioned storage Steps of a method for obtaining stress test data in a device.

本申请所提供的一种存储设备中压力测试数据的获取方法,包括通过数据采集脚本定时从存储设备中采集目标压力测试数据;将所述目标压力测试数据保存至数据文件中;通过数据解析脚本在所述数据文件中对所述目标压力测试数据进行解析,获得压力测试数据。A method for acquiring stress test data in a storage device provided by the present application includes regularly collecting target stress test data from the storage device through a data collection script; saving the target stress test data into a data file; The target stress test data is analyzed in the data file to obtain stress test data.

可见,本申请所提供的技术方案,可通过相应的数据采集工具定时的从对应的存储节点中自动采集存储系统在测试过程中产生的各类数据,即上述目标压力测试数据,并通过特定的文本解析工具对该目标压力测试数据进行自动解析,使得工作人员在采集CEPH集群数据、分析性能和稳定性的时候,可以脱离人为参与的需求,有效的避免了因人为参与而造成的统计误差,可更为准确的获得与存储系统性能、稳定性相关的数据;同时,由于脱离了人为参与的需求,可有效的减轻开发、测试人员的工作量和工作压力,进一步降低人力成本的消耗,从而提升整体的工作效率。It can be seen that the technical solution provided by this application can automatically collect various types of data generated by the storage system during the test process from the corresponding storage nodes through the corresponding data collection tools at regular intervals, that is, the above-mentioned target pressure test data, and through specific The text analysis tool automatically analyzes the target stress test data, so that the staff can get rid of the need for human participation when collecting CEPH cluster data, analyzing performance and stability, and effectively avoiding statistical errors caused by human participation. Data related to the performance and stability of the storage system can be obtained more accurately; at the same time, due to the need for human participation, it can effectively reduce the workload and work pressure of development and testing personnel, and further reduce the consumption of labor costs, thereby Improve overall work efficiency.

本申请所提供的一种存储设备中压力测试数据的获取装置、系统及计算机可读存储介质,均具有上述有益效果,在此不再赘述。A device, system, and computer-readable storage medium for acquiring stress test data in a storage device provided in the present application all have the above-mentioned beneficial effects, and will not be repeated here.

附图说明Description of drawings

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present application, and those skilled in the art can also obtain other drawings according to the provided drawings without creative work.

图1为本申请所提供的一种存储设备中压力测试数据的获取方法的流程示意图;FIG. 1 is a schematic flow diagram of a method for obtaining stress test data in a storage device provided by the present application;

图2为本申请所提供的另一种存储设备中压力测试数据的获取方法的流程示意图;FIG. 2 is a schematic flowchart of another method for obtaining stress test data in a storage device provided by the present application;

图3为本申请所提供的一种存储设备中压力测试数据的获取装置的示意图;FIG. 3 is a schematic diagram of an acquisition device for stress test data in a storage device provided by the present application;

图4为本申请所提供的一种存储设备中压力测试数据的获取系统的示意图。FIG. 4 is a schematic diagram of a system for acquiring stress test data in a storage device provided by the present application.

具体实施方式Detailed ways

本申请的核心是提供一种存储设备中压力测试数据的获取方法,该获取方法可以更加快速的获取存储设备在测试过程中产生的相关数据,并对其进行准确的解析,有效的提高了工作效率和数据的准确性,同时也大大降低了存储系统的测试成本;本申请的另一核心是提供一种存储设备中压力测试数据的获取装置、系统及计算机可读存储介质,均具有上述有益效果。The core of this application is to provide a method for obtaining stress test data in a storage device, which can more quickly obtain relevant data generated by the storage device during the test process, and accurately analyze it, effectively improving the work efficiency. Efficiency and data accuracy, and also greatly reduce the test cost of the storage system; another core of the application is to provide a pressure test data acquisition device, system and computer-readable storage medium in the storage device, all of which have the above-mentioned benefits Effect.

为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

请参考图1,图1为本申请所提供的一种存储设备中压力测试数据的获取方法的流程示意图,该获取方法可以包括:Please refer to FIG. 1. FIG. 1 is a schematic flowchart of a method for obtaining stress test data in a storage device provided by the present application. The obtaining method may include:

S101:通过数据采集脚本定时从存储设备中采集目标压力测试数据;S101: regularly collect target stress test data from the storage device through the data collection script;

具体的,在对存储系统进行性能和稳定性的验证工作过程中,可通过设置相应的数据采集脚本来定时采集其验证过程中产生的相关数据,即上述目标压力测试数据。其中,上述目标压力测试数据可根据实际需要进行采集,并不唯一,如存储系统中各个节点的可存储空间、使用情况以及网络的传输速度等。Specifically, in the process of verifying the performance and stability of the storage system, relevant data generated during the verification process, that is, the above-mentioned target stress test data, can be regularly collected by setting a corresponding data collection script. Among them, the above-mentioned target stress test data can be collected according to actual needs, and is not unique, such as the storable space, usage status and network transmission speed of each node in the storage system.

优选的,上述通过数据采集脚本定时从存储设备中采集目标压力测试数据可以包括:在存储设备的存储节点上通过任务定时运行机制运行数据采集脚本;利用数据采集脚本采集目标压力测试数据。Preferably, the above-mentioned regular collection of target stress test data from the storage device through the data collection script may include: running the data collection script through a task timing operation mechanism on the storage node of the storage device; using the data collection script to collect the target stress test data.

具体的,在存储系统中,可以在各个存储节点上设置相应的任务定时机制,并通过该任务定时机制运行上述数据采集脚本,以实现目标压力测试数据的自动采集。其中,对于自动采集的定时时间,本申请不做具体限定,根据性能验证的实际需要进行设置即可。Specifically, in the storage system, a corresponding task timing mechanism can be set on each storage node, and the above data collection script can be run through the task timing mechanism, so as to realize automatic collection of target stress test data. Wherein, the application does not specifically limit the timing of the automatic collection, and it can be set according to the actual needs of the performance verification.

优选的,上述数据采集脚本可以包括:top命令,free命令,dstst命令,iostat命令以及ceph–s命令。Preferably, the above data collection script may include: top command, free command, dstst command, iostat command and ceph-s command.

具体的,在数据采集脚本中可设置各类采集工具,以实现目标压力测试数据的采集。本申请中,数据采集脚本可以包括top命令,free命令,dstst命令,iostat命令以及ceph–s命令。其中,top命令可用于采集各个存储节点的内存条信息,以及确定内存条的数量和容量;free命令可用于采集存储系统的内存使用信息;dstat命令可用于采集存储节点间的网络传输速度,以及对应磁盘的读写速度;iostat命令可用于采集存储节点单个磁盘的读写速度及其性能使用率;ceph–s命令则可用于采集CEPH集群的整体性能数据,包括读写速度和每秒的读写op数(operation,操作数)等。当然,上述数据采集脚本中设置的采集工具的种类及数量并不限于此,可根据实际情况进行相应的增减,并不影响本技术方案的实施。Specifically, various collection tools can be set in the data collection script to realize the collection of target stress test data. In this application, the data collection script may include top command, free command, dstst command, iostat command and ceph-s command. Among them, the top command can be used to collect the memory information of each storage node, and determine the number and capacity of the memory; the free command can be used to collect the memory usage information of the storage system; the dstat command can be used to collect the network transmission speed between storage nodes, and Corresponding to the read and write speed of the disk; the iostat command can be used to collect the read and write speed of a single disk of the storage node and its performance utilization rate; the ceph-s command can be used to collect the overall performance data of the CEPH cluster, including the read and write speed and the read and write per second Write op number (operation, operand) and so on. Of course, the types and quantities of the collection tools set in the above data collection script are not limited thereto, and can be increased or decreased accordingly according to the actual situation, without affecting the implementation of the technical solution.

S102:将目标压力测试数据保存至数据文件中;S102: saving the target stress test data into a data file;

S103:通过数据解析脚本在数据文件中对目标压力测试数据进行解析,获得压力测试数据。S103: Analyze the target stress test data in the data file through the data analysis script to obtain the stress test data.

具体的,在采集获得目标压力测试数据之后,可将其保存至对应的数据文件中,进一步,即可利用相应的解析工具,即上述数据解析脚本在该数据文件中对目标压力测试数据进行解析,以获得工作人员所需要的与存储系统性能和稳定性相关的压力测试数据。其中,该压力测试数据对应于上述目标压力测试数据,可包括CPU空闲率、内存使用情况、网络传输速度、硬盘读写速度、单个硬盘资源使用率和集群整体性能数据等各类相关数据。Specifically, after the target stress test data is collected, it can be saved in the corresponding data file, and further, the corresponding analysis tool can be used, that is, the above data analysis script to analyze the target stress test data in the data file , to obtain the stress test data related to the performance and stability of the storage system required by the staff. Wherein, the stress test data corresponds to the above-mentioned target stress test data, and may include various related data such as CPU idle rate, memory usage, network transmission speed, hard disk read and write speed, single hard disk resource usage, and cluster overall performance data.

优选的,上述通过数据解析脚本在数据文件中对目标压力测试数据进行解析,获得压力测试数据可以包括:通过Linux的文本解析工具对目标压力数据进行解析,获得压力测试数据。Preferably, analyzing the target stress test data in the data file through the data analysis script and obtaining the stress test data may include: analyzing the target stress data through a Linux text analysis tool to obtain the stress test data.

具体的,在对目标压力测试数据进行解析时,可通过Linux自带的文本解析工具对目标压力测试数据进行定制解析,按照固定格式解析获得与存储系统性能及稳定性相关的各类数据,即压力测试数据。Linux的文本解析工具具备多功能高效率的性能特点,可以用来对数据进行读取、计算、排序以及生成报表等处理,更加便于实现对压力测试数据的分析以及生成相应的报告。Specifically, when analyzing the target stress test data, the target stress test data can be customized and analyzed through the text analysis tool that comes with Linux, and various data related to the performance and stability of the storage system can be obtained by parsing in a fixed format, namely Stress test data. The text analysis tool of Linux has multi-functional and high-efficiency performance characteristics, and can be used to read, calculate, sort and generate reports for data, making it easier to analyze stress test data and generate corresponding reports.

本申请所提供的存储设备中压力测试数据的获取方法,使得工作人员在采集CEPH集群数据、分析性能和稳定性的时候,可以脱离人为参与的需求,有效的避免了因人为参与而造成的统计误差,可更为准确的获得与存储系统性能、稳定性相关的数据;同时,由于脱离了人为参与的需求,可有效的减轻开发、测试人员的工作量和工作压力,进一步降低人力成本的消耗,从而提升整体的工作效率。The method for obtaining stress test data in the storage device provided by this application enables the staff to get rid of the need for human participation when collecting CEPH cluster data, analyzing performance and stability, and effectively avoids statistics caused by human participation. error, can obtain data related to the performance and stability of the storage system more accurately; at the same time, because it is separated from the need for human participation, it can effectively reduce the workload and work pressure of development and testing personnel, and further reduce the consumption of labor costs , so as to improve the overall work efficiency.

在上述实施例的基础上,请参考图2,图2为本申请所提供的另一种存储设备中压力测试数据的获取方法的流程示意图。On the basis of the above embodiments, please refer to FIG. 2 , which is a schematic flowchart of another method for acquiring stress test data in a storage device provided by the present application.

作为一种优选实施实例,如图2中步骤S104至步骤S105所示,该存储设备中压力测试数据的获取方法还可以包括:As a preferred implementation example, as shown in steps S104 to S105 in Figure 2, the method for obtaining stress test data in the storage device may also include:

S104:将压力测试数据保存至txt文件;S104: saving the stress test data to a txt file;

S105:将txt文件中的压力测试数据导入至EXCEL文件中。S105: Import the stress test data in the txt file into an EXCEL file.

具体的,在自动解析获得所需的压力测试数据后,还可将其保存至txt文件,并进一步由txt文件导入至EXCEL文件中,即可获得一份测试报告所需的数据,工作人员即可根据该测试报告更加简单直观的确定存储系统的各类相关性能及其稳定性。Specifically, after automatically analyzing and obtaining the required stress test data, it can also be saved to a txt file, and further imported from the txt file into an EXCEL file to obtain the data required for a test report. According to the test report, various related performances and stability of the storage system can be determined more simply and intuitively.

为解决上述问题,请参考图3,图3为本申请所提供的一种存储设备中压力测试数据的获取装置的示意图,该获取装置可以包括:In order to solve the above problem, please refer to FIG. 3, which is a schematic diagram of an acquisition device for stress test data in a storage device provided by the present application. The acquisition device may include:

采集模块10,用于通过数据采集脚本定时从存储设备中采集目标压力测试数据;The collection module 10 is used to regularly collect target stress test data from the storage device through the data collection script;

保存模块20,用于将目标压力测试数据保存至数据文件中;Preservation module 20, is used for preserving target pressure test data in the data file;

解析模块30,用于通过数据解析脚本在数据文件中对目标压力测试数据进行解析,获得压力测试数据。The parsing module 30 is configured to parse the target stress test data in the data file through the data parsing script to obtain the stress test data.

作为一种优选实施例,上述采集模块10可以包括:As a preferred embodiment, the above acquisition module 10 may include:

脚本运行子模块,用于在存储设备的存储节点上通过任务定时运行机制运行数据采集脚本;The script running sub-module is used to run the data collection script through the task timing running mechanism on the storage node of the storage device;

数据采集子模块,用于利用数据采集脚本采集目标压力测试数据。The data collection sub-module is used to collect the target stress test data by using the data collection script.

作为一种优选实施例,上述解析模块30可以包括:As a preferred embodiment, the above parsing module 30 may include:

数据解析子模块,用于通过Linux的文本解析工具对目标压力数据进行解析,获得压力测试数据。The data analysis sub-module is used to analyze the target pressure data through the text analysis tool of Linux to obtain the pressure test data.

作为一种优选实施例,该获取装置还可以包括:As a preferred embodiment, the acquisition device may also include:

数据保存模块,用于将压力测试数据保存至txt文件;Data saving module, used to save stress test data to txt file;

数据导入模块,用于将txt文件中的压力测试数据导入至EXCEL文件中。The data import module is used to import the stress test data in the txt file into the EXCEL file.

对于本申请提供的装置的介绍请参照上述方法实施例,本申请在此不做赘述。For the introduction of the device provided in this application, please refer to the above method embodiment, and this application will not repeat it here.

为解决上述问题,请参考图4,图4为本申请所提供的一种存储设备中压力测试数据的获取系统的示意图,该获取系统可以包括:In order to solve the above problems, please refer to FIG. 4, which is a schematic diagram of a system for acquiring stress test data in a storage device provided by the present application. The acquisition system may include:

存储器10,用于存储计算机程序;memory 10 for storing computer programs;

处理器20,用于执行上述存储器10存储的计算机程序时可实现如下步骤:When the processor 20 is used to execute the computer program stored in the memory 10, the following steps can be implemented:

通过数据采集脚本定时从存储设备中采集目标压力测试数据;将目标压力测试数据保存至数据文件中;通过数据解析脚本在数据文件中对目标压力测试数据进行解析,获得压力测试数据。The target stress test data is regularly collected from the storage device through the data collection script; the target stress test data is saved in the data file; the target stress test data is analyzed in the data file through the data analysis script to obtain the stress test data.

对于本申请提供的系统的介绍请参照上述方法实施例,本申请在此不做赘述。For the introduction of the system provided by this application, please refer to the above method embodiment, and this application will not repeat it here.

为解决上述问题,本申请还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时可实现如下步骤:In order to solve the above problems, the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the following steps can be realized:

通过数据采集脚本定时从存储设备中采集目标压力测试数据;将目标压力测试数据保存至数据文件中;通过数据解析脚本在数据文件中对目标压力测试数据进行解析,获得压力测试数据。The target stress test data is regularly collected from the storage device through the data collection script; the target stress test data is saved in the data file; the target stress test data is analyzed in the data file through the data analysis script to obtain the stress test data.

该计算机可读存储介质可以包括:U盘、移动硬盘、只读存储器(Read-OnlyMemory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The computer-readable storage medium may include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc., which can store program codes. medium.

对于本申请提供的计算机可读存储介质的介绍请参照上述方法实施例,本申请在此不做赘述。For the introduction of the computer-readable storage medium provided by the present application, please refer to the foregoing method embodiments, and the present application does not repeat it here.

说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。Each embodiment in the description is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and for the related information, please refer to the description of the method part.

专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Professionals can further realize that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software or a combination of the two. In order to clearly illustrate the possible For interchangeability, in the above description, the composition and steps of each example have been generally described according to their functions. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.

结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of the methods or algorithms described in connection with the embodiments disclosed herein may be directly implemented by hardware, software modules executed by a processor, or a combination of both. Software modules can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other Any other known storage medium.

以上对本申请所提供的存储设备中压力测试数据的获取方法、装置、系统及计算机可读存储介质进行了详细介绍。本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以对本申请进行若干改进和修饰,这些改进和修饰也落入本申请权利要求的保护范围要素。The method, device, system, and computer-readable storage medium for acquiring stress test data in a storage device provided by the present application have been described in detail above. In this paper, specific examples are used to illustrate the principles and implementation methods of the present application, and the descriptions of the above embodiments are only used to help understand the methods and core ideas of the present application. It should be pointed out that for those skilled in the art, without departing from the principles of the application, some improvements and modifications can be made to the application, and these improvements and modifications also fall within the protection scope of the claims of the application.

Claims (10)

1.一种存储设备中压力测试数据的获取方法,其特征在于,包括:1. A method for obtaining stress test data in a storage device, comprising: 通过数据采集脚本定时从存储设备中采集目标压力测试数据;Collect the target stress test data from the storage device regularly through the data collection script; 将所述目标压力测试数据保存至数据文件中;Save the target stress test data into a data file; 通过数据解析脚本在所述数据文件中对所述目标压力测试数据进行解析,获得压力测试数据。Analyzing the target stress test data in the data file through a data parsing script to obtain stress test data. 2.如权利要求1所述的获取方法,其特征在于,所述通过数据采集脚本定时从存储设备中采集目标压力测试数据,包括:2. The acquisition method according to claim 1, wherein said collecting target stress test data from a storage device at regular intervals through a data collection script comprises: 在所述存储设备的存储节点上通过任务定时运行机制运行所述数据采集脚本;Running the data collection script through a task timing running mechanism on the storage node of the storage device; 利用所述数据采集脚本采集所述目标压力测试数据。The target stress test data is collected by using the data collection script. 3.如权利要求2所述的获取方法,其特征在于,所述数据采集脚本包括:top命令,free命令,dstst命令,iostat命令以及ceph–s命令。3. The acquisition method according to claim 2, wherein the data collection script comprises: top command, free command, dstst command, iostat command and ceph-s command. 4.如权利要求1所述的方法,其特征在于,所述通过数据解析脚本在所述数据文件中对所述目标压力测试数据进行解析,获得压力测试数据包括:4. The method according to claim 1, wherein the analyzing the target stress test data in the data file through the data parsing script, and obtaining the stress test data comprises: 通过Linux的文本解析工具对所述目标压力数据进行解析,获得所述压力测试数据。The target pressure data is analyzed by a text analysis tool of Linux to obtain the stress test data. 5.如权利要求4所述的获取方法,其特征在于,还包括:5. The acquisition method according to claim 4, further comprising: 将所述压力测试数据保存至txt文件;Save the stress test data to a txt file; 将所述txt文件中的所述压力测试数据导入至EXCEL文件中。Import the stress test data in the txt file into an EXCEL file. 6.一种存储设备中压力测试数据的获取装置,其特征在于,包括:6. An acquisition device for stress test data in a storage device, characterized in that it comprises: 采集模块,用于通过数据采集脚本定时从存储设备中采集目标压力测试数据;The collection module is used to regularly collect target stress test data from the storage device through the data collection script; 保存模块,用于将所述目标压力测试数据保存至数据文件中;A saving module, configured to save the target stress test data into a data file; 解析模块,用于通过数据解析脚本在所述数据文件中对所述目标压力测试数据进行解析,获得压力测试数据。The parsing module is configured to parse the target stress test data in the data file through a data parsing script to obtain stress test data. 7.如权利要求6所述的获取装置,其特征在于,所述采集模块包括:7. The acquisition device according to claim 6, wherein the acquisition module comprises: 脚本运行子模块,用于在所述存储设备的存储节点上通过任务定时运行机制运行所述数据采集脚本;A script running submodule, configured to run the data collection script on the storage node of the storage device through a task timing running mechanism; 数据采集子模块,用于利用所述数据采集脚本采集所述目标压力测试数据。The data collection sub-module is configured to use the data collection script to collect the target stress test data. 8.如权利要求6所述的获取装置,其特征在于,还包括:8. The acquisition device according to claim 6, further comprising: 数据保存模块,用于将所述压力测试数据保存至txt文件;A data saving module, configured to save the stress test data to a txt file; 数据导入模块,用于将所述txt文件中的所述压力测试数据导入至EXCEL文件中。A data import module, configured to import the stress test data in the txt file into an EXCEL file. 9.一种存储设备中压力测试数据的获取系统,其特征在于,包括:9. A system for acquiring stress test data in a storage device, comprising: 存储器,用于存储计算机程序;memory for storing computer programs; 处理器,用于执行所述计算机程序时实现如权利要求1至5任意一项所述的存储设备中压力测试数据的获取方法的步骤。The processor is configured to implement the steps of the method for acquiring stress test data in the storage device according to any one of claims 1 to 5 when executing the computer program. 10.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至5任意一项所述的存储设备中压力测试数据的获取方法的步骤。10. A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by the processor, the computer program according to any one of claims 1 to 5 is implemented. The steps of the method for obtaining the stress test data in the storage device.
CN201810523393.2A 2018-05-28 2018-05-28 Acquisition methods, the apparatus and system of pressure testing data in a kind of storage device Pending CN108763043A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810523393.2A CN108763043A (en) 2018-05-28 2018-05-28 Acquisition methods, the apparatus and system of pressure testing data in a kind of storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810523393.2A CN108763043A (en) 2018-05-28 2018-05-28 Acquisition methods, the apparatus and system of pressure testing data in a kind of storage device

Publications (1)

Publication Number Publication Date
CN108763043A true CN108763043A (en) 2018-11-06

Family

ID=64002994

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810523393.2A Pending CN108763043A (en) 2018-05-28 2018-05-28 Acquisition methods, the apparatus and system of pressure testing data in a kind of storage device

Country Status (1)

Country Link
CN (1) CN108763043A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109597581A (en) * 2018-12-03 2019-04-09 郑州云海信息技术有限公司 A kind of automatic real-time collecting method of storage performance data and system
CN114860617A (en) * 2022-07-06 2022-08-05 上海金仕达软件科技有限公司 Intelligent pressure testing method and system
CN117194155A (en) * 2023-09-05 2023-12-08 北京安锐卓越信息技术股份有限公司 Automatic performance pressure measurement method, device and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101364891A (en) * 2007-08-10 2009-02-11 中兴通讯股份有限公司 System for collecting performance data by single point in distributed telecommunication network management and implementing method
US20110041122A1 (en) * 2009-08-17 2011-02-17 Siemens Corporation Automatic identification of execution phases in load tests
CN105279071A (en) * 2015-10-28 2016-01-27 浪潮(北京)电子信息产业有限公司 A virtual machine performance data collection method, system and cloud computing platform
CN105760281A (en) * 2016-03-01 2016-07-13 浪潮软件集团有限公司 Method for monitoring and analyzing performance data of Linux system server
CN106326067A (en) * 2016-08-05 2017-01-11 浪潮电子信息产业股份有限公司 Method and device for monitoring CPU (central processing unit) performance under pressure test

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101364891A (en) * 2007-08-10 2009-02-11 中兴通讯股份有限公司 System for collecting performance data by single point in distributed telecommunication network management and implementing method
US20110041122A1 (en) * 2009-08-17 2011-02-17 Siemens Corporation Automatic identification of execution phases in load tests
CN105279071A (en) * 2015-10-28 2016-01-27 浪潮(北京)电子信息产业有限公司 A virtual machine performance data collection method, system and cloud computing platform
CN105760281A (en) * 2016-03-01 2016-07-13 浪潮软件集团有限公司 Method for monitoring and analyzing performance data of Linux system server
CN106326067A (en) * 2016-08-05 2017-01-11 浪潮电子信息产业股份有限公司 Method and device for monitoring CPU (central processing unit) performance under pressure test

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109597581A (en) * 2018-12-03 2019-04-09 郑州云海信息技术有限公司 A kind of automatic real-time collecting method of storage performance data and system
CN114860617A (en) * 2022-07-06 2022-08-05 上海金仕达软件科技有限公司 Intelligent pressure testing method and system
CN114860617B (en) * 2022-07-06 2022-09-30 上海金仕达软件科技有限公司 Intelligent pressure testing method and system
CN117194155A (en) * 2023-09-05 2023-12-08 北京安锐卓越信息技术股份有限公司 Automatic performance pressure measurement method, device and medium

Similar Documents

Publication Publication Date Title
US9367601B2 (en) Cost-based optimization of configuration parameters and cluster sizing for hadoop
WO2019153487A1 (en) System performance measurement method and device, storage medium and server
CN111563014A (en) Interface service performance test method, device, equipment and storage medium
CN106850321A (en) A kind of simulated testing system of cluster server
CN110704484A (en) Method and system for processing mass real-time data stream
US20230376397A1 (en) Method and System for Determining Interval Time for Testing of Server, and Device and Medium
CN108763043A (en) Acquisition methods, the apparatus and system of pressure testing data in a kind of storage device
CN103257923B (en) The application choosing method of data center's data analysis class benchmark and system
CN110377519A (en) Performance capability test method, device, equipment and the storage medium of big data system
CN113760677A (en) Abnormal link analysis method, device, equipment and storage medium
CN107220121A (en) Sandbox environment method of testing and its system under a kind of NUMA architecture
CN103645961A (en) Anomaly detection method and system for calculating intensive parallel tasks
CN105700998A (en) Method and device for monitoring and analyzing performance of parallel programs
Ouyang et al. An approach for modeling and ranking node-level stragglers in cloud datacenters
CN118819988A (en) Server performance testing method, device, equipment and non-volatile storage medium
CN110019045A (en) Method and device is landed in log
CN108108289A (en) A kind of cluster resource statistical method, system, device and readable storage system
Kaur et al. Performance analysis in bigdata
Qi et al. Data mining based root-cause analysis of performance bottleneck for big data workload
Zhou et al. A runtime verification based trace-oriented monitoring framework for cloud systems
CN106470242B (en) A fast quantitative grading method for large-scale heterogeneous cluster nodes in cloud data centers
Hasanpuri et al. Comparative analysis of techniques for big-data performance testing
CN114416441A (en) Real-time database automatic testing method and system, electronic equipment and storage medium
CN116069618A (en) Application scene-oriented domestic system evaluation method
Guo et al. Learning-based characterizing and modeling performance bottlenecks of big data workloads

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181106