WO2021052220A1 - Cloud storage interface test method and apparatus - Google Patents
Cloud storage interface test method and apparatus Download PDFInfo
- Publication number
- WO2021052220A1 WO2021052220A1 PCT/CN2020/114050 CN2020114050W WO2021052220A1 WO 2021052220 A1 WO2021052220 A1 WO 2021052220A1 CN 2020114050 W CN2020114050 W CN 2020114050W WO 2021052220 A1 WO2021052220 A1 WO 2021052220A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- file
- time
- cloud storage
- storage
- operations
- Prior art date
Links
- 238000010998 test method Methods 0.000 title abstract 2
- 238000012360 testing method Methods 0.000 claims abstract description 105
- 238000000034 method Methods 0.000 claims abstract description 29
- 238000004590 computer program Methods 0.000 claims description 7
- 238000012217 deletion Methods 0.000 abstract description 13
- 230000037430 deletion Effects 0.000 abstract description 13
- 238000004891 communication Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000001568 sexual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording 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/3409—Recording 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 for performance assessment
- G06F11/3414—Workload generation, e.g. scripts, playback
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording 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/3409—Recording 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 for performance assessment
- G06F11/3419—Recording 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 for performance assessment by assessing time
Definitions
- the embodiments of the present application relate to, but are not limited to, the field of testing, and particularly refer to a method and device for testing cloud storage interfaces.
- the security system has now become an indispensable part of life. Whether it is residential communities, road monitoring, or more demanding intelligent security, etc., it has been widely used in life.
- the embodiments of the present application provide a method and device for testing a cloud storage interface.
- the embodiment of the application provides a method for testing a cloud storage interface, including: configuring a test item; wherein the test item includes: the storage mode of the cloud storage server, the address information of the cloud storage server, the number of threads, the operation, and the operation The number of files, as well as the operation block size, file path, and operation times corresponding to each file; among them, the operations include any one or more of the following: read, write, delete; start N threads, through N threads according to the configured cloud storage
- the storage mode of the server and the address information of the cloud storage server access the interface of the cloud storage server to open the i-th file corresponding to the configured i-th file path, and perform P i operations on the i-th file; where N is the configuration
- the number of threads, i is an integer from 1 to M
- M is the number of configured files
- P i is the number of operations corresponding to the configured i-th file
- the block size of each i-th file is the configured i-th file Cor
- An embodiment of the application provides a device for testing a cloud storage interface, including a processor and a computer-readable storage medium.
- the computer-readable storage medium stores instructions. When the instructions are executed by the processor, Any of the above methods for testing cloud storage interfaces.
- the embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of any one of the foregoing methods for testing a cloud storage interface are implemented.
- the embodiment of the present application provides a device for testing a cloud storage interface, including: a configuration module for configuring test items; wherein the test items include: the storage mode of the cloud storage server, the address information of the cloud storage server, and the number of threads , Operation, the number of files to be operated, and the corresponding operation block size, file path and operation times of each file; among them, the operation includes any one or more of the following: read, write, delete; test module, used to start N threads , Through N threads to access the interface of the cloud storage server according to the storage mode of the configured cloud storage server and the address information of the cloud storage server, to open the i-th file corresponding to the configured i-th file path, and perform processing on the i-th file P i operations; where N is the number of threads configured, i is an integer from 1 to M, M is the number of files configured, and P i is the number of operations corresponding to the i-th file configured; each operation of the i-th file
- the block size of
- FIG. 1 is a flowchart of a method for testing a cloud storage interface proposed by an embodiment of this application;
- Example 2 is a flowchart of a method for testing a cloud storage interface proposed in Example 1 of an embodiment of the application;
- Example 3 is a flowchart of a method for testing a cloud storage interface proposed in Example 2 of an embodiment of the application;
- Example 4 is a flowchart of a method for testing a cloud storage interface proposed in Example 3 of an embodiment of the application;
- FIG. 5 is a schematic diagram of the structural composition of an apparatus for testing a cloud storage interface proposed in another embodiment of the application.
- an embodiment of the present application proposes a method for testing a cloud storage interface, including:
- Step 100 Configure test items; where the test items include: the storage mode of the cloud storage server, the address information of the cloud storage server, the number of threads, the number of operations, the number of files to be operated, and the operation block size and file corresponding to each file Path and number of operations; among them, operations include any one or more of the following: read, write, and delete.
- test items include: the storage mode of the cloud storage server, the address information of the cloud storage server, the number of threads, the number of files read and read, and the read block size corresponding to each file, File path and number of reads;
- test items include: the storage mode of the cloud storage server, the address information of the cloud storage server, the number of threads, the number of files written and written, and the write block size, file path, and number of writes corresponding to each file ;
- test items include: the storage mode of the cloud storage server, the address information of the cloud storage server, the number of threads, the number of deleted and deleted files, and the deleted block size, file path and number of deletions corresponding to each file ;
- the test items include: the storage mode of the cloud storage server, the address information of the cloud storage server, the number of threads, the number of files read and read, and the read block size and file path corresponding to each read file And the number of reads; the number of files written and written, and the write block size, file path, and number of writes corresponding to each file written;
- test items include: the storage mode of the cloud storage server, the address information of the cloud storage server, the number of threads, the number of files read and read, and the read block size and file path corresponding to each read file And the number of reads; the number of deleted and deleted files, and the deleted block size, file path, and number of deletions corresponding to each deleted file;
- the test items include: the storage mode of the cloud storage server, the address information of the cloud storage server, the number of threads, the number of deleted and deleted files, and the deleted block size and file path corresponding to each deleted file And the number of deletions; the number of files written and written, and the write block size, file path and number of writes corresponding to each written file;
- the test items include: the storage mode of the cloud storage server, the address information of the cloud storage server, the number of threads, the number of files read, and the number of files read, and the read block size corresponding to each read file, File path and read times; the number of files written and written, and the write block size, file path, and write times corresponding to each written file; the number of deleted and deleted files, and the deleted block size corresponding to each deleted file, File path and number of deletions.
- the storage method may be a network file system (NFS, Network File System), a distributed file system (DFS, Distributed File System), a ZTE file system (ZXFS, ZTE File System), and the like. It depends on the cloud storage server.
- NFS Network File System
- DFS Distributed File System
- ZXFS ZTE File System
- test item is configured in a configuration file mode or the test item is configured in an interface configuration mode.
- Step 101 Start N threads, and access the interface of the cloud storage server according to the storage mode of the configured cloud storage server and the address information of the cloud storage server through the N threads to open the i-th file corresponding to the configured i-th file path of the i-th file P i operations; the number of operations where, N is the number of threads configuration, i is an integer from 1 to M, M is the number of file configuration, P i corresponds to the i-th file configuration; The block size of the i-th file for each operation is the operation block size corresponding to the configured i-th file.
- Step 102 Determine whether the cloud storage server meets a preset storage requirement according to the time of opening the i-th file and the time of each operation performed on the i-th file.
- the storage requirements may include: file opening time, operation time;
- storage requirements include: open file time, operation time, and any one or more of the following: average file open time, maximum file open time, minimum file open time, average operation time, maximum operation time, minimum operation time, and number of successes ,number of failures.
- the cloud storage server can be regarded as meeting the storage requirements. If at least one cloud storage server does not meet the storage requirements, the cloud storage server does not meet the storage requirements.
- the determining whether the cloud storage server meets a preset storage requirement according to the time of opening the i-th file and the time of each operation on the i-th file includes any one or more of the following:
- the time for opening the i-th file is less than or equal to the time for opening the file in the storage requirement
- the time for each operation on the i-th file is less than or equal to the operation time in the storage requirement
- the average time for opening M files is less than or equal to the average time for opening files in the storage requirements
- the maximum time for opening M files is less than or equal to the maximum time for opening files in the storage requirements
- the minimum time for opening M files is less than or equal to the minimum time for opening files in the storage requirements
- the average time for performing P operations on the i-th file is less than or equal to the average time for operations in the storage requirement
- the maximum time for performing P operations on the i-th file is less than or equal to the maximum operation time in the storage requirement
- the minimum time for performing P operations on the i-th file is less than or equal to the minimum operation time in the storage requirement
- the number of successful operations is greater than or equal to the number of successful operations in the storage requirements
- the number of operation failures is less than or equal to the number of failures in the storage requirements
- the time for opening the i-th file is greater than the time for opening the file in the storage requirement
- At least one operation time in the operation time of the i-th file is greater than the operation time in the storage requirement
- the average time for opening M files is greater than the average time for opening files in the storage requirements
- the maximum time for opening M files is greater than the maximum time for opening files in the storage requirements
- the minimum time for opening M files is greater than the minimum time for opening files in the storage requirements
- the average time for performing P operations on the i-th file is greater than the average time for operations in the storage requirement
- the maximum time for performing P operations on the i-th file is greater than the maximum operation time in the storage requirement
- the minimum time for performing P operations on the i-th file is greater than the minimum operation time in the storage requirement
- the number of successful operations is less than the number of successful operations in the storage requirement
- the number of operation failures is greater than the number of failures in the storage requirement.
- the method further includes:
- test result includes: whether the cloud storage server meets preset storage requirements, and any one or more of the following:
- the time to open the i-th file The time to open the i-th file, the time to perform each operation on the i-th file, the average time to open M files, the maximum time to open M files, the minimum time to open M files, the The average time for P operations on a file, the maximum time for P operations on the i-th file, the minimum time for P operations on the i-th file, the number of successful operations, the number of failed operations, and disk space acquisition Size time, time to delete the i-th file, time to search the field in the i-th file.
- test result is displayed in a file writing mode or the test result is displayed in an interface mode.
- the cloud storage server is tested for reading, writing, and deleting files by configuring the test items, so as to test the performance of the cloud storage interface, thereby obtaining whether the cloud storage server corresponding to the cloud storage interface meets the storage requirements.
- Including the storage mode of the cloud storage server and the address information of the cloud storage server, read and write tests on different cloud storage servers can be realized by modifying the storage mode of the cloud storage server and the address information of the cloud storage server.
- Step 201 Start a thread according to the test item, and access the interface of the cloud storage server according to the storage mode of the cloud storage server and the address information of the cloud storage server through the thread, to open the file in the configured file path, and read from the file For three blocks, the size of the block read each time is the configured read block size.
- Step 202 When the time to open the file is less than or equal to the file opening time in the storage requirements, and the time to read blocks from the file is less than or equal to the reading time in the storage requirements, determine that the cloud storage server meets the storage requirements; When the time of the file is greater than the opening time in the storage requirement, or the time to read the block from the file is greater than the reading time in the storage requirement at least once, it is determined that the cloud storage server does not meet the storage requirement.
- Step 203 Display the test result; where the test result includes: the time to open the file, the time to perform each operation on the file, and whether the cloud storage server meets the preset storage requirements.
- Step 301 Start two threads according to the test items, and access the interface of the cloud storage server according to the storage mode of the cloud storage server and the address information of the cloud storage server through these two threads, to open the file in the configured file path, from the file Read three blocks in the middle, and the size of the block read each time is the configured read block size.
- Step 302 When the time to open the file is less than or equal to the file opening time in the storage requirement, and the time to read the block from the file is less than or equal to the reading time in the storage requirement, it is determined that the cloud storage server meets the storage requirement; When the time of the file is greater than the opening time in the storage requirement, or the time to read the block from the file is greater than the reading time in the storage requirement at least once, it is determined that the cloud storage server does not meet the storage requirement.
- Step 303 Display the test results; where the test results include: the time to open the file, the time to perform each operation on the file, and whether the cloud storage server meets the preset storage requirements.
- the multi-thread and multi-file read operation test is performed, as shown in Figure 4, including:
- Step 401 Start 3 threads according to the test items, through these 3 threads, access the interface of the cloud storage server according to the storage mode of the cloud storage server and the address information of the cloud storage server to open the 2 files in the configured file path, from Three blocks are read in these two files, and the size of the block read each time is the configured read block size.
- Step 402 When the average time for opening two files is less than or equal to the average time for opening files in the storage requirements, and the average time for reading blocks from the two files is less than or equal to the average time for reading in the storage requirements, determine the cloud The storage server meets the storage requirements; when the average time to open 2 files is greater than the average time to open files in the storage requirements, or the average time to read blocks from 2 files is greater than the average time to read in the storage requirements at least once, determine The cloud storage server does not meet the storage requirements.
- Step 403 Display the test results; where the test results include: the average time to open two files, the average time to operate on the two files, and whether the cloud storage server meets the preset storage requirements.
- Another embodiment of the present application provides a device for testing a cloud storage interface, including a processor and a computer-readable storage medium, the computer-readable storage medium stores instructions, and when the instructions are executed by the processor , To implement any of the above-mentioned methods for testing cloud storage interfaces.
- Another embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of any one of the foregoing methods for testing a cloud storage interface are implemented.
- FIG. 5 another embodiment of the present application proposes a device for testing cloud storage interfaces, including:
- the configuration module 501 is used to configure test items; the test items include: the storage mode of the cloud storage server, the address information of the cloud storage server, the number of threads, the number of operations, the number of operating files, and the operations corresponding to each file Block size, file path and number of operations; among them, operations include any one or more of the following: read, write, delete;
- the test module 502 is used to start N threads, and access the interface of the cloud storage server through the N threads according to the storage mode of the configured cloud storage server and the address information of the cloud storage server, to open the configured i-th file path corresponding to the interface of the cloud storage server.
- i files, i-th file P i operations wherein, N is the number of threads configuration, i is an integer from 1 to M, M is the number of file configuration, P i corresponds to the i-th file configuration
- the number of operations; the block size of the i-th file for each operation is the operation block size corresponding to the i-th file configured;
- test items include: the storage mode of the cloud storage server, the address information of the cloud storage server, the number of threads, the number of files read and read, and the read block size corresponding to each file, File path and number of reads;
- test items include: the storage mode of the cloud storage server, the address information of the cloud storage server, the number of threads, the number of files written and written, and the write block size, file path, and number of writes corresponding to each file ;
- test items include: the storage mode of the cloud storage server, the address information of the cloud storage server, the number of threads, the number of deleted and deleted files, and the deleted block size, file path and number of deletions corresponding to each file ;
- test items include: the storage mode of the cloud storage server, the address information of the cloud storage server, the number of threads, the number of files read and read, and the read block size and file path corresponding to each read file And the number of reads; the number of files written and written, and the write block size, file path and number of writes corresponding to each file written;
- test items include: the storage mode of the cloud storage server, the address information of the cloud storage server, the number of threads, the number of files read and read, and the read block size and file path corresponding to each read file And the number of reads; the number of deleted and deleted files, and the deleted block size, file path, and number of deletions corresponding to each deleted file;
- the test items include: the storage mode of the cloud storage server, the address information of the cloud storage server, the number of threads, the number of deleted and deleted files, and the deleted block size and file path corresponding to each deleted file And the number of deletions; the number of files written and written, and the write block size, file path and number of writes corresponding to each written file;
- the test items include: the storage mode of the cloud storage server, the address information of the cloud storage server, the number of threads, the number of files read, and the number of files read, and the read block size corresponding to each read file, File path and read times; the number of files written and written, and the write block size, file path, and write times corresponding to each written file; the number of deleted and deleted files, and the deleted block size corresponding to each deleted file, File path and number of deletions.
- the storage method may be a network file system (NFS, Network File System), a distributed file system (DFS, Distributed File System), a ZTE file system (ZXFS, ZTE File System), and the like. It depends on the cloud storage server.
- NFS Network File System
- DFS Distributed File System
- ZXFS ZTE File System
- the configuration module 501 configures the test item in a configuration file manner or configures the test item in an interface configuration manner.
- the storage requirements may include: file opening time, operation time;
- storage requirements include: open file time, operation time, and any one or more of the following: average file open time, maximum file open time, minimum file open time, average operation time, maximum operation time, minimum operation time, and number of successes ,number of failures.
- the cloud storage server can be regarded as meeting the storage requirements.
- the testing module 502 is specifically configured to use any one or more of the following methods to implement the determination of the cloud storage based on the time to open the i-th file and the time to perform each operation on the i-th file Whether the server meets the preset storage requirements:
- the time for opening the i-th file is less than or equal to the time for opening the file in the storage requirement
- the time for each operation on the i-th file is less than or equal to the operation time in the storage requirement
- the average time for opening M files is less than or equal to the average time for opening files in the storage requirements
- the maximum time for opening M files is less than or equal to the maximum time for opening files in the storage requirements
- the minimum time for opening M files is less than or equal to the minimum time for opening files in the storage requirements
- the average time for performing P operations on the i-th file is less than or equal to the average time for operations in the storage requirement
- the maximum time for performing P operations on the i-th file is less than or equal to the maximum operation time in the storage requirement
- the minimum time for performing P operations on the i-th file is less than or equal to the minimum operation time in the storage requirement
- the number of successful operations is greater than or equal to the number of successful operations in the storage requirements
- the number of operation failures is less than or equal to the number of failures in the storage requirements
- the time for opening the i-th file is greater than the time for opening the file in the storage requirement
- At least one operation time in the operation time of the i-th file is greater than the operation time in the storage requirement
- the average time for opening M files is greater than the average time for opening files in the storage requirements
- the maximum time for opening M files is greater than the maximum time for opening files in the storage requirements
- the minimum time for opening M files is greater than the minimum time for opening files in the storage requirements
- the average time for performing P operations on the i-th file is greater than the average time for operations in the storage requirement
- the maximum time for performing P operations on the i-th file is greater than the maximum operation time in the storage requirement
- the minimum time for performing P operations on the i-th file is greater than the minimum operation time in the storage requirement
- the number of successful operations is less than the number of successful operations in the storage requirement
- the number of operation failures is greater than the number of failures in the storage requirement.
- the result display module 503 is used to display the test result
- test result includes: whether the cloud storage server meets preset storage requirements, and any one or more of the following:
- the time to open the i-th file The time to open the i-th file, the time to perform each operation on the i-th file, the average time to open M files, the maximum time to open M files, the minimum time to open M files, the The average time for P operations on a file, the maximum time for P operations on the i-th file, the minimum time for P operations on the i-th file, the number of successful operations, the number of failed operations, and disk space acquisition Size time, time to delete the i-th file, time to search the field in the i-th file.
- the result display module 503 displays the test result in a file-writing manner or displays the test result in an interface manner.
- the configuration module 501 and the test module 502, and the test module 502 and the result display module 503 can communicate in a message queue, or Socket, or shared memory, etc., of course, can also communicate in other ways.
- the embodiment of the present application does not limit the communication mode between the configuration module 501 and the test module 502, and between the test module 502 and the result display module 503.
- the embodiment of the application performs a file read and write test on the cloud storage server by configuring the test items to test the performance of the cloud storage interface, thereby obtaining whether the cloud storage server corresponding to the cloud storage interface meets the storage requirements, because the test items include The storage mode of the cloud storage server and the address information of the cloud storage server are modified. Read and write tests on different cloud storage servers can be realized by modifying the storage mode of the cloud storage server and the address information of the cloud storage server.
- Such software may be distributed on a computer-readable medium, and the computer-readable medium may include a computer storage medium (or a non-transitory medium) and a communication medium (or a transitory medium).
- the term computer storage medium includes volatile and non-volatile data implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Sexual, removable and non-removable media.
- Computer storage media include but are not limited to RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or Any other medium used to store desired information and that can be accessed by a computer.
- communication media usually contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as carrier waves or other transmission mechanisms, and may include any information delivery media. .
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
Claims (8)
- 一种测试云存储接口的方法,包括:A method for testing cloud storage interfaces, including:配置测试项;其中,所述测试项包括:云存储服务器的存储方式、云存储服务器的地址信息、线程数目、操作、操作的文件数目、以及每一个文件对应的操作块大小、文件路径和操作次数;其中,操作包括以下任意一个或多个:读、写、删;Configuration test items; wherein, the test items include: the storage mode of the cloud storage server, the address information of the cloud storage server, the number of threads, the number of operations, the number of files to be operated, and the operation block size, file path, and operation corresponding to each file Times; among them, the operation includes any one or more of the following: read, write, delete;启动N个线程,通过N个线程根据配置的云存储服务器的存储方式和云存储服务器的地址信息访问云存储服务器的接口,以打开配置的第i个文件路径对应的第i个文件,对第i个文件进行P i次操作;其中,N为配置的线程数目,i为1到M的整数,M为配置的文件数目,P i为配置的第i个文件对应的操作次数;每一次操作第i个文件的块大小为配置的第i个文件对应的操作块大小; Start N threads, and access the interface of the cloud storage server according to the storage mode of the configured cloud storage server and the address information of the cloud storage server through the N threads to open the i-th file corresponding to the configured i-th file path. the i-th file P i operations; wherein, N is the number of threads configuration, i is an integer from 1 to M, M being the number of file configuration, P i is the i-th file configuration corresponding to the number of operations; each operation The block size of the i-th file is the operation block size corresponding to the configured i-th file;根据打开第i个文件的时间和对第i个文件进行每一次操作的时间确定所述云存储服务器是否满足预先设置的存储要求。Determine whether the cloud storage server meets the preset storage requirement according to the time of opening the i-th file and the time of each operation performed on the i-th file.
- 根据权利要求1所述的方法,其中,该方法还包括:The method according to claim 1, wherein the method further comprises:展示测试结果;Show test results;其中,所述测试结果包括所述云存储服务器是否满足预先设置的存储要求,以及以下任意一个或多个:Wherein, the test result includes whether the cloud storage server meets preset storage requirements, and any one or more of the following:打开第i个文件的时间、对第i个文件进行每一次操作的时间、打开M个文件的平均时间、打开M个文件的最大时间、打开M个文件的最小时间、对所述第i个文件进行P次操作的平均时间、对所述第i个文件进行P次操作的最大时间、对所述第i个文件进行P次操作的最小时间、操作成功次数、操作失败次数、获取磁盘空间大小时间、删除第i个文件的时间、在第i个文件中搜索字段的时间。The time to open the i-th file, the time to perform each operation on the i-th file, the average time to open M files, the maximum time to open M files, the minimum time to open M files, the The average time for P operations on a file, the maximum time for P operations on the i-th file, the minimum time for P operations on the i-th file, the number of successful operations, the number of failed operations, and disk space acquisition Size time, time to delete the i-th file, time to search the field in the i-th file.
- 根据权利要求2所述的方法,其中,所述展示测试结果包括:以写文件方式展示所述测试结果或以界面方式展示所述测试结果。The method according to claim 2, wherein the displaying the test result comprises: displaying the test result in a file-writing manner or displaying the test result in an interface manner.
- 根据权利要求1~3任一项所述的方法,其中,所述配置测试项包括: 以配置文件方式配置所述测试项或以界面配置方式配置所述测试项。The method according to any one of claims 1 to 3, wherein the configuring the test item comprises: configuring the test item in a configuration file mode or configuring the test item in an interface configuration mode.
- 根据权利要求1~3任一项所述的方法,其中,所述根据打开第i个文件的时间和对第i个文件进行每一次操作的时间确定所述云存储服务器是否满足预先设置的存储要求包括以下任意一个或多个:The method according to any one of claims 1 to 3, wherein the determining whether the cloud storage server meets the preset storage requirements is determined based on the time of opening the i-th file and the time of each operation on the i-th file. The requirements include any one or more of the following:当满足以下任意一个或多个时,确定所述云存储服务器满足所述存储要求:When any one or more of the following is met, it is determined that the cloud storage server meets the storage requirement:打开所述第i个文件的时间小于或等于所述存储要求中的打开文件时间;The time for opening the i-th file is less than or equal to the time for opening the file in the storage requirement;对所述第i个文件进行每一次操作的时间均小于或等于所述存储要求中的操作时间;The time for each operation on the i-th file is less than or equal to the operation time in the storage requirement;打开M个文件的平均时间小于或等于所述存储要求中的打开文件平均时间;The average time for opening M files is less than or equal to the average time for opening files in the storage requirements;打开M个文件的最大时间小于或等于所述存储要求中的打开文件最大时间;The maximum time for opening M files is less than or equal to the maximum time for opening files in the storage requirements;打开M个文件的最小时间小于或等于所述存储要求中的打开文件最小时间;The minimum time for opening M files is less than or equal to the minimum time for opening files in the storage requirements;对所述第i个文件进行P次操作的平均时间小于或等于所述存储要求中的操作平均时间;The average time for performing P operations on the i-th file is less than or equal to the average time for operations in the storage requirement;对所述第i个文件进行P次操作的最大时间小于或等于所述存储要求中的操作最大时间;The maximum time for performing P operations on the i-th file is less than or equal to the maximum operation time in the storage requirement;对所述第i个文件进行P次操作的最小时间小于或等于所述存储要求中的操作最小时间;The minimum time for performing P operations on the i-th file is less than or equal to the minimum operation time in the storage requirement;操作成功次数大于或等于所述存储要求中的成功次数;The number of successful operations is greater than or equal to the number of successful operations in the storage requirements;操作失败次数小于或等于所述存储要求中的失败次数;The number of operation failures is less than or equal to the number of failures in the storage requirements;当满足以下任意一个或多个时,确定所述云存储服务器不满足所述存储要求:When any one or more of the following are met, it is determined that the cloud storage server does not meet the storage requirements:打开所述第i个文件的时间大于所述存储要求中的打开文件时间;The time for opening the i-th file is greater than the time for opening the file in the storage requirement;对所述第i个文件进行操作的时间中至少有一次操作的时间大于所述存 储要求中的操作时间;At least one operation time in the operation time of the i-th file is greater than the operation time in the storage requirement;打开M个文件的平均时间大于所述存储要求中的打开文件平均时间;The average time for opening M files is greater than the average time for opening files in the storage requirements;打开M个文件的最大时间大于所述存储要求中的打开文件最大时间;The maximum time for opening M files is greater than the maximum time for opening files in the storage requirements;打开M个文件的最小时间大于所述存储要求中的打开文件最小时间;The minimum time for opening M files is greater than the minimum time for opening files in the storage requirements;对所述第i个文件进行P次操作的平均时间大于所述存储要求中的操作平均时间;The average time for performing P operations on the i-th file is greater than the average time for operations in the storage requirement;对所述第i个文件进行P次操作的最大时间大于所述存储要求中的操作最大时间;The maximum time for performing P operations on the i-th file is greater than the maximum operation time in the storage requirement;对所述第i个文件进行P次操作的最小时间大于所述存储要求中的操作最小时间;The minimum time for performing P operations on the i-th file is greater than the minimum operation time in the storage requirement;操作成功次数小于所述存储要求中的成功次数;The number of successful operations is less than the number of successful operations in the storage requirement;操作失败次数大于所述存储要求中的失败次数。The number of operation failures is greater than the number of failures in the storage requirement.
- 一种测试云存储接口的装置,包括处理器和计算机可读存储介质,所述计算机可读存储介质中存储有指令,其中,当所述指令被所述处理器执行时,实现如权利要求1~5任一项所述的测试云存储接口的方法。A device for testing a cloud storage interface, comprising a processor and a computer-readable storage medium, the computer-readable storage medium stores instructions, wherein, when the instructions are executed by the processor, the implementation is as in claim 1. ~ Any one of the methods for testing cloud storage interfaces.
- 一种计算机可读存储介质,其上存储有计算机程序,其中,所述计算机程序被处理器执行时实现如权利要求1~5任一项所述的测试云存储接口的方法的步骤。A computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the method for testing a cloud storage interface according to any one of claims 1 to 5 when the computer program is executed by a processor.
- 一种测试云存储接口的装置,包括:A device for testing cloud storage interfaces, including:配置模块,用于配置测试项;其中,所述测试项包括:云存储服务器的存储方式、云存储服务器的地址信息、线程数目、操作、操作的文件数目、以及每一个文件对应的操作块大小、文件路径和操作次数;其中,操作包括以下任意一个或多个:读、写、删;The configuration module is used to configure test items; wherein, the test items include: storage mode of the cloud storage server, address information of the cloud storage server, number of threads, operations, number of files to be operated, and the size of the operation block corresponding to each file , File path and number of operations; among them, operations include any one or more of the following: read, write, delete;测试模块,用于启动N个线程,通过N个线程根据配置的云存储服务器的存储方式和云存储服务器的地址信息访问云存储服务器的接口,以打开配置的第i个文件路径对应的第i个文件,对第i个文件进行P i次操作;其中,N为配置的线程数目,i为1到M的整数,M为配置的文件数目,P i为配置 的第i个文件对应的操作次数;每一次操作第i个文件的块大小为配置的第i个文件对应的操作块大小; The test module is used to start N threads, and access the interface of the cloud storage server according to the storage mode of the configured cloud storage server and the address information of the cloud storage server through the N threads to open the i-th file path corresponding to the configured i-th file path files, i-th file P i operations; wherein, N is the number of threads configuration, i is an integer from 1 to M, M is the number of file configuration, P i corresponds to the i-th file configuration operation Number of times; the block size of each i-th file operation is the operation block size corresponding to the i-th file configured;根据打开第i个文件的时间和对第i个文件进行每一次操作的时间确定所述云存储服务器是否满足预先设置的存储要求。Determine whether the cloud storage server meets the preset storage requirement according to the time of opening the i-th file and the time of each operation performed on the i-th file.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910894317.7A CN112540901A (en) | 2019-09-20 | 2019-09-20 | Method and device for testing cloud storage interface |
CN201910894317.7 | 2019-09-20 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021052220A1 true WO2021052220A1 (en) | 2021-03-25 |
Family
ID=74883881
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/114050 WO2021052220A1 (en) | 2019-09-20 | 2020-09-08 | Cloud storage interface test method and apparatus |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN112540901A (en) |
WO (1) | WO2021052220A1 (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140068340A1 (en) * | 2012-09-03 | 2014-03-06 | Tata Consultancy Services Limited | Method and System for Compliance Testing in a Cloud Storage Environment |
CN103684921A (en) * | 2013-12-18 | 2014-03-26 | 创新科存储技术有限公司 | Testing method and system for cloud storage system |
CN107682213A (en) * | 2017-11-16 | 2018-02-09 | 郑州云海信息技术有限公司 | A kind of system for assessing cloud storage system performance |
CN107977296A (en) * | 2017-11-20 | 2018-05-01 | 郑州云海信息技术有限公司 | A kind of method, apparatus and medium of NAS storage system performance test |
-
2019
- 2019-09-20 CN CN201910894317.7A patent/CN112540901A/en active Pending
-
2020
- 2020-09-08 WO PCT/CN2020/114050 patent/WO2021052220A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140068340A1 (en) * | 2012-09-03 | 2014-03-06 | Tata Consultancy Services Limited | Method and System for Compliance Testing in a Cloud Storage Environment |
CN103684921A (en) * | 2013-12-18 | 2014-03-26 | 创新科存储技术有限公司 | Testing method and system for cloud storage system |
CN107682213A (en) * | 2017-11-16 | 2018-02-09 | 郑州云海信息技术有限公司 | A kind of system for assessing cloud storage system performance |
CN107977296A (en) * | 2017-11-20 | 2018-05-01 | 郑州云海信息技术有限公司 | A kind of method, apparatus and medium of NAS storage system performance test |
Non-Patent Citations (1)
Title |
---|
ZHOU XIAOPENG, ZHANG XIAO-FANG; ZHAO XIAO-NAN: "Research of Performance Evaluation of Cloud Storage", COMPUTER SCIENCE, vol. 41, no. 4, 1 April 2014 (2014-04-01), pages 190 - 194, XP055795365 * |
Also Published As
Publication number | Publication date |
---|---|
CN112540901A (en) | 2021-03-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8515911B1 (en) | Methods and apparatus for managing multiple point in time copies in a file system | |
US20140324945A1 (en) | Hydration and dehydration with placeholders | |
BR112015027040B1 (en) | Method, computing device and computer storage medium | |
US9305049B2 (en) | Addressing cross-allocated blocks in a file system | |
US9189493B2 (en) | Object file system | |
US10353867B1 (en) | Method and system for verifying files for garbage collection | |
WO2016000546A1 (en) | Method and device for checking influence of deletion of cache file, and mobile terminal | |
US8380958B2 (en) | Spatial extent migration for tiered storage architecture | |
US20170220288A1 (en) | Dynamically managing a table of contents | |
CN109804359A (en) | For the system and method by write back data to storage equipment | |
WO2019047901A1 (en) | Data depositing method | |
US8219858B2 (en) | Method for testing hard disks under an extensible firmware interface | |
CN107577549A (en) | It is a kind of to store the method for testing for deleting function again | |
US20150169668A1 (en) | Single Pass File System Repair With Copy On Write | |
US9442860B2 (en) | Providing record level sharing (RLS) to individual catalogs | |
US11176034B2 (en) | System and method for inline tiering of write data | |
WO2021052220A1 (en) | Cloud storage interface test method and apparatus | |
US9542120B2 (en) | Systems and methods for processing instructions while repairing and providing access to a copied volume of data | |
US9009430B2 (en) | Restoration of data from a backup storage volume | |
US20160062841A1 (en) | Database and data accessing method thereof | |
CN106611138B (en) | GHOST file security check method and device | |
CN111427756B (en) | Method, system, equipment and medium for carrying out mixed pressure test on single hard disk | |
CN114924914A (en) | Disk partition table information backup and recovery method and system | |
US11016684B1 (en) | System and method for managing data and metadata where respective backing block devices are accessed based on whether request indicator indicates the data or the metadata and accessing the backing block devices without file system when the request indicator is not included in request | |
US9298390B2 (en) | Systems and methods for copying data maintained in a dynamic storage volume and verifying the copied data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20865218 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20865218 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 22.02.2023) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20865218 Country of ref document: EP Kind code of ref document: A1 |