CN109450724A - A kind of test method and relevant apparatus of NFS internal memory optimization function - Google Patents

A kind of test method and relevant apparatus of NFS internal memory optimization function Download PDF

Info

Publication number
CN109450724A
CN109450724A CN201811221399.0A CN201811221399A CN109450724A CN 109450724 A CN109450724 A CN 109450724A CN 201811221399 A CN201811221399 A CN 201811221399A CN 109450724 A CN109450724 A CN 109450724A
Authority
CN
China
Prior art keywords
nfs
internal memory
test
memory optimization
server node
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.)
Granted
Application number
CN201811221399.0A
Other languages
Chinese (zh)
Other versions
CN109450724B (en
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 CN201811221399.0A priority Critical patent/CN109450724B/en
Publication of CN109450724A publication Critical patent/CN109450724A/en
Application granted granted Critical
Publication of CN109450724B publication Critical patent/CN109450724B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Environmental & Geological Engineering (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Debugging And Monitoring (AREA)

Abstract

This application discloses a kind of test methods of NFS internal memory optimization function, comprising: the pending test assignment information that server node receiving control device is sent;The memory upper limit of NFS client is set according to pending test assignment information, starts preset quantity NFS client;NFS internal memory optimization function is triggered when the EMS memory occupation of all NFS clients of starting is more than or equal to the memory upper limit;Anticipation and decision processing is carried out to the implementing result of NFS internal memory optimization function, obtained judging result is sent to control device.By being tested automatically in server node realization NFS internal memory optimization function, testing efficiency is improved, the omission situation occurred in manual testing is avoided, ensure that test quality.Disclosed herein as well is test control method, server node, control device, device and the computer readable storage mediums of a kind of NFS internal memory optimization function, have the above beneficial effect.

Description

A kind of test method and relevant apparatus of NFS internal memory optimization function
Technical field
This application involves field of computer technology, in particular to a kind of test method of NFS internal memory optimization function, test control Method, server node, control device, device and computer readable storage medium processed.
Background technique
With the continuous development of information technology, the memory technology to match with information technology is also being kept updating, with suitable Answer the demand of higher amount of storage and faster storage speed.There is Network File System in the system of internet, so as to In a network by file data storage, local storage resource is saved, and is conducive to the shared of network file.
But NFS client is at runtime, it may appear that NFS connection quantity is excessive, that is, NFS client terminal start-up quantity Excessively memory source in server is exhausted, makes other processes have no idea to continue operation, seriously affect server Normal course of operation reduces operational efficiency.Therefore, internal memory optimization can generally be added when designing NFS client in the prior art Function, when NFS client is run to a certain extent, automatic starting optimizes the memory of the occupancy of NFS client, reduces The memory capacity of the occupancy of NFS client is released to other application use.
When NFS client is online, need to test the internal memory optimization function of NFS client.And in the prior art The process tested to NFS client is mainly artificial to be carried out, to determine whether the internal memory optimization function of NFS client can be with It operates normally.But manual testing manually carries out due to being, so being easy to appear not tested technology during the test Point omits some test process, not can guarantee testing efficiency and test quality.
Therefore, the efficiency and quality for how improving internal memory optimization functional test are that the emphasis of those skilled in the art's concern is asked Topic.
Summary of the invention
The purpose of the application is to provide a kind of test method of NFS internal memory optimization function, test control method, server section Point, control device, device and computer readable storage medium, by realizing in server node to NFS internal memory optimization function Automatically it is tested, improves testing efficiency, avoid the omission situation occurred in manual testing, ensure that test quality.
In order to solve the above technical problems, the application provides a kind of test method of NFS internal memory optimization function, comprising:
The pending test assignment information that server node receiving control device is sent;Wherein, the server node is The server node of carry NFS client;
The memory upper limit of the NFS client, starting preset quantity are set according to the pending test assignment information NFS client;
NFS internal memory optimization is triggered when the EMS memory occupation of all NFS clients of starting is more than or equal to the memory upper limit Function;
Anticipation and decision processing is carried out to the implementing result of the NFS internal memory optimization function, obtained judging result is sent To the control device.
Optionally, start preset quantity NFS client, comprising:
Destination number is determined according to the pending test assignment information, starts the destination number NFS client.
Optionally, start preset quantity NFS client, comprising:
The NFS client is determined according to the quantity of the configuration of the node of the server node and Servers-all node Destination number starts the destination number NFS client.
Optionally, anticipation and decision processing, the judgement knot that will be obtained are carried out to the implementing result of the NFS internal memory optimization function Fruit is sent to the control device, comprising:
Judge whether the memory optimization value of the NFS internal memory optimization function in preset time is more than or equal to desired value;
If so, discriminating test passes through, using test by information as the judging result;
If it is not, then discriminating test does not pass through, using test not by information as the judging result;
The judging result is sent to the control device.
Optionally, anticipation and decision processing, the judgement knot that will be obtained are carried out to the implementing result of the NFS internal memory optimization function Fruit is sent to the control device, comprising:
Judge whether the consumption duration for executing the NFS internal memory optimization function is less than or equal to preset duration;
If so, discriminating test passes through, using test by information as the judging result;
If it is not, then discriminating test does not pass through, using test not by information as the judging result;
The judging result is sent to the control device.
The application also provides a kind of test control method of NFS internal memory optimization function, comprising:
Control device receives internal memory optimization test assignment, is configured according to the node of server node in server node pond The middle server node for meeting the internal memory optimization test assignment of choosing is as server node to be tested;
It handles internal memory optimization test assignment progress mission bit stream integration to obtain pending test assignment information, by institute It states mission bit stream to be tested and is sent to all server nodes to be tested, so that the server node to be tested is according to institute Mission bit stream triggering NFS internal memory optimization function to be tested is stated, expection is carried out to the implementing result of the NFS internal memory optimization function and is sentenced Disconnected processing, is sent to the control device for judging result;
All judging results received are subjected to polymerization processing, obtain test log.
The application also provides a kind of server node, comprising:
Data obtaining module is tested, the pending test assignment information sent for receiving control device;Wherein, the clothes Business device node is the server node of carry NFS client;
NFS client setup module, for being arranged in the NFS client according to the pending test assignment information The upper limit is deposited, preset quantity NFS client is started;
Internal memory optimization trigger module, the EMS memory occupation for all NFS clients when starting are more than or equal to the memory NFS internal memory optimization function is triggered when the upper limit;
Internal memory optimization result obtains module, carries out anticipation and decision for the implementing result to the NFS internal memory optimization function Processing, is sent to the control device for obtained judging result.
The application also provides a kind of control device, comprising:
Server node selecting module is matched for receiving internal memory optimization test assignment according to the node of server node It sets and chooses the server node for meeting the internal memory optimization test assignment in server node pond as server section to be tested Point;
Test assignment sending module, for by internal memory optimization test assignment progress mission bit stream integration handle to obtain to Test assignment information is executed, the mission bit stream to be tested is sent to all server nodes to be tested, so as to described Server node to be tested triggers NFS internal memory optimization function according to the mission bit stream to be tested, to the NFS internal memory optimization function The implementing result of energy carries out anticipation and decision processing, and judging result is sent to the control device;
Judging result aggregation module is tested for all judging results received to be carried out polymerization processing Log.
The application also provides a kind of device, comprising:
Memory, for storing computer program;
Processor, the step of test method as described above is realized when for executing the computer program or as described above Test control method the step of.
The application also provides a kind of computer readable storage medium, and calculating is stored on the computer readable storage medium The step of machine program, the computer program realizes test method as described above when being executed by processor and/or as described above Test control method the step of.
The test method of a kind of NFS internal memory optimization function provided herein, comprising: server node receives control dress Set the pending test assignment information of transmission;Wherein, the server node is the server node of carry NFS client; The memory upper limit of the NFS client is set according to the pending test assignment information, starts preset quantity NFS client End;NFS internal memory optimization function is triggered when the EMS memory occupation of all NFS clients of starting is more than or equal to the memory upper limit; Anticipation and decision processing is carried out to the implementing result of the NFS internal memory optimization function, obtained judging result is sent to the control Device processed.
By starting NFS client in server node, the NFS internal memory optimization function of NFS client is triggered, and right The implementing result of NFS internal memory optimization is judged, is obtained judging result as test result and is sent to control device, realization is taking NFS internal memory optimization function is tested automatically in business device node, improves testing efficiency, and during being tested automatically The omission situation occurred in manual testing is avoided, ensure that test quality.
The application also provides test control method, server node, control device, the dress of a kind of NFS internal memory optimization function It sets and computer readable storage medium, there is the above beneficial effect, this will not be repeated here.
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 The embodiment of application for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow chart of the test method of NFS internal memory optimization function provided by the embodiment of the present application;
Fig. 2 is a kind of flow chart of the test control method of NFS internal memory optimization function provided by the embodiment of the present application;
Fig. 3 is a kind of structural schematic diagram of server node provided by the embodiment of the present application;
Fig. 4 is a kind of structural schematic diagram of control device provided by the embodiment of the present application.
Specific embodiment
The core of the application is to provide a kind of test method of NFS internal memory optimization function, test control method, server section Point, control device, device and computer readable storage medium, by realizing in server node to NFS internal memory optimization function Automatically it is tested, improves testing efficiency, avoid the omission situation occurred in manual testing, ensure that test quality.
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art Every other embodiment obtained without making creative work, shall fall in the protection scope of this application.
In the prior art when NFS client is online, need to test the internal memory optimization function of NFS client.And The mainly artificial progress of process that NFS client is tested in the prior art, to determine the internal memory optimization function of NFS client Whether can operate normally.But manual testing is not tested due to being manually to carry out so being easy to appear during the test The technical point of examination omits some test process, not can guarantee testing efficiency and test quality.
Therefore, the embodiment of the present application provides a kind of test method of NFS internal memory optimization function, by server node Start NFS client, trigger the NFS internal memory optimization function of NFS client, and the implementing result of NFS internal memory optimization is sentenced It is disconnected, judging result is obtained as test result and is sent to control device, is realized in server node automatically to NFS internal memory optimization Function is tested, and improves testing efficiency, and the something lost occurred in manual testing is avoided during being tested automatically Situation is leaked, ensure that test quality.
Referring to FIG. 1, Fig. 1 is a kind of stream of the test method of NFS internal memory optimization function provided by the embodiment of the present application Cheng Tu.
This method may include:
S101, the pending test assignment information that server node receiving control device is sent;Wherein, server node is The server node of carry NFS client;
This step is intended to server and receives pending test assignment information, that is, control device is to multiple server sections Point has issued pending test assignment information, and the server node for receiving pending test assignment information will be according to this wait hold Row test assignment information goes down test assignment execution, and the test information that finally will acquire is sent to control device.
It should be noted that the server node in the present embodiment is the carry server node of NFS client, Namely the structure that each server node can be allowed to carry out test assignment has been had been built up for group system.
Therefore, the present embodiment is illustrated primarily directed to the test method of a server node, other server sections The test method of point is similar with the method that the present embodiment is introduced, and can mutually refer to.
The memory upper limit of NFS client is arranged according to pending test assignment information by S102, starts preset quantity NFS Client;
On the basis of step S101, the pending test assignment information for needing to be implemented test is got in previous step, Can be tested according to the pending test assignment information in this step, to the NFS internal memory optimization function of NFS client into Row test, first has to the memory upper limit of setting NFS client, that is, when the EMS memory occupation of NFS client reaches on the memory In limited time, so that it may trigger NFS internal memory optimization function, internally deposit into row optimization processing.
Also, internal memory optimization be usually to multiple NFS clients simultaneously run in the case where just consider to EMS memory occupation into Therefore row optimization processing is tested under normal circumstances in this step, need to start preset quantity NFS client. Wherein, preset quantity can be the quantity of default, is also possible to determine by pending test assignment information and obtains, can be with It is to be obtained by the node configuration and the determination of server number of nodes of server node.
Optionally, start preset quantity NFS client in this step, may include:
Destination number is determined according to pending test assignment information, starts destination number NFS client.
In this optinal plan, destination number is mainly determined according to pending test assignment information, and start destination number A NFS client.Need to start how many for example, just containing in the pending test assignment information that controller issues The quantity of NFS client, therefore the destination number can be determined according to pending test assignment information.
Optionally, start preset quantity NFS client in this step, may include:
The number of targets of NFS client is determined according to the quantity of the configuration of the node of server node and Servers-all node Amount starts destination number NFS client.
In this optinal plan, mainly by the quantity of node configuration and server node, it is dynamically determined starting NFS client The destination number at end, and then start the NFS client of the destination number.For example, the node configures preferable and server node In a fairly large number of situation, so that it may large number of NFS client be set and started.
S103 triggers NFS internal memory optimization when the EMS memory occupation of all NFS clients of starting is more than or equal to the memory upper limit Function;
On the basis of step S102, this step is intended to be more than or equal to when the EMS memory occupation of all NFS clients of starting NFS internal memory optimization function is triggered when the memory upper limit.It is accounted for specifically, can be loop to determine the memory of NFS client in an implementation With whether the memory upper limit is more than or equal to, if it is, NFS internal memory optimization function is triggered, if it is not, then continuing to judge.This After step triggers NFS internal memory optimization function, the corresponding internal memory optimization process of the function is exactly executed in NFS client, with drop The EMS memory occupation of low NFS client.
S104 carries out anticipation and decision processing to the implementing result of NFS internal memory optimization function, obtained judging result is sent To control device.
On the basis of step S103, this step is intended to carry out anticipation and decision to the implementing result of NFS internal memory optimization function Processing, is sent to control device for obtained judging result.It can be obtained after namely having executed NFS internal memory optimization function every time One implementing result can judge the implementing result with desired value in the test method of the present embodiment, to determine The executive condition of the NFS internal memory optimization function.Such as, if internal memory optimization is completed within a preset time, completes internal memory optimization Whether duration reaches requirement, and whether the internal memory optimization amount of internal memory optimization reaches requirement.
Optionally, step S104 may include:
When triggering NFS internal memory optimization function, judge NFS internal memory optimization function in preset time memory optimization value whether More than or equal to desired value;
If so, discriminating test passes through, using test by information as judging result;
If it is not, then discriminating test does not pass through, using test not by information as judging result;
Judging result is sent to control device.
This optinal plan mainly judges whether NFS internal memory optimization function can complete internal memory optimization within a preset time, Namely judge whether memory optimization value is more than or equal to desired value.Regardless of judging result, all using the result of judgement as sentencing Break as a result, control device is sent to, so that control device collects test result.
Optionally, step S104 may include:
When triggering NFS internal memory optimization function, judge whether the consumption duration for executing NFS internal memory optimization function is less than or equal to Preset duration;
If so, discriminating test passes through, using test by information as judging result;
If it is not, then discriminating test does not pass through, using test not by information as judging result;
Judging result is sent to control device.
This optinal plan is mainly when judging whether execute the duration that the NFS internal memory optimization function expends is less than or equal to default It is long, illustrate that NFS internal memory optimization function is better if the duration expended is shorter.Likewise, no matter judging to tie in this optinal plan How is fruit, all using the result of judgement as judging result, is sent to controller, so that control device collects test result.
The embodiment of the present application provides a kind of test method of NFS internal memory optimization function, can be by server node Middle starting NFS client triggers the NFS internal memory optimization function of NFS client, and carries out to the implementing result of NFS internal memory optimization Judgement obtains judging result as test result and is sent to control device, realizes automatically excellent to NFS memory in server node Change function to be tested, improve testing efficiency, and avoids during being tested automatically and to occur in manual testing Situation is omitted, ensure that test quality.
A upper embodiment is the angle in server node, illustrates test method provided in this embodiment.Implement upper one On the basis of example, next embodiment is illustrated the test method in the angle of control device.
Referring to FIG. 2, Fig. 2 is a kind of test control method of NFS internal memory optimization function provided by the embodiment of the present application Flow chart.
This method may include:
S201, control device receive internal memory optimization test assignment, are configured according to the node of server node in server The server node for meeting internal memory optimization test assignment is chosen in node pool as server node to be tested;
This step is intended to control device and receives internal memory optimization test assignment, and is existed according to the configuration of the node of server node The server node for meeting internal memory optimization test assignment is chosen in server node pond as server node to be tested.More Under actual application environment, the server node in the present embodiment can be the task engine fictionalized in virtual machine, accordingly It is that the task engine for meeting internal memory optimization test assignment is chosen in task engine pond as task engine to be tested in this step.
S202 handles the progress mission bit stream integration of internal memory optimization test assignment to obtain pending test assignment information, will Mission bit stream to be tested is sent to all server nodes to be tested, so that server node to be tested is believed according to task to be tested Breath triggering NFS internal memory optimization function carries out anticipation and decision processing to the implementing result of NFS internal memory optimization function, by judging result It is sent to control device;
On the basis of step S201, this step is intended to pending test assignment information being sent to server section to be tested Point so that server node to be tested carries out the test of NFS internal memory optimization according to pending test assignment information, and will be tested To judging result be sent to control device.Wherein, specific test process can this will not be repeated here with reference to a upper embodiment.
All judging results received are carried out polymerization processing, obtain test log by S203.
On the basis of step S202, all judging results that this step is intended to obtain carry out polymerization processing, are surveyed Try log.
The present embodiment provides a kind of test control methods of NFS internal memory optimization function, by starting in server node NFS client, triggers the NFS internal memory optimization function of NFS client, and judges the implementing result of NFS internal memory optimization, obtains It is sent to control device as test result to judging result, is realized in server node automatically to NFS internal memory optimization function It is tested, improves testing efficiency, and avoid the omission feelings occurred in manual testing during being tested automatically Condition ensure that test quality.
On the basis of all of above embodiment, the present embodiment provides a kind of more specifical embodiments.The embodiment party Formula mainly creates task engine and task engine pond in virtual environment, with the server node and server section in above embodiments Point pond is corresponding.Automation control node hereinafter is corresponding with control device above.
Specific implementation process is as follows:
Firstly, creation task engine pond, can be used virtual machine mode.For operating system needed for task engine installation, this behaviour Make the underlying Operating System that system is software under testing packet.Ssh is configured between task engine operating system without cryptographic acess.Then it creates Task queue, script bank, the source yum are arranged on automation control node for automation control node.Automation control node and task Node in machine pond also needs configuration ssh without cryptographic acess.Automatic test personnel start NFS internal memory optimization function and compile structure Task is built, automation task can complete the update installation of task engine NFS internal memory optimization function.Later, tester is automating NFS internal memory optimization functional test task is submitted in control node, task execution role can read being not carried out for task into queue, Then task engine needed for being chosen into task engine pond according to node configuration simultaneously locks.Test foot is obtained in the task engine of locking This, and execute, the log that script execution generates is uploaded under the specified path of specified node after script execution, completes this The execution of task.Corresponding one task is a calling script, this script calls the functional test script in current block, Every functional test script has corresponding execution journal, while this calls in script log and embodies holding for all functional test scripts Row executes the information such as time as a result, script quantity.
The installation kit deployment of NFS internal memory optimization function is main including the following steps:
(1) it creates ssh-key and is arranged and exempt from confidential information;
(2) starting NFS internal memory optimization function compiling building and deployment task;
(3) installation of task engine NFS internal memory optimization function mounting packet is completed;
(4) NFS internal memory optimization Function Test Automation configuration file is write using markup language, indicates required task node Quantity, test script path;
(5) submit test assignment into task queue, with pending.
The test assignment execution of NFS internal memory optimization function mainly comprises the steps that
(1) start the perform script of automation control node;
(2) perform script reads task queue, and gets pending mission bit stream;
(3) task engine needed for obtaining from task engine pond simultaneously locks;
(4) it executes and builds distributed type assemblies script, cluster role configuration can be obtained from task configuration file;
(5) in client node carry NFS internal memory optimization function, and detect carry success, state it is normal;
(6) obtain test script in task engine (in remote scripting library);
(7) according to task configuration file, nominative testing script execution is executed;
(8) script execution finishes, and uploads log;
(9) above step executes failure, can enter failure procedures, clear up cluster, upload log, discharge task engine.
Prepare in advance and the environmental structure link of above embodiments mainly description automatic test, wherein specific test Method also needs to refer to above embodiments.
A kind of server node provided by the embodiments of the present application is introduced below, a kind of server section described below Point can correspond to each other reference with a kind of above-described test method of NFS internal memory optimization function.
Referring to FIG. 3, Fig. 3 is a kind of structural schematic diagram of server node provided by the embodiment of the present application.
The server node may include:
Data obtaining module 110 is tested, the pending test assignment information sent for receiving control device;Wherein, it takes Business device node is the server node of carry NFS client;
NFS client setup module 120, for the memory of NFS client to be arranged according to pending test assignment information Limit starts preset quantity NFS client;
Internal memory optimization trigger module 130, the EMS memory occupation for all NFS clients when starting are more than or equal to memory NFS internal memory optimization function is triggered in limited time;
Internal memory optimization result obtains module 140, carries out at anticipation and decision for the implementing result to NFS internal memory optimization function Reason, is sent to control device for obtained judging result.
A kind of control device provided by the embodiments of the present application is introduced below, a kind of control device described below with A kind of test control method of above-described NFS internal memory optimization function can correspond to each other reference.
Referring to FIG. 4, Fig. 4 is a kind of structural schematic diagram of control device provided by the embodiment of the present application.
The server node may include:
Server node selecting module 210, for receiving internal memory optimization test assignment, according to the node of server node It configures and chooses the server node for meeting internal memory optimization test assignment in server node pond as server node to be tested;
Test assignment sending module 220, for by the progress mission bit stream integration of internal memory optimization test assignment handle to obtain to Test assignment information is executed, mission bit stream to be tested is sent to all server nodes to be tested, so as to server to be tested Node triggers NFS internal memory optimization function according to mission bit stream to be tested, is expected to the implementing result of NFS internal memory optimization function Judgement processing, is sent to control device for judging result;
Judging result aggregation module 230 obtains test day for all judging results received to be carried out polymerization processing Will.
The embodiment of the present application also provides a kind of device, comprising:
Memory, for storing computer program;
Processor, the step of test method as described above in Example is realized when for executing the computer program or The step of test control method as described above in Example.
The embodiment of the present application also provides a kind of computer readable storage medium, stores on the computer readable storage medium There is the step of computer program, the computer program realizes test method as described above in Example when being executed by processor And/or the step of as described above in Example test control method.
The computer readable storage medium may include: USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. is various to deposit Store up the medium of program code.
Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with other realities The difference of example is applied, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment Speech, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part illustration ?.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond scope of the present application.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
Test method to a kind of NFS internal memory optimization function provided herein, test control method, server above Node, control device, device and computer readable storage medium are described in detail.Specific case pair used herein The principle and embodiment of the application is expounded, the present processes that the above embodiments are only used to help understand And its core concept.It should be pointed out that for those skilled in the art, before not departing from the application principle Put, can also to the application, some improvement and modification can also be carried out, these improvement and modification also fall into the guarantor of the claim of this application It protects in range.

Claims (10)

1. a kind of test method of NFS internal memory optimization function characterized by comprising
The pending test assignment information that server node receiving control device is sent;Wherein, the server node is to have hung Carry the server node of NFS client;
The memory upper limit of the NFS client, starting preset quantity NFS visitor are set according to the pending test assignment information Family end;
NFS internal memory optimization function is triggered when the EMS memory occupation of all NFS clients of starting is more than or equal to the memory upper limit;
Anticipation and decision processing is carried out to the implementing result of the NFS internal memory optimization function, obtained judging result is sent to institute State control device.
2. test method according to claim 1, which is characterized in that starting preset quantity NFS client, comprising:
Destination number is determined according to the pending test assignment information, starts the destination number NFS client.
3. test method according to claim 1, which is characterized in that starting preset quantity NFS client, comprising:
The target of the NFS client is determined according to the quantity of the configuration of the node of the server node and Servers-all node Quantity starts the destination number NFS client.
4. test method according to claim 1, which is characterized in that the implementing result of the NFS internal memory optimization function Anticipation and decision processing is carried out, obtained judging result is sent to the control device, comprising:
Judge whether the memory optimization value of the NFS internal memory optimization function in preset time is more than or equal to desired value;
If so, discriminating test passes through, using test by information as the judging result;
If it is not, then discriminating test does not pass through, using test not by information as the judging result;
The judging result is sent to the control device.
5. test method according to claim 1, which is characterized in that the implementing result of the NFS internal memory optimization function Anticipation and decision processing is carried out, obtained judging result is sent to the control device, comprising:
Judge whether the consumption duration for executing the NFS internal memory optimization function is less than or equal to preset duration;
If so, discriminating test passes through, using test by information as the judging result;
If it is not, then discriminating test does not pass through, using test not by information as the judging result;
The judging result is sent to the control device.
6. a kind of test control method of NFS internal memory optimization function characterized by comprising
Control device receives internal memory optimization test assignment, is configured according to the node of server node in server node Chi Zhongxuan Take the server node for meeting the internal memory optimization test assignment as server node to be tested;
Internal memory optimization test assignment progress mission bit stream integration is handled to obtain pending test assignment information, will it is described to Test assignment information is sent to all server nodes to be tested, so as to the server node to be tested according to it is described to Test assignment information triggers NFS internal memory optimization function, carries out at anticipation and decision to the implementing result of the NFS internal memory optimization function Reason, is sent to the control device for judging result;
All judging results received are subjected to polymerization processing, obtain test log.
7. a kind of server node characterized by comprising
Data obtaining module is tested, the pending test assignment information sent for receiving control device;Wherein, the server Node is the server node of carry NFS client;
NFS client setup module, for the memory of the NFS client to be arranged according to the pending test assignment information Limit starts preset quantity NFS client;
Internal memory optimization trigger module, the EMS memory occupation for all NFS clients when starting are more than or equal to the memory upper limit When trigger NFS internal memory optimization function;
Internal memory optimization result obtains module, carries out anticipation and decision processing for the implementing result to the NFS internal memory optimization function, Obtained judging result is sent to the control device.
8. a kind of control device characterized by comprising
Server node selecting module exists for receiving internal memory optimization test assignment according to the configuration of the node of server node The server node for meeting the internal memory optimization test assignment is chosen in server node pond as server node to be tested;
Test assignment sending module, it is pending for handling to obtain internal memory optimization test assignment progress mission bit stream integration The mission bit stream to be tested is sent to all server nodes to be tested, so as to described to be measured by test assignment information It tries server node and NFS internal memory optimization function is triggered according to the mission bit stream to be tested, to the NFS internal memory optimization function Implementing result carries out anticipation and decision processing, and judging result is sent to the control device;
Judging result aggregation module obtains test log for all judging results received to be carried out polymerization processing.
9. a kind of device characterized by comprising
Memory, for storing computer program;
Processor realizes the step such as test method described in any one of claim 1 to 5 when for executing the computer program The step of test control method rapid or as claimed in claim 6.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program is realized when the computer program is executed by processor such as the step of test method described in any one of claim 1 to 5 And/or the step of test control method as claimed in claim 6.
CN201811221399.0A 2018-10-19 2018-10-19 Test method and related device for NFS memory optimization function Active CN109450724B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811221399.0A CN109450724B (en) 2018-10-19 2018-10-19 Test method and related device for NFS memory optimization function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811221399.0A CN109450724B (en) 2018-10-19 2018-10-19 Test method and related device for NFS memory optimization function

Publications (2)

Publication Number Publication Date
CN109450724A true CN109450724A (en) 2019-03-08
CN109450724B CN109450724B (en) 2022-05-27

Family

ID=65547262

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811221399.0A Active CN109450724B (en) 2018-10-19 2018-10-19 Test method and related device for NFS memory optimization function

Country Status (1)

Country Link
CN (1) CN109450724B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111858213A (en) * 2020-07-15 2020-10-30 苏州浪潮智能科技有限公司 Server qualification rate testing method and related device
CN114448823A (en) * 2022-01-27 2022-05-06 苏州浪潮智能科技有限公司 NFS service testing method and system and electronic equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000054154A1 (en) * 1999-03-11 2000-09-14 Mango Dsp Ltd. A system for converting high-level computer languages into specific low-level languages of digital signal processors
JP2012190093A (en) * 2011-03-09 2012-10-04 Internatl Business Mach Corp <Ibm> Optimization apparatus, optimization method and optimization program for optimizing program by reusing execution result of subclass test function
CN105426278A (en) * 2015-11-20 2016-03-23 北京畅游天下网络技术有限公司 Client equipment performance test method and system
CN106326137A (en) * 2015-07-02 2017-01-11 腾讯科技(深圳)有限公司 Memory optimization method and apparatus, and user equipment
CN106557424A (en) * 2016-11-18 2017-04-05 腾讯科技(深圳)有限公司 Internal storage testing method, measured terminal, test client and system
CN106886476A (en) * 2017-02-08 2017-06-23 腾讯科技(深圳)有限公司 A kind of memory analysis method of client, apparatus and system
CN107045531A (en) * 2017-01-20 2017-08-15 郑州云海信息技术有限公司 A kind of system and method for optimization HDFS small documents access
CN107807883A (en) * 2017-10-27 2018-03-16 郑州云海信息技术有限公司 A kind of unit test method and device of User space NFS
CN107832213A (en) * 2017-11-03 2018-03-23 郑州云海信息技术有限公司 A kind of hpl test optimization methods based on internal memory compatibility
CN107943636A (en) * 2017-12-07 2018-04-20 郑州云海信息技术有限公司 It is a kind of that the method tested is performed based on more machine batches under Linux

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000054154A1 (en) * 1999-03-11 2000-09-14 Mango Dsp Ltd. A system for converting high-level computer languages into specific low-level languages of digital signal processors
JP2012190093A (en) * 2011-03-09 2012-10-04 Internatl Business Mach Corp <Ibm> Optimization apparatus, optimization method and optimization program for optimizing program by reusing execution result of subclass test function
CN106326137A (en) * 2015-07-02 2017-01-11 腾讯科技(深圳)有限公司 Memory optimization method and apparatus, and user equipment
CN105426278A (en) * 2015-11-20 2016-03-23 北京畅游天下网络技术有限公司 Client equipment performance test method and system
CN106557424A (en) * 2016-11-18 2017-04-05 腾讯科技(深圳)有限公司 Internal storage testing method, measured terminal, test client and system
CN107045531A (en) * 2017-01-20 2017-08-15 郑州云海信息技术有限公司 A kind of system and method for optimization HDFS small documents access
CN106886476A (en) * 2017-02-08 2017-06-23 腾讯科技(深圳)有限公司 A kind of memory analysis method of client, apparatus and system
CN107807883A (en) * 2017-10-27 2018-03-16 郑州云海信息技术有限公司 A kind of unit test method and device of User space NFS
CN107832213A (en) * 2017-11-03 2018-03-23 郑州云海信息技术有限公司 A kind of hpl test optimization methods based on internal memory compatibility
CN107943636A (en) * 2017-12-07 2018-04-20 郑州云海信息技术有限公司 It is a kind of that the method tested is performed based on more machine batches under Linux

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李梦楠: "基于HDFS的名字节点的性能优化技术研究", 《中国优秀硕士学位论文全文数据库》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111858213A (en) * 2020-07-15 2020-10-30 苏州浪潮智能科技有限公司 Server qualification rate testing method and related device
CN111858213B (en) * 2020-07-15 2022-07-08 苏州浪潮智能科技有限公司 Server qualification rate testing method and related device
CN114448823A (en) * 2022-01-27 2022-05-06 苏州浪潮智能科技有限公司 NFS service testing method and system and electronic equipment
CN114448823B (en) * 2022-01-27 2023-08-15 苏州浪潮智能科技有限公司 NFS service testing method and system and electronic equipment

Also Published As

Publication number Publication date
CN109450724B (en) 2022-05-27

Similar Documents

Publication Publication Date Title
CN104765678B (en) The method and device tested the application on mobile terminal device
CN110187993A (en) A kind of processing method of misoperation, system, electronic equipment and storage medium
CN112769810B (en) Firewall testing method and device, nonvolatile storage medium and electronic device
CN109347652A (en) The service management and device of server cluster
CN104765652B (en) A kind of data backup and data reconstruction method and device
CN109697142A (en) Method and device for detecting bare metal server in cloud computing environment
CN109450724A (en) A kind of test method and relevant apparatus of NFS internal memory optimization function
CN109460333A (en) A kind of function test method of storage system, device and relevant device
CN113849196A (en) Product management method based on multi-cloud management platform and related components
CN112799596A (en) Capacity expansion control method and device for storage resources and electronic equipment
CN109257256A (en) Apparatus monitoring method, device, computer equipment and storage medium
CN106059956A (en) Time queue processing method and device for session of network equipment
CN110716730A (en) Gray scale distribution method, device, equipment and computer readable storage medium
CN110502238A (en) A kind of method and device of front and back end joint debugging
KR102168740B1 (en) Content Deployment, Scaling and Telemetry
CN115237441A (en) Upgrade test method, device and medium based on cloud platform
JP6542397B2 (en) Content testing during image production
CN113609178A (en) Data pushing method, device, equipment and storage medium
CN114328196A (en) Method, device and equipment for testing data leakage prevention system and storage medium
CN109361540A (en) A kind of test method and relevant apparatus for simplifying function certainly
CN113760518A (en) Information processing method, device and storage medium
CN108769246B (en) NFS sharing maximization test method and system
CN109344077A (en) RestAPI characteristic test method, device, equipment and storage medium
CN110365520A (en) Method for inspecting, device and the equipment of distributed system interior joint
CN113704016B (en) Cloud function component diagnosis method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant