[go: up one dir, main page]

CN109101401A - A kind of distributed memory system byte-lock characteristic test method and device - Google Patents

A kind of distributed memory system byte-lock characteristic test method and device Download PDF

Info

Publication number
CN109101401A
CN109101401A CN201810956415.4A CN201810956415A CN109101401A CN 109101401 A CN109101401 A CN 109101401A CN 201810956415 A CN201810956415 A CN 201810956415A CN 109101401 A CN109101401 A CN 109101401A
Authority
CN
China
Prior art keywords
task
test
target
machine
script
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
CN201810956415.4A
Other languages
Chinese (zh)
Inventor
范义波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201810956415.4A priority Critical patent/CN109101401A/en
Publication of CN109101401A publication Critical patent/CN109101401A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3006Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3034Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a storage system, e.g. DASD based or network based
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3698Environments for analysis, debugging or testing of software

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Computer Hardware Design (AREA)
  • Debugging And Monitoring (AREA)

Abstract

本申请实施例公开了一种分布式存储系统字节锁特性测试方法和装置,该方法可以预先构建自动化测试框架,自动化测试框架包括自动化测试节点和任务机池,自动化测试节点上至少设置有任务队列,任务机池中包括多台任务机,通过自动化测试节点可以自动地读取任务队列中的目标任务;根据所述目标任务对应的自动化测试配置文件,从任务池中确定目标任务机,目标任务机包括多台任务机;从目标任务机上获取目标测试脚本,并执行该目标测试脚本,以完成所述分布式存储系统字节锁特性测试任务。通过自动构建自动化测试框架,进而自动化测试节点自动地进行分布式存储系统字节锁特性测试,可以提高测试效率,避免遗漏某些集群节点的测试,提高测试质量。

The embodiment of the present application discloses a method and device for testing byte lock characteristics of a distributed storage system. The method can pre-build an automated testing framework. The automated testing framework includes automated testing nodes and task machine pools. At least task machines are set on the automated testing nodes. The queue includes multiple task machines in the task machine pool, and the target task in the task queue can be automatically read through the automated test node; according to the automated test configuration file corresponding to the target task, the target task machine is determined from the task pool, and the target The task machine includes a plurality of task machines; the target test script is obtained from the target task machine, and the target test script is executed to complete the byte lock characteristic test task of the distributed storage system. By automatically building an automated test framework, and then automated test nodes automatically test the byte lock characteristics of the distributed storage system, the test efficiency can be improved, the test of some cluster nodes can be avoided, and the test quality can be improved.

Description

A kind of distributed memory system byte-lock characteristic test method and device
Technical field
This application involves testing fields, more particularly to a kind of distributed memory system byte-lock characteristic test method and dress It sets.
Background technique
In the big data operation epoch, the mass data that magnanimity application generates is mostly unstructured data, and the number of data volume Magnitude is other, with exponential type trend growth.The structure of conventional store is no longer satisfied magnanimity in terms of data transimission and storage The storage demand of data, for this purpose, distributed memory system comes into being.Especially distributed network file system (Network File System, abbreviation NFS), the problem of mass data storage has not only been solved perfectly, server itself can also be reduced and deposited The use for storing up space makes server preferably be applied to the application such as data processing, solves the problems, such as server application.
However, distributed memory system NFS is externally to provide service, Ke Nengcun by way of client or file protocol In a large number of users at the same time it is wished that access nfs server with to wherein file certain section of byte or a few sections of bytes edit, example Such as, party A-subscriber edits certain section of byte by process and saves edited this section of byte, if party B-subscriber passes through process Also editor is carried out to this section of byte and saves edited this section of byte, then, the editor that party A-subscriber does this section of byte will It loses.Therefore, when a user is when editing certain section of byte or a few sections of bytes by process, which be can use The modes such as application programming interface (Application Programming Interface, abbreviation API) to this section of byte or Several sections of bytes add byte-lock, and other users is avoided to edit also by process to this section of byte or several sections of bytes, and Guarantee that other users can edit other section of byte.Byte-lock whether add in position, byte-lock release after shape State whether correctly it is equal determine multiple users can ordered pair edited with section byte, and byte-lock characteristic is able to reflect byte-lock Whether plus whether state correct etc. in position, after byte-lock release, therefore, distributed memory system NFS byte-lock is special Property test be very necessary.
Traditional byte-lock test method mainly carries out manual testing by tester.Due to distributed memory system It include a large amount of clustered nodes in NFS, and operating system version needed for each clustered node may be different, the compatible of client is surveyed Shi Ji credit union is relatively bulky, can be very huge so as to cause the workload of manual testing, and then reduces testing efficiency, or even omits The test of certain clustered nodes reduces test quality.
Summary of the invention
In order to solve the above-mentioned technical problem, this application provides a kind of distributed memory system byte-lock characteristic test methods And device, it can automatically carry out distributed memory system byte-lock characteristic test and avoid omitting certain to improve testing efficiency The test of a little clustered nodes improves test quality.
The embodiment of the present application discloses following technical solution:
In a first aspect, the embodiment of the present application provides a kind of distributed memory system byte-lock characteristic test method, in advance Automated test frame is constructed, the automated test frame includes automatic test node and task engine pond, the automation It include more task engines in the task engine pond at least provided with task queue on test node, which comprises
The goal task in task queue is read, the goal task is appointed for the characteristic test of distributed memory system byte-lock The task that any bar is not carried out in business, the characteristic test task include at least one task;
According to the corresponding automatic test configuration file of the goal task, goal task is determined from the task pool Machine, the goal task machine include more task engines;
Target detection script is obtained from the goal task machine, and executes the target detection script, described in completing Distributed memory system byte-lock characteristic test task.
Optionally, the goal task machine is used to be used as clustered node and client.
Optionally, the method for the preparatory building automated test frame includes:
The task engine pond is created, and corresponding operation system is installed for the multiple task engine in the task engine pond System;It wherein, is the goal task machine installation targets operating system, the goal task machine is described for goal task machine Any in multiple tasks machine, the destination OS is the corresponding operating system of the goal task machine;
Create automation control node.
Optionally, between the multiple task engine configure safety shell protocol public key, with realize the multiple task engine it Between without cryptographic acess;
The safety shell protocol public key is configured between the automation control node and the goal task machine, to realize Without cryptographic acess between the automation control node and the goal task machine.
Optionally, before the goal task in the reading task queue, the method also includes:
Distributed memory system byte-lock characteristic installation kit is installed for the multiple task engine;
The automatic test configuration file is write using markup language, the automatic test configuration file indicates automatically Task engine quantity, target detection script path needed for changing test;
The distributed memory system byte-lock characteristic test task is added into the task queue.
Optionally, the target detection script is stored in remote testing script bank.
Optionally, described that target detection script is obtained from the goal task machine, and the target detection script is executed, To complete the distributed memory system byte-lock characteristic test task, comprising:
The test script from the remote testing script bank, the test script packet are obtained from the goal task machine Include target detection script and subtest script;
The target detection script is executed, to complete the distributed memory system byte-lock characteristic test task.
Optionally, the goal task read in task queue, comprising:
Start the perform script of the automatic test node;
According to the perform script, the goal task in task queue is read.
Optionally, target detection script is obtained from the goal task machine described, and executes the target detection foot This, after completing the distributed memory system byte-lock characteristic test task, the method also includes:
The log that the target detection script generates will be executed to upload under specified path.
Second aspect, the embodiment of the present application provide a kind of distributed memory system byte-lock characteristic test device, in advance Automated test frame is constructed, the automated test frame includes automatic test node and task engine pond, the automation Include more task engines in the task engine pond at least provided with task queue on test node, described device include read it is single Member, determination unit and execution unit:
The reading unit, for reading the goal task in task queue, the goal task is distributed storage system The task that any bar is not carried out in system byte-lock characteristic test task, the characteristic test task include at least one task;
The determination unit is used for according to the corresponding automatic test configuration file of the goal task, from the task Goal task machine is determined in pond, the goal task machine includes more task engines;
The execution unit for obtaining target detection script from the goal task machine, and executes the target and surveys Training sheet, to complete the distributed memory system byte-lock characteristic test task.
Optionally, the goal task machine is used to be used as clustered node and client.
Optionally, described device further includes the first creating unit and the second creating unit:
First creating unit for creating the task engine pond, and is the multiple in the task engine pond Business machine installs corresponding operating system;It wherein, is the goal task machine installation targets operating system for goal task machine, The goal task machine is any in the multiple task engine, and the destination OS is that the goal task machine is corresponding Operating system;
Second creating unit, for creating the automation control node.
Optionally, between the multiple task engine configure safety shell protocol public key, with realize the multiple task engine it Between without cryptographic acess;
The safety shell protocol public key is configured between the automation control node and the goal task machine, to realize Without cryptographic acess between the automation control node and the goal task machine.
Optionally, described device further includes installation unit, writing unit and adding unit:
The installation unit, for installing distributed memory system byte-lock characteristic installation kit for the multiple task engine;
The writing unit, for using markup language to write the automatic test configuration file, the automation is surveyed Task engine quantity, target detection script path needed for examination configuration file indicates automatic test;
The adding unit, for adding the distributed memory system byte-lock characteristic test task to the task team In column.
Optionally, the target detection script is stored in remote testing script bank.
Optionally, the execution unit is used to obtain from the goal task machine from the remote testing script bank Test script, the test script include target detection script and subtest script;The target detection script is executed, with complete At the distributed memory system byte-lock characteristic test task.
Optionally, the reading unit is used to start the perform script of the automatic test node;According to the execution Script reads the goal task in task queue.
Optionally, described device further includes uploading unit:
The uploading unit uploads under specified path for will execute the log that the target detection script generates.
The embodiment of the present application has the advantage that it can be seen from above-mentioned technical proposal
When carrying out the characteristic test of distributed memory system byte-lock, automated test frame can be constructed in advance, it is described Automated test frame includes automatic test node and task engine pond, at least provided with task on the automatic test node Queue includes more task engines in the task engine pond, only carries out automated test frame of building during the test, leads to Goal task in task queue can automatically be read by crossing automatic test node, and the goal task is distributed storage system The task that any bar is not carried out in system byte-lock characteristic test task, the characteristic test task include at least one task;Root According to the corresponding automatic test configuration file of the goal task, goal task machine, the target are determined from the task pool Task engine includes more task engines;Target detection script is obtained from the goal task machine, and executes the target detection foot This, to complete the distributed memory system byte-lock characteristic test task.As it can be seen that by constructing automatic test frame automatically Frame, and then automatic test node automatically carries out distributed memory system byte-lock characteristic test, and testing efficiency can be improved, It avoids omitting the test of certain clustered nodes, improves test quality.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application without any creative labor, may be used also for those of ordinary skill in the art To obtain other drawings based on these drawings.
Fig. 1 is a kind of flow chart of distributed memory system byte-lock characteristic test method provided by the embodiments of the present application;
Fig. 2 is a kind of system tray of distributed memory system byte-lock characteristic automatic test provided by the embodiments of the present application Composition;
Fig. 3 is a kind of structural frames of distributed memory system byte-lock characteristic test device provided by the embodiments of the present application Figure.
Specific embodiment
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only this Apply for a part of the embodiment, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art exist Every other embodiment obtained under the premise of creative work is not made, shall fall in the protection scope of this application.
When traditional use manual testing's method carries out the characteristic test of distributed memory system byte-lock, due to test job Amount can be very huge, causes the workload of manual testing can be very huge, and then reduces testing efficiency, in some instances it may even be possible to can omit certain The test of a little clustered nodes reduces test quality.
For this purpose, the embodiment of the present application provides a kind of distributed memory system byte-lock characteristic test method, this method can be with Automated test frame is automatically constructed, and then utilizes the automatic test node in automated test frame and task engine pond, The characteristic test of distributed memory system byte-lock is automatically carried out to avoid omitting certain clustered nodes to improve testing efficiency Test, improve test quality.
With reference to the accompanying drawing, distributed memory system byte-lock provided by the embodiments of the present application characteristic test side is described in detail Method.
In the present embodiment, it will be introduced for storage system NFS in a distributed manner.It is that the application is real referring to Fig. 1, Fig. 1 A kind of flow chart of distributed memory system byte-lock characteristic test method of example offer is applied, in the method, building in advance is certainly Dynamicization test frame, the automated test frame include automatic test node and task engine pond, the automatic test section Point is upper at least provided with task queue, includes more task engines in the task engine pond, referring to fig. 2, Fig. 2 shows based on automatically Change the system architecture diagram that test frame carries out distributed memory system byte-lock characteristic automatic test.It is wrapped in the system architecture diagram Include automation control node 201 and task engine pond 202.
The described method includes:
Goal task in S101, reading task queue.
Wherein, the goal task is times that any bar is not carried out in distributed memory system byte-lock characteristic test task Business, the characteristic test task include at least one task.
It should be noted that as shown in Fig. 2, tester can submit distributed storage system on automation control node The byte-lock characteristic test task of system NFS, automation control node can deposit distribution after recognizing task submiting command The byte-lock characteristic test task of storage system NFS is added in task queue, with pending.
It should be noted that can also include script bank and yum in addition to being provided with task queue on automation control node (full name is yellow dog updater, modified) source, the source yum is with can indicating a software assembly.
It should be noted that in one implementation, the method for constructing automated test frame in advance includes: creation institute Task engine pond is stated, and corresponding operating system is installed for the multiple task engine in the task engine pond;Wherein, for target Task engine, is the goal task machine installation targets operating system, and the goal task machine is any in the multiple task engine Platform, the destination OS are the corresponding operating system of the goal task machine;Create the automation control node.
In one case, in order to avoid during automatic test byte-lock characteristic, between multiple tasks machine with And need to input password between automation control node and goal task machine and can just access, guarantee automatic test byte It locks the smooth of characteristic to carry out, in one implementation, safety shell protocol (Secure is configured between the multiple task engine Shell, abbreviation SSH) public key, to realize between the multiple task engine without cryptographic acess;The automation control node and institute It states and configures the safety shell protocol public key between goal task machine, to realize that the automation control node and the target are appointed Without cryptographic acess between business machine.Wherein, the safety shell protocol public key can be indicated with SSH-Key, creation SSH-Key's It can be set simultaneously and exempt from confidential information, to realize no cryptographic acess.
After the building for completing automated test frame, the byte-lock characteristic that can star distributed memory system NFS is compiled Building task is translated, automation task can complete task engine for the update installation of the byte-lock characteristic of distributed memory system NFS. Specifically, before the goal task in the reading task queue, the method also includes: for the multiple task engine installation Distributed memory system byte-lock characteristic installation kit;Write the automatic test configuration file using markup language, it is described from Task engine quantity, target detection script path needed for dynamicization test profile indicates automatic test;Add the distribution Formula storage system byte-lock characteristic test task is appointed into the task queue so as to read target from task queue Business.
It should be noted that in the present embodiment, a kind of implementation for reading the goal task in task queue can be with It is: starts the perform script of the automatic test node;According to the perform script, the target read in task queue is appointed Business.
S102, according to the corresponding automatic test configuration file of the goal task, target is determined from the task pool Task engine.
Wherein, the goal task machine includes more task engines, and Fig. 2 is by taking N platform task engine as an example.It is being determined from task pool When goal task machine, idle task machine can be specifically determined first from task pool, it is then, corresponding automatic according to goal task Change test profile, goal task machine is determined from idle task machine.
For example, including 10 task engines in task pool, automatic test configuration file indicates appoints needed for automatic test Business machine quantity is 4, wherein there are 5 task engines to be carrying out automatic test task in task pool, it is occupied, then, 4 can be selected from remaining 5 task engine according to automatic test configuration file, and lock 4 task engines, by this 4 Task engine is as goal task machine.
According to the feature of distributed memory system NFS, distributed memory system NFS generally comprises node cluster and NFS visitor Family end, therefore, in the present embodiment, the goal task machine is used to be used as clustered node and client, in distributed storage system It unites in NFS, which is NFS client, and user oriented, with external offer service, which platform task engine is made in goal task machine For clustered node, which platform task engine can determine that node profile is to mention according to node profile as NFS client It is generated after the byte-lock characteristic test task of friendship distributed memory system NFS.
For example, with reference to Fig. 2, if determined from N platform task engine 4 task engines as goal task machine, then, at 4 In task engine, it can determine that preceding 3 task engines can be used as clustered node according to node profile, 1 task engine can be made For NFS client.
It is understood that can execute after determining as the task engine of clustered node and build distributed type assemblies foot This, could be aware that the state of clustered node by distributed type assemblies script, how to build distributed type assemblies etc..
After determining NFS client, can in NFS client the byte-lock of carry distributed memory system NFS it is special Property, and detect whether carry success, whether state normal, so as to the byte-lock characteristic carry of distributed memory system NFS at Function and state it is normal after, execute S103.
S103, target detection script is obtained from the goal task machine, and execute the target detection script, to complete The distributed memory system byte-lock characteristic test task.
Target detection script can be located in test script library, and test script library can be located in every task engine, certainly, It is convenient that unified maintenance is carried out to test script library in order to avoid carrying out maintenance and management to the test script library in every task engine And management, in one implementation, test script library can be located in remote testing script bank, i.e. target detection script is located at In remote testing script bank.
In this case, described that target detection script is obtained from the goal task machine, and execute the target and survey Training sheet may is that with completing the specific implementation of the distributed memory system byte-lock characteristic test task from described The test script from the remote testing script bank is obtained on goal task machine, the test script includes target detection script With subtest script, wherein subtest script is not the test script needed to be implemented, be can be for describing clustered node The test script of the characteristics such as state, for assisting performance objective test script;The target detection script is executed, to complete mesh The execution of mark task, and then complete the distributed memory system byte-lock characteristic test task.
It should be noted that for the ease of subsequent analysis and the byte-lock characteristic test for checking distributed memory system NFS The information such as test script implementing result after S103, can will execute the target detection foot in one implementation The log of this generation uploads under specified path.Wherein, the implementing result of all test scripts can be embodied in the log, tested Script quantity executes the information such as time.
After obtaining log, log can be analyzed automatically, and generate test report, being sent automatically by mail should Test report, so as to tester it will be seen that the test result of the byte-lock characteristic test of distributed memory system NFS.
It should be noted that if above step executes failure, it can enter failure procedures, clear up clustered node, upload day Will discharges goal task machine.
When carrying out the characteristic test of distributed memory system byte-lock, automated test frame can be constructed in advance, it is described Automated test frame includes automatic test node and task engine pond, at least provided with task on the automatic test node Queue includes more task engines in the task engine pond, only carries out automated test frame of building during the test, leads to Goal task in task queue can automatically be read by crossing automatic test node, and the goal task is distributed storage system The task that any bar is not carried out in system byte-lock characteristic test task, the characteristic test task include at least one task;Root According to the corresponding automatic test configuration file of the goal task, goal task machine, the target are determined from the task pool Task engine includes more task engines;Target detection script is obtained from the goal task machine, and executes the target detection foot This, to complete the distributed memory system byte-lock characteristic test task.As it can be seen that by constructing automatic test frame automatically Frame, and then automatic test node automatically carries out distributed memory system byte-lock characteristic test, and testing efficiency can be improved, It avoids omitting the test of certain clustered nodes, improves test quality.
Based on the distributed memory system byte-lock characteristic test method that previous embodiment provides, the embodiment of the present application is provided A kind of distributed memory system byte-lock characteristic test device, constructs automated test frame, the automatic test in advance Frame includes automatic test node and task engine pond, described at least provided with task queue on the automatic test node Include more task engines in task engine pond, described device includes reading unit 301, determination unit 302 and execution unit 303:
The reading unit 301, for reading the goal task in task queue, the goal task is distributed storage The task that any bar is not carried out in system byte-lock characteristic test task, the characteristic test task include at least one task;
The determination unit 302 is used for according to the corresponding automatic test configuration file of the goal task, from described It is engaged in determining goal task machine in pond, the goal task machine includes more task engines;
The execution unit 303 for obtaining target detection script from the goal task machine, and executes the target Test script, to complete the distributed memory system byte-lock characteristic test task.
Optionally, the goal task machine is used to be used as clustered node and client.
Optionally, described device further includes the first creating unit and the second creating unit:
First creating unit for creating the task engine pond, and is the multiple in the task engine pond Business machine installs corresponding operating system;It wherein, is the goal task machine installation targets operating system for goal task machine, The goal task machine is any in the multiple task engine, and the destination OS is that the goal task machine is corresponding Operating system;
Second creating unit, for creating the automation control node.
Optionally, between the multiple task engine configure safety shell protocol public key, with realize the multiple task engine it Between without cryptographic acess;
The safety shell protocol public key is configured between the automation control node and the goal task machine, to realize Without cryptographic acess between the automation control node and the goal task machine.
Optionally, described device further includes installation unit, writing unit and adding unit:
The installation unit, for installing distributed memory system byte-lock characteristic installation kit for the multiple task engine;
The writing unit, for using markup language to write the automatic test configuration file, the automation is surveyed Task engine quantity, target detection script path needed for examination configuration file indicates automatic test;
The adding unit, for adding the distributed memory system byte-lock characteristic test task to the task team In column.
Optionally, the target detection script is stored in remote testing script bank.
Optionally, the execution unit is used to obtain from the goal task machine from the remote testing script bank Test script, the test script include target detection script and subtest script;The target detection script is executed, with complete At the distributed memory system byte-lock characteristic test task.
Optionally, the reading unit is used to start the perform script of the automatic test node;According to the execution Script reads the goal task in task queue.
Optionally, described device further includes uploading unit:
The uploading unit uploads under specified path for will execute the log that the target detection script generates.
When carrying out the characteristic test of distributed memory system byte-lock, automated test frame can be constructed in advance, it is described Automated test frame includes automatic test node and task engine pond, at least provided with task on the automatic test node Queue includes more task engines in the task engine pond, only carries out automated test frame of building during the test, leads to Goal task in task queue can automatically be read by crossing automatic test node, and the goal task is distributed storage system The task that any bar is not carried out in system byte-lock characteristic test task, the characteristic test task include at least one task;Root According to the corresponding automatic test configuration file of the goal task, goal task machine, the target are determined from the task pool Task engine includes more task engines;Target detection script is obtained from the goal task machine, and executes the target detection foot This, to complete the distributed memory system byte-lock characteristic test task.As it can be seen that by constructing automatic test frame automatically Frame, and then automatic test node automatically carries out distributed memory system byte-lock characteristic test, and testing efficiency can be improved, It avoids omitting the test of certain clustered nodes, improves test quality.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above method embodiment can pass through The relevant hardware of program instruction is completed, and foregoing routine can be stored in a computer readable storage medium, which exists When execution, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned can be at least one in following media Kind: read-only memory (English: read-only memory, abbreviation: ROM), RAM, magnetic or disk etc. are various to be can store The medium of program code.
It should be noted that all the embodiments in this specification are described in a progressive manner, each embodiment it Between same and similar part may refer to each other, each embodiment focuses on the differences from other embodiments. For equipment and system embodiment, since it is substantially similar to the method embodiment, so describe fairly simple, The relevent part can refer to the partial explaination of embodiments of method.Equipment and system embodiment described above is only schematic , wherein unit may or may not be physically separated as illustrated by the separation member, it is shown as a unit Component may or may not be physical unit, it can and it is in one place, or may be distributed over multiple networks On unit.Some or all of the modules therein can be selected to achieve the purpose of the solution of this embodiment according to the actual needs. Those of ordinary skill in the art can understand and implement without creative efforts.
The above, only a kind of specific embodiment of the application, but the protection scope of the application is not limited thereto, Within the technical scope of the present application, any changes or substitutions that can be easily thought of by anyone skilled in the art, Should all it cover within the scope of protection of this application.Therefore, the protection scope of the application should be with scope of protection of the claims Subject to.

Claims (10)

1.一种分布式存储系统字节锁特性测试方法,其特征在于,预先构建自动化测试框架,所述自动化测试框架包括自动化测试节点和任务机池,所述自动化测试节点上至少设置有任务队列,所述任务机池中包括多台任务机,所述方法包括:1. A distributed storage system byte lock characteristic testing method, it is characterized in that, pre-build automated test framework, described automated test framework comprises automated test node and task machine pool, is provided with task queue at least on described automated test node , the task machine pool includes multiple task machines, and the method includes: 读取任务队列中的目标任务,所述目标任务为分布式存储系统字节锁特性测试任务中任一条未执行的任务,所述特性测试任务包括至少一条任务;Read the target task in the task queue, the target task is any unexecuted task in the distributed storage system byte lock characteristic test task, and the characteristic test task includes at least one task; 根据所述目标任务对应的自动化测试配置文件,从所述任务池中确定目标任务机,所述目标任务机包括多台任务机;According to the automated test configuration file corresponding to the target task, determine the target task machine from the task pool, the target task machine includes a plurality of task machines; 从所述目标任务机上获取目标测试脚本,并执行所述目标测试脚本,以完成所述分布式存储系统字节锁特性测试任务。The target test script is obtained from the target task machine, and the target test script is executed to complete the byte lock characteristic test task of the distributed storage system. 2.根据权利要求1所述的方法,其特征在于,所述目标任务机用于作为集群节点和客户端。2. The method according to claim 1, wherein the target task machine is used as a cluster node and a client. 3.根据权利要求1所述的方法,其特征在于,所述预先构建自动化测试框架的方法包括:3. The method according to claim 1, wherein the method for pre-building an automated testing framework comprises: 创建所述任务机池,并为所述任务机池内的所述多个任务机安装对应的操作系统;其中,针对目标任务机,为所述目标任务机安装目标操作系统,所述目标任务机为所述多个任务机中任一台,所述目标操作系统为所述目标任务机对应的操作系统;Create the task machine pool, and install corresponding operating systems for the plurality of task machines in the task machine pool; wherein, for the target task machine, install a target operating system for the target task machine, and the target task machine It is any one of the plurality of task machines, and the target operating system is an operating system corresponding to the target task machine; 创建所述自动化控制节点。Create the automation control node. 4.根据权利要求3所述的方法,其特征在于,所述多个任务机之间配置安全外壳协议公钥,以实现所述多个任务机之间无密码访问;4. method according to claim 3, is characterized in that, configures safe shell agreement public key between described a plurality of task machines, to realize without password access between described a plurality of task machines; 所述自动化控制节点与所述目标任务机之间配置所述安全外壳协议公钥,以实现所述自动化控制节点与所述目标任务机之间无密码访问。The secure shell protocol public key is configured between the automation control node and the target task machine, so as to realize passwordless access between the automation control node and the target task machine. 5.根据权利要求1所述的方法,其特征在于,在所述读取任务队列中的目标任务之前,所述方法还包括:5. The method according to claim 1, wherein, before the target task in the read task queue, the method further comprises: 为所述多个任务机安装分布式存储系统字节锁特性安装包;Install a distributed storage system byte lock feature installation package for the plurality of task machines; 使用标记语言书写所述自动化测试配置文件,所述自动化测试配置文件指明自动化测试所需的任务机数量、目标测试脚本路径;Use markup language to write described automation test configuration file, described automation test configuration file indicates the task machine quantity that automation test needs, target test script path; 添加所述分布式存储系统字节锁特性测试任务到所述任务队列中。Add the distributed storage system byte lock characteristic test task to the task queue. 6.根据权利要求1-5任一项所述的方法,其特征在于,所述目标测试脚本存储在远程测试脚本库中。6. The method according to any one of claims 1-5, wherein the target test script is stored in a remote test script library. 7.根据权利要求6所述的方法,其特征在于,所述从所述目标任务机上获取目标测试脚本,并执行所述目标测试脚本,以完成所述分布式存储系统字节锁特性测试任务,包括:7. The method according to claim 6, wherein the target test script is obtained from the target task machine, and the target test script is executed to complete the distributed storage system byte lock characteristic test task ,include: 从所述目标任务机上获取来自所述远程测试脚本库的测试脚本,所述测试脚本包括目标测试脚本和辅助测试脚本;Obtain test scripts from the remote test script library from the target task machine, the test scripts include target test scripts and auxiliary test scripts; 执行所述目标测试脚本,以完成所述分布式存储系统字节锁特性测试任务。Executing the target test script to complete the distributed storage system byte lock characteristic test task. 8.根据权利要求1所述的方法,其特征在于,所述读取任务队列中的目标任务,包括:8. The method according to claim 1, wherein said reading the target task in the task queue comprises: 启动所述自动化测试节点的执行脚本;Start the execution script of the automated test node; 根据所述执行脚本,读取任务队列中的目标任务。According to the execution script, the target tasks in the task queue are read. 9.根据权利要求1所述的方法,其特征在于,在所述从所述目标任务机上获取目标测试脚本,并执行所述目标测试脚本,以完成所述分布式存储系统字节锁特性测试任务之后,所述方法还包括:9. The method according to claim 1, wherein, obtaining the target test script from the target task machine, and executing the target test script, to complete the distributed storage system byte lock characteristic test After the task, the method also includes: 将执行所述目标测试脚本生成的日志上传到指定路径下。Upload the log generated by executing the target test script to the specified path. 10.一种分布式存储系统字节锁特性测试装置,其特征在于,预先构建自动化测试框架,所述自动化测试框架包括自动化测试节点和任务机池,所述自动化测试节点上至少设置有任务队列,所述任务机池中包括多台任务机,所述装置包括读取单元、确定单元和执行单元:10. A device for testing byte lock characteristics of a distributed storage system, characterized in that an automated testing framework is pre-built, the automated testing framework includes an automated testing node and a task machine pool, and the automated testing node is at least provided with a task queue , the task machine pool includes multiple task machines, and the device includes a reading unit, a determination unit and an execution unit: 所述读取单元,用于读取任务队列中的目标任务,所述目标任务为分布式存储系统字节锁特性测试任务中任一条未执行的任务,所述特性测试任务包括至少一条任务;The reading unit is used to read the target task in the task queue, the target task is any unexecuted task in the byte lock characteristic test task of the distributed storage system, and the characteristic test task includes at least one task; 所述确定单元,用于根据所述目标任务对应的自动化测试配置文件,从所述任务池中确定目标任务机,所述目标任务机包括多台任务机;The determining unit is configured to determine a target task machine from the task pool according to the automated test configuration file corresponding to the target task, and the target task machine includes a plurality of task machines; 所述执行单元,用于从所述目标任务机上获取目标测试脚本,并执行所述目标测试脚本,以完成所述分布式存储系统字节锁特性测试任务。The execution unit is configured to obtain a target test script from the target task machine, and execute the target test script to complete the byte lock characteristic test task of the distributed storage system.
CN201810956415.4A 2018-08-21 2018-08-21 A kind of distributed memory system byte-lock characteristic test method and device Pending CN109101401A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810956415.4A CN109101401A (en) 2018-08-21 2018-08-21 A kind of distributed memory system byte-lock characteristic test method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810956415.4A CN109101401A (en) 2018-08-21 2018-08-21 A kind of distributed memory system byte-lock characteristic test method and device

Publications (1)

Publication Number Publication Date
CN109101401A true CN109101401A (en) 2018-12-28

Family

ID=64850589

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810956415.4A Pending CN109101401A (en) 2018-08-21 2018-08-21 A kind of distributed memory system byte-lock characteristic test method and device

Country Status (1)

Country Link
CN (1) CN109101401A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040133570A1 (en) * 1998-03-20 2004-07-08 Steven Soltis Shared file system
CN102339283A (en) * 2010-07-20 2012-02-01 中兴通讯股份有限公司 Access control method for cluster file system and cluster node
CN105653435A (en) * 2015-12-28 2016-06-08 曙光信息产业(北京)有限公司 Performance test method of NFS and performance test device of NFS
CN107423181A (en) * 2017-07-28 2017-12-01 郑州云海信息技术有限公司 The automated testing method and device of a kind of uniform storage device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040133570A1 (en) * 1998-03-20 2004-07-08 Steven Soltis Shared file system
CN102339283A (en) * 2010-07-20 2012-02-01 中兴通讯股份有限公司 Access control method for cluster file system and cluster node
CN105653435A (en) * 2015-12-28 2016-06-08 曙光信息产业(北京)有限公司 Performance test method of NFS and performance test device of NFS
CN107423181A (en) * 2017-07-28 2017-12-01 郑州云海信息技术有限公司 The automated testing method and device of a kind of uniform storage device

Similar Documents

Publication Publication Date Title
US10873510B2 (en) Packaging tool for first and third party component deployment
US10083027B2 (en) Systems and methods for managing software development environments
US9098364B2 (en) Migration services for systems
US10339039B2 (en) Virtual service interface
US20130086130A1 (en) Executor for software configuration automation
US10243804B2 (en) Continuous delivery of hierarchical products using executor for software configuration automation
US12189514B2 (en) System and method for cloud infrastructure test automation
Saito et al. DevOps with Kubernetes: accelerating software delivery with container orchestrators
Sandobalin et al. End-to-end automation in cloud infrastructure provisioning
CN109151021A (en) A kind of distributed memory system file lock characteristic test method and device
Vitale Cloud Native Spring in Action: With Spring Boot and Kubernetes
Pathania Learning Continuous Integration with Jenkins: An end-to-end guide to creating operational, secure, resilient, and cost-effective CI/CD processes
CN109101401A (en) A kind of distributed memory system byte-lock characteristic test method and device
CN109240879A (en) A kind of distributed memory system QOS characteristic test method and device
Ahmed et al. Analysis of cloud digital evidence
Baset et al. Toward achieving operational excellence in a cloud
CN118689529B (en) A method, system, device and medium for configuring parameters of application services
US20250077259A1 (en) Security-Preserving Generation and Performance of Cloud Actions
Miguel et al. A real application of multi-tenancy in an alarm system software
Mahgoub From Monolith to Microservices: building scalable applications with Kubernetes, CI/CD, and chaos engineering
Choi et al. Cisco Router Upgrading Playbook
Peltotalo A Case Study on Cloud Migration and Improvement of Twelve-Factor App
Moinheiro Aplicação para Gestão de Rede de Testes sem Fios
Martins Exploring Kubernetes and Devops in an IOT Context
Ardebili et al. KubeIntellect: A Modular LLM-Orchestrated Agent Framework for End-to-End Kubernetes Management

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: 20181228