CN110569157B - Storage testing method, device, server and storage medium - Google Patents

Storage testing method, device, server and storage medium Download PDF

Info

Publication number
CN110569157B
CN110569157B CN201910812806.3A CN201910812806A CN110569157B CN 110569157 B CN110569157 B CN 110569157B CN 201910812806 A CN201910812806 A CN 201910812806A CN 110569157 B CN110569157 B CN 110569157B
Authority
CN
China
Prior art keywords
virtual machine
server
storage
virtual machines
preset threshold
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910812806.3A
Other languages
Chinese (zh)
Other versions
CN110569157A (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.)
Huayun Data Co ltd
Original Assignee
Huayun Data 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 Huayun Data Co ltd filed Critical Huayun Data Co ltd
Priority to CN201910812806.3A priority Critical patent/CN110569157B/en
Publication of CN110569157A publication Critical patent/CN110569157A/en
Application granted granted Critical
Publication of CN110569157B publication Critical patent/CN110569157B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • 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/2247Verification or detection of system hardware configuration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The application provides a storage testing method, a storage testing device, a server and a storage medium. The method comprises the following steps: the server collects storage pressure caused by a plurality of virtual machines for performing storage performance test on the server; the server determines whether the storage pressure is greater than a preset threshold; if the virtual machine is larger than the preset threshold value, the server deletes the virtual machine from the plurality of virtual machines; and if the storage performance test is smaller than the preset threshold, the server establishes a virtual machine so that the established virtual machine and the plurality of virtual machines can perform the storage performance test. According to the method and the device, the storage pressure is calculated, so that the scale of the whole virtual machine participating in the storage performance test is dynamically adjusted according to the storage pressure and the size of the preset threshold value, and the peak performance of the server is accurately obtained.

Description

Storage testing method, device, server and storage medium
Technical Field
The present application relates to the field of virtualization technologies, and in particular, to a storage testing method, a storage testing device, a server, and a storage medium.
Background
The super-fusion architecture is rising in China and gradually becomes a trend, the super-fusion bottom layer adopts a standardized x86 hardware platform, the upper layer adopts a software definition mode, and by integrating computing resources (such as memory, CPU, storage, network and the like) into one physical facility, seamless expansion among modules is realized, a uniform resource pool is formed, the operation and maintenance efficiency is greatly improved, and the deployment time is simplified.
Generally, a high-performance multi-node server is adopted in the super-fusion architecture, and based on distributed storage (such as ceph) and a server virtualization technology, for the super-fusion architecture, storage is the most important component part of the super-fusion architecture, so that high performance and high reliability of service of back-end storage are ensured, and the product delivery and use precondition is met.
Therefore, the storage performance is particularly important, and directly determines how many services can be operated in the super-convergence architecture, and the response speed of various services, where the storage performance generally includes: iops (Input/Output Operations Per Second), number of read/write (I/O) operations per second), throughput, and latency, etc. However, in the industry, although many open source testing tools are available for measuring the above 3 performance indexes of the storage devices, all the tools can only evaluate a single storage device and can only execute in a command line mode, which is time-consuming and labor-consuming, and can possibly generate misoperation manually, so that the storage performance of all the devices cannot be tested accurately.
Disclosure of Invention
An object of the embodiments of the present application is to provide a storage testing method, a storage testing device, a server and a storage medium, so as to accurately measure peak performance of the server.
In a first aspect, a storage testing method provided in an embodiment of the present application is applied to a server, where the method includes: the server collects storage pressure caused by a plurality of virtual machines for performing storage performance test on the server; the server determines whether the storage pressure is greater than a preset threshold; if the virtual machine is larger than the preset threshold value, the server deletes the virtual machine from the plurality of virtual machines; and if the storage performance test is smaller than the preset threshold, the server establishes a virtual machine so that the established virtual machine and the plurality of virtual machines can perform the storage performance test.
In the implementation process, the storage pressure is calculated, so that the scale of the whole virtual machine participating in the storage performance test is dynamically adjusted according to the storage pressure and the size of a preset threshold value, and the peak performance of the server is accurately obtained.
With reference to the first aspect, an embodiment of the present application provides a first possible implementation manner of the first aspect, before the server collects storage pressures caused by multiple virtual machines for performing storage performance testing on the server, the method further includes: the server creates the plurality of virtual machines and creates cloud hard disks for each virtual machine in the plurality of virtual machines respectively, wherein a testing tool for testing storage performance is installed in each cloud hard disk.
With reference to the first aspect, the embodiment of the present application provides a second possible implementation manner of the first aspect, where the deleting, by the server, a virtual machine from the multiple virtual machines includes: the server acquires network address information of the virtual machine from the configuration file; and the server sends a termination test instruction to the virtual machine through the network address information so as to delete the virtual machine executing the termination test instruction from the plurality of virtual machines.
In the implementation process, the network address information of the virtual machine is obtained from the configuration file, so that a termination test instruction is sent to the virtual machine through the network address information, and the virtual machine executing the termination test instruction is deleted from the plurality of virtual machines, thereby reducing the scale of the whole virtual machine participating in the storage performance test, further reducing the phenomenon of inaccurate performance data caused by abnormal load of the server, and improving the accuracy of the test on the storage performance of the server.
With reference to the second possible implementation manner of the first aspect, the embodiment of the present application provides a third possible implementation manner of the first aspect, before the server obtains network address information of the virtual machine from the configuration file, the method further includes: the server determines the number of virtual machines to be deleted according to the difference value between the storage pressure and the preset threshold value; the server obtains the network address information of the virtual machine from the configuration file, and the network address information comprises: and the server acquires the virtual machine network address information with the quantity corresponding to the quantity of the virtual machines to be deleted from the configuration file.
With reference to the first aspect, the embodiment of the present application provides a fourth possible implementation manner of the first aspect, where the creating, by the server, a virtual machine includes: after suspending the test process of all the current virtual machines, the server establishes a virtual machine and updates the configuration information of the established virtual machine into a configuration file; and the server starts the test process of all the current virtual machines to perform the storage performance test.
In the implementation process, the test process of all the current virtual machines is paused firstly to avoid the influence of other virtual machines on the test when a new virtual machine is created, the test accuracy is improved, then after the new virtual machine is created, the configuration information of the virtual machine is updated into the configuration file so as to facilitate management of the virtual machine, after the creation is successful, all the current virtual machines are started to perform the storage performance test, so that the scale of the whole virtual machines participating in the storage performance test is increased, the server is pressurized in a continuous superposition mode until the critical value is met, and the peak performance of the server is accurately obtained.
In a second aspect, an embodiment of the present application provides a storage testing apparatus, applied to a server, where the apparatus includes: the acquisition module is used for acquiring storage pressure caused by a plurality of virtual machines for performing storage performance test on the storage module; the processing module is used for determining whether the storage pressure is greater than a preset threshold value; the first execution module is used for deleting the virtual machine from the plurality of virtual machines if the first execution module is larger than the preset threshold value; and the second execution module is used for creating a virtual machine if the storage performance test is smaller than the preset threshold value, so that the created virtual machine and the plurality of virtual machines can perform the storage performance test.
With reference to the second aspect, embodiments of the present application provide a first possible implementation manner of the second aspect, before the acquisition module, the apparatus further includes: the creation module is used for creating the plurality of virtual machines and respectively creating cloud hard disks for each virtual machine in the plurality of virtual machines, wherein a test tool for testing storage performance is installed in each cloud hard disk.
With reference to the second aspect, embodiments of the present application provide a second possible implementation manner of the second aspect, where the first execution module is further configured to: if the network address information of the virtual machine is larger than the preset threshold value, acquiring the network address information of the virtual machine from the configuration file; and sending a termination test instruction to the virtual machine through the network address information so as to delete the virtual machine executing the termination test instruction from the plurality of virtual machines.
With reference to the second aspect, an embodiment of the present application provides a third possible implementation manner of the second aspect, where the first execution module is further configured to determine, if the storage pressure is greater than the preset threshold, a number of virtual machines to be deleted according to a difference between the storage pressure and the preset threshold; obtaining virtual machine network address information of which the number corresponds to that of the virtual machines to be deleted from a configuration file; and sending a termination test instruction to the virtual machine through the network address information so as to delete the virtual machine executing the termination test instruction from the plurality of virtual machines.
With reference to the second aspect, embodiments of the present application provide a fourth possible implementation manner of the second aspect, where the second execution module is further configured to: if the virtual machine configuration information is smaller than the preset threshold value, after suspending the test process of all the current virtual machines, newly building the virtual machines, and updating the newly built virtual machines configuration information into a configuration file; and starting the test process of all the current virtual machines to perform the storage performance test.
In a third aspect, an embodiment of the present application provides a server, including: a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the storage testing method according to any of the first aspects when the computer program is executed.
In a fourth aspect, an embodiment of the present application provides a storage medium having instructions stored therein, which when executed on a computer, cause the computer to perform a storage test method according to any one of the first aspects.
In a fifth aspect, embodiments of the present application provide a computer program product, which when run on a computer, causes the computer to perform the storage test method according to any one of the first aspects.
Additional features and advantages of the disclosure will be set forth in the description which follows, or in part will be obvious from the description, or may be learned by practice of the techniques of the disclosure.
In order to make the above objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a storage testing method according to an embodiment of the present application;
FIG. 2 is a flowchart of another storage testing method according to an embodiment of the present application;
FIG. 3 is a flowchart of another storage testing method according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a storage test device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
Referring to fig. 1, fig. 1 is a flowchart of a storage testing method provided in an embodiment of the present application, it should be understood that the method may be performed by a storage testing apparatus shown in fig. 4, where the apparatus corresponds to a server shown in fig. 5, and the server may be various devices capable of performing the method, for example, a computer or a cloud server, and the embodiment of the present application is not limited thereto, and specifically includes the following steps:
in step S101, the server collects storage pressures caused by multiple virtual machines for performing storage performance test.
Optionally, the server is a storage server.
Alternatively, the storage performance refers to the number of times of read/write (I/O) operations per second, throughput, latency, and the like.
Alternatively, the storage pressure may also be referred to as disk saturation.
Optionally, the disk saturation includes a first pressure value for characterizing utilization of the disk, a second pressure value for characterizing CPU idle duty cycle, and a third pressure value for characterizing the number of blocked processes.
Optionally, the utilization of the disk is an average utilization of the disk. For example, assuming that the number of disks of the current server is N, the average utilization ratio u= (util_disk_1+ & gt util_disk_n)/N of the disks. N is an integer greater than 1. The util_disk_1 indicates the utilization of the first disk, and the util_disk_n indicates the utilization of the nth disk.
Alternatively, the default value of the average utilization of the disk is 1, and u=u-0.1 each time util_disk_n is reduced by 10%. The smaller the U value, the more idle the disk utilization.
Alternatively, the CPU idle duty cycle may be expressed in% idle.
Alternatively, in general the larger the% idle, the more idle the description, i.e. the current server (storage device) pressure does not peak.
Alternatively, the CPU idle duty cycle default value is 0.7, for example, the id field data in the vmstat open source tool may be employed as the CPU idle duty cycle reference value for system overload.
Alternatively, the CPU idle duty cycle i=id/100, i=i-0.1 whenever id is reduced by 10, then compared to the default value, which represents an excessive load, whereas id is increased by 10, i=i+0.1. A larger than default represents a load alleviation.
Alternatively, the blocking process number default value is 0.5, for example, the b field data in vmstat is used as a reference value for the blocking process number of system overload.
Alternatively, whenever the b-field data is incremented by 1, b= (b+1)/10, then compared to the default value, a smaller than default value represents a load alleviation and a larger than default value represents an io overload.
As one implementation, each virtual machine on the server initiates an IO request to the server when performing storage performance test, so that the server can determine the times of performing read-write (I/O) operations per second, throughput, delay and other conditions of a plurality of virtual machines by counting the IO requests initiated by each virtual machine, thereby determining the storage pressure of the virtual machine on the server.
In a possible embodiment, before step S101, the method further includes: the server creates the plurality of virtual machines and creates cloud hard disks for each virtual machine in the plurality of virtual machines respectively, wherein a testing tool for testing storage performance is installed in each cloud hard disk.
Optionally, when the virtual machine is created, an operation system, a configuration network and the like are automatically installed, and the configured information is stored in a configuration file.
Alternatively, the test tool may be fio, iometer, orion, or the like, and is not particularly limited herein. For example, when the test tool is fio, the test tool is installed in the operating system of the virtual machine, and only needs to be completed in the code by using a yum install (or apt get) mode.
Optionally, the test cases are provided to store performance test use in the embodiment by generating an executable script of an open source test tool.
The technical means of < < EOF > can be adopted to automatically generate the executable script, the execution sentences are sequentially written into the script, test cases to be executed are preset, and the super fusion architecture in the server is informed, so that the complete executable script can be generated in the virtual machine operating system after the virtual machine is built.
It should be noted that, the super fusion architecture (i.e. super fusion infrastructure) refers to that resources and technologies such as computing, network, storage, server virtualization and the like are not only provided in the same set of unit equipment (x 86 server), but also include elements such as cache acceleration, repeated data deletion, online data compression, backup software, snapshot technology and the like, and multiple nodes can be aggregated through the network to realize modularized seamless lateral expansion (scale-out) so as to form a uniform resource pool.
Specifically, as shown in fig. 2, before step S101, the method further includes:
step S201, the number of virtual machines input from the terminal is received.
Optionally, the terminal refers to a terminal device used by a user, for example, a computer or a mobile phone. Here, the present invention is not particularly limited.
Alternatively, the number of virtual machines, i.e., the number of virtual machines that the server needs to create.
Step S202, creating a virtual machine.
Step S203, a virtual hard disk is created and bound to the virtual machine.
Optionally, the virtual hard disk corresponds to the cloud hard disk above. After the virtual machines are created, a cloud hard disk is created for each virtual machine.
Step S204, automatically installing an open source tool.
Alternatively, the open source tool refers to a test tool for testing storage performance. Specifically, reference may be made to the above description, and no further description is given here.
Step S205, automatically generating a use case scenario.
Alternatively, the specific embodiment of step S205 may refer to the above description, and will not be described herein.
In step S102, the server determines whether the storage pressure is greater than a preset threshold.
Alternatively, the preset threshold may also be referred to as a disk saturation threshold, which is used to reflect the overall performance of disk utilization, CPU idle rate, and number of blocked processes.
Optionally, the setting of the preset threshold may be set according to the user's requirement. For example, the preset threshold may be 2.2, i.e., the utilization of the disk+the idle rate of the cpu+the number of blocking processes=2.2.
As one implementation, the server determines whether the storage pressure is greater than a preset threshold by comparing the storage pressure to a preset threshold.
As one embodiment, the server determines a sum of the first pressure value, the second pressure value, and the third pressure value; it is determined whether the sum is greater than a preset threshold.
In the implementation process, the first pressure value, the second pressure value and the third pressure value are combined to be compared with the preset threshold value, so that calculation is performed through multiple dimensions, and therefore the storage performance of the server can be tested more accurately.
Step S103, if the threshold value is larger than the preset threshold value, the server deletes the virtual machine from the plurality of virtual machines.
Optionally, deleting a virtual machine refers to ending the initiated test process of the virtual machine so that the virtual machine no longer places storage pressure on the server. For example, after the test process of the virtual machine is finished, the virtual machine does not initiate an IO request by using the test process.
The test process is used for testing the storage performance of the server, such as initiating IO requests.
As one embodiment, step S103 includes: when the storage pressure is greater than a preset threshold value, the server acquires network address information of the virtual machine from the configuration file; and the server sends a termination test instruction to the virtual machine through the network address information so as to delete the virtual machine executing the termination test instruction from the plurality of virtual machines.
Optionally, the configuration file is stored in a server. The configuration file records configuration information of each virtual machine, such as network address information, identification information and the like.
Optionally, the server obtains network address information of the virtual machine from the configuration file, including: the server randomly acquires network address information of the virtual machine from the configuration file.
Of course, in actual use, the server may first obtain the identifier of the virtual machine to be terminated input by the user, and obtain the network address information of the virtual machine matched with the identifier.
As an implementation manner, the server may predict the number of virtual machines to be terminated according to the difference between the storage pressure and the preset threshold. For example, when the difference is greater than 0 and less than the first sub-threshold, the estimated number is 1, when the difference is greater than or equal to the difference and less than the second sub-threshold, the estimated number is 2, and when the difference is greater than or equal to the second sub-threshold and less than the third sub-threshold, the estimated number is 3.
Alternatively, the setting of the first sub-threshold, the second sub-threshold, and the third sub-threshold may be determined according to the user's needs or according to the specifications of the storage device (or the storage server). Here, the present invention is not particularly limited.
Of course, the number of virtual machines to be terminated may also be estimated according to the multiple of the difference value and the second preset threshold value. For example, when the multiple of the difference value and the second preset threshold value is 1, obtaining the estimated quantity to be 1; when the multiple is 2, the estimated number is 2; when the multiple is 3, the estimated number is 3; when the multiple is n, the estimated number is n. Wherein n is an integer greater than 3.
Alternatively, the setting of the second preset threshold may be determined according to the user's needs or according to the specifications of the storage device (or storage server). Here, the present invention is not particularly limited.
It is to be understood that the above is by way of example only and not by way of limitation.
In the implementation process, the network address information of the virtual machine is obtained from the configuration file, so that a termination test instruction is sent to the virtual machine through the network address information, and the virtual machine executing the termination test instruction is deleted from the plurality of virtual machines, thereby reducing the scale of the whole virtual machine participating in the storage performance test, further reducing the phenomenon of inaccurate performance data caused by abnormal load of the server, and improving the accuracy of the test on the storage performance of the server.
Optionally, before the server obtains the network address information of the virtual machine from the configuration file, the method further includes: the server determines the number of virtual machines to be deleted according to the difference value between the storage pressure and the preset threshold value; the server obtains the network address information of the virtual machine from the configuration file, and the network address information comprises: and the server acquires the virtual machine network address information with the quantity corresponding to the quantity of the virtual machines to be deleted from the configuration file.
Optionally, the number of newly added virtual machines/the number of deleted virtual machines satisfies: vms= (Ti-T)/10%; wherein ti=u+i+b; ti represents storage pressure, U represents disk utilization, I represents CPU idle duty ratio, and B represents the number of blocked processes; t is a preset threshold.
Alternatively, if vms is less than 1, then no virtual machine need be added/deleted. If vms is an integer greater than 1, then a corresponding number of virtual machines are added/deleted.
As another embodiment, step S103 includes: and when the storage pressure is smaller than a preset threshold value, the server acquires the number of virtual machines to be terminated, and the virtual machines corresponding to the number are terminated from the plurality of virtual machines.
Alternatively, the number of virtual machines to be terminated may be input by the user through the terminal device.
Of course, the number of virtual machines to be terminated may also be estimated by the server through the comparison result. Here, the present invention is not particularly limited.
In the implementation process, when the number of the virtual machines to be terminated is larger than the preset threshold value, the virtual machines corresponding to the number are terminated from the plurality of virtual machines, so that the scale of the whole virtual machine participating in the storage performance test can be accurately reduced, the phenomenon of inaccurate performance data caused by abnormal load of the server is further reduced, and the accuracy of testing the storage performance of the server is improved.
And step S104, if the storage performance test is smaller than the preset threshold, the server builds a virtual machine so that the built virtual machine and the plurality of virtual machines can perform the storage performance test.
As one embodiment, step S104 includes: when the storage pressure is smaller than a preset threshold value, after suspending the test process of all the current virtual machines, the server establishes a virtual machine, and updates the configuration information of the established virtual machine into a configuration file; and the server starts the test process of all the current virtual machines to perform the storage performance test.
Optionally, if the storage pressure is smaller than the preset threshold, after suspending the test process of all the current virtual machines, determining the number of virtual machines to be added according to the difference between the storage pressure and the preset threshold; newly creating virtual machines with the number corresponding to the number of the virtual machines to be added, and updating the configuration information of the newly created virtual machines into a configuration file; and starting the test process of all the current virtual machines to perform the storage performance test.
In the implementation process, the test process of all the current virtual machines is paused firstly to avoid the influence of other virtual machines on the test when a new virtual machine is created, the test accuracy is improved, then after the new virtual machine is created, the configuration information of the virtual machine is updated into the configuration file so as to facilitate management of the virtual machine, after the creation is successful, all the current virtual machines are started to perform the storage performance test, so that the scale of the whole virtual machines participating in the storage performance test is increased, the server is pressurized in a continuous superposition mode until the critical value is met, and the peak performance of the server is accurately obtained.
Optionally, the process of creating the virtual machine may be performed by executing steps S201 to S205 to automatically create the virtual machine, so that no human intervention is required, and the test efficiency may be effectively improved.
As another embodiment, step S104 includes: when the storage pressure is smaller than a preset threshold value, receiving an increase request for increasing the virtual machine; suspending the test process of all the current virtual machines; newly creating virtual machines corresponding to the increment quantity carried by the increment request; updating the configuration information of all newly-built virtual machines into a configuration file; and starting the test process of all the current virtual machines to perform the storage performance test.
Alternatively, the add request may be input by the user based on the terminal device.
Optionally, the increase request carries an increased number, i.e. the number of virtual machines that need to be increased.
As an application scenario, when the storage pressure is smaller than a preset threshold, the server may display the comparison result or display the comparison result in a pop-up box form, the user initiates an increase request through the displayed comparison result, and after receiving the increase request, the server pauses the test process of all the current virtual machines; newly creating virtual machines corresponding to the increment quantity carried by the increment request; updating the configuration information of all newly-built virtual machines into a configuration file; and starting the test process of all the current virtual machines to perform the storage performance test.
Of course, in actual use, when the storage pressure is smaller than the preset threshold, the server may directly send a prompt message to the terminal device corresponding to the user to prompt the user to perform an operation. Here, the present invention is not particularly limited.
In the implementation process, receiving an increase request for increasing the virtual machine when the storage pressure is smaller than a preset threshold value; suspending the test process of all the current virtual machines; newly creating virtual machines corresponding to the increment quantity carried by the increment request; updating the configuration information of all newly-built virtual machines into a configuration file; and starting the test process of all the current virtual machines to perform the storage performance test. The scale of the whole virtual machine participating in the storage performance test is accurately increased, and the server is pressurized in a continuous superposition mode until the critical value is met, so that the peak performance of the server is further accurately obtained.
The server in the present application refers to a storage server, i.e., a server having a storage space.
The memory test method of the present application was described above in connection with fig. 1, and the memory test method of the present application will be described in detail below by way of example and not limitation in connection with fig. 3. The method as shown in fig. 3 includes:
step S301, it is determined whether to increase or decrease.
Alternatively, it is determined whether the difference between the storage pressure and the preset threshold is increased or decreased, and the difference between the default storage pressure and the preset threshold may be equal to about 0 at the beginning. When the difference value increases, namely the storage pressure increases, the storage pressure is larger than a preset threshold value; if the storage pressure is reduced, namely, the storage pressure is reduced, at the moment, the storage pressure is smaller than a preset threshold value.
In step S302, if it is a decrease, the decreased number of virtual machines is input.
Step S303, the corresponding number of virtual machine processes is terminated.
Step S304, if so, pausing the virtual machine process.
In step S305, an environment preparation module is called.
Alternatively, invoking the environment preparation module refers to invoking steps S201 to S205 to deploy a new virtual machine.
Step S306, the virtual machine process is restored.
Alternatively, the specific implementation process of step S302 to step S306 may refer to the above description, and will not be described herein.
According to the storage testing method, storage pressure caused by a plurality of virtual machines for performing storage performance testing is collected; determining whether the storage pressure is greater than a preset threshold; if the virtual machine is larger than the preset threshold value, deleting the virtual machine from the plurality of virtual machines; and if the storage performance test is smaller than the preset threshold, newly creating a virtual machine so that the newly created virtual machine and the plurality of virtual machines can perform the storage performance test. Therefore, the scale of the whole virtual machine participating in the storage performance test is dynamically adjusted according to the storage pressure and the size of a preset threshold value, and the peak performance of the server is accurately obtained.
Based on the same inventive concept, referring to fig. 4, a storage testing apparatus corresponding to the storage testing method shown in fig. 1 is further provided in the embodiment of the present application, and it should be understood that the apparatus 400 can perform the steps related to the method embodiment, and specific functions of the apparatus 400 may be referred to the above description, and detailed descriptions are omitted herein for avoiding repetition. The device 400 includes at least one software functional module that can be stored in memory in the form of software or firmware (firmware) or cured in an Operating System (OS) of the device 400. Specifically, the apparatus 400 includes:
the collection module 410 is configured to collect storage pressures caused by multiple virtual machines for performing storage performance testing.
A processing module 420 is configured to determine whether the storage pressure is greater than a preset threshold.
The first execution module 430 is configured to delete a virtual machine from the plurality of virtual machines if the first execution module is greater than the preset threshold.
And the second execution module 440 is configured to newly create a virtual machine if the storage performance test is smaller than the preset threshold, so that the newly created virtual machine and the plurality of virtual machines perform the storage performance test.
In a possible embodiment, before the acquisition module 410, the apparatus 400 further includes: the creation module is used for creating the plurality of virtual machines and respectively creating cloud hard disks for each virtual machine in the plurality of virtual machines, wherein a test tool for testing storage performance is installed in each cloud hard disk.
Optionally, the first execution module 430 is further configured to: if the network address information of the virtual machine is larger than the preset threshold value, acquiring the network address information of the virtual machine from the configuration file; and sending a termination test instruction to the virtual machine through the network address information so as to delete the virtual machine executing the termination test instruction from the plurality of virtual machines.
Optionally, the first execution module 430 is further configured to: if the virtual machine quantity is larger than the preset threshold value, determining the virtual machine quantity to be deleted according to the difference value between the storage pressure and the preset threshold value; obtaining virtual machine network address information of which the number corresponds to that of the virtual machines to be deleted from a configuration file; and sending a termination test instruction to the virtual machine through the network address information so as to delete the virtual machine executing the termination test instruction from the plurality of virtual machines.
Optionally, the second execution module 440 is further configured to: if the virtual machine configuration information is smaller than the preset threshold value, after suspending the test process of all the current virtual machines, newly building the virtual machines, and updating the newly built virtual machines configuration information into a configuration file; and starting the test process of all the current virtual machines to perform the storage performance test.
Optionally, the second execution module 440 is further configured to: if the storage pressure is smaller than the preset threshold value, after the test process of all the current virtual machines is paused, determining the number of the virtual machines to be increased according to the difference value between the storage pressure and the preset threshold value; newly creating virtual machines with the number corresponding to the number of the virtual machines to be added, and updating the configuration information of the newly created virtual machines into a configuration file; and starting the test process of all the current virtual machines to perform the storage performance test.
Based on the same inventive concept, the present application further provides a server, and fig. 5 is a block diagram illustrating a structure of a server 500 in an embodiment of the present application, where the server 500 may include a processor 510, a communication interface 520, a memory 530, and at least one communication bus 540. Wherein the communication bus 540 is used to enable direct connection communication for these components. The communication interface 520 of the device in the embodiment of the present application is used to perform signaling or data communication with other node devices. Processor 510 may be an integrated circuit chip with signal processing capabilities.
The processor 510 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but may also be a Digital Signal Processor (DSP), application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor 510 may be any conventional processor or the like.
The Memory 530 may be, but is not limited to, random access Memory (Random Access Memory, RAM), read Only Memory (ROM), programmable Read Only Memory (Programmable Read-Only Memory, PROM), erasable Read Only Memory (Erasable Programmable Read-Only Memory, EPROM), electrically erasable Read Only Memory (Electric Erasable Programmable Read-Only Memory, EEPROM), etc. The memory 530 has stored therein computer readable instructions which, when executed by the processor 510, may enable the server 500 to perform the steps described above in relation to the embodiment of the method of fig. 1.
Optionally, the server 500 may further include a storage controller, an input-output unit.
Optionally, the memory 530, the memory controller, the processor 510, the peripheral interface, the input/output unit, the audio unit, and the display unit are electrically connected directly or indirectly to each other, so as to realize data transmission or interaction. For example, the elements may be electrically coupled to each other via one or more communication buses 540. The processor 510 is configured to execute executable modules stored in the memory 530, such as software functional modules or computer programs included in the apparatus 400. And, the apparatus 400 is configured to perform the following method: the server collects storage pressure caused by a plurality of virtual machines for performing storage performance test on the server; the server determines whether the storage pressure is greater than a preset threshold; if the virtual machine is larger than the preset threshold value, the server deletes the virtual machine from the plurality of virtual machines; and if the storage performance test is smaller than the preset threshold, the server establishes a virtual machine so that the established virtual machine and the plurality of virtual machines can perform the storage performance test.
The input-output unit is used for providing user input data to realize user interaction with the server 500 (or the local terminal). The input/output unit may be, but is not limited to, a mouse, a keyboard, and the like.
It is to be understood that the architecture shown in fig. 5 is illustrative only, and that the server 500 may also include more or fewer components than shown in fig. 5, or have a different configuration than shown in fig. 5. The components shown in fig. 5 may be implemented in hardware, software, or a combination thereof.
The embodiment of the application further provides a storage medium, in which instructions are stored, and when the instructions run on a computer, the storage test method described in the method embodiment is implemented when the calculation is performed, so that repetition is avoided, and no further description is given here.
The present application also provides a computer program product which, when run on a computer, causes the computer to perform the storage test method described in the method embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, for example, the division of the units is merely a logical function division, and there may be other manners of division in actual implementation, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
Further, the units described as separate units may or may not be physically separate, and units displayed as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
Furthermore, functional modules in various embodiments of the present application may be integrated together to form a single portion, or each module may exist alone, or two or more modules may be integrated to form a single portion.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The foregoing is merely exemplary embodiments of the present application and is not intended to limit the scope of the present application, and various modifications and variations may be suggested to one skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims (8)

1. A storage testing method, applied to a server, the method comprising:
the server collects storage pressure caused by a plurality of virtual machines for performing storage performance test on the server;
the server determines whether the storage pressure is greater than a preset threshold;
if the virtual machine is larger than the preset threshold value, the server deletes the virtual machine from the plurality of virtual machines;
if the virtual machine configuration information is smaller than the preset threshold value, after suspending the test process of all the current virtual machines, the server establishes a virtual machine, and updates the established virtual machine configuration information into a configuration file so as to enable the established virtual machine and the plurality of virtual machines to perform the storage performance test;
the storage pressure comprises a first pressure value used for representing the utilization rate of a magnetic disk, a second pressure value used for representing the idle duty ratio of a CPU (Central processing Unit) and a third pressure value used for representing the blocking process number, the storage pressure is equal to the sum of the first pressure value, the second pressure value and the third pressure value, and the server determines the number of virtual machines to be deleted according to the storage pressure and the multiple of the difference value of the preset threshold value and the second preset threshold value.
2. The method of claim 1, wherein before the server gathers storage pressure on itself by a plurality of virtual machines for performing storage performance testing, the method further comprises:
the server creates the plurality of virtual machines and creates cloud hard disks for each virtual machine in the plurality of virtual machines respectively, wherein a testing tool for testing storage performance is installed in each cloud hard disk.
3. The method of claim 1, wherein the server deletes a virtual machine from the plurality of virtual machines, comprising:
the server acquires network address information of the virtual machine from the configuration file;
and the server sends a termination test instruction to the virtual machine through the network address information so as to delete the virtual machine executing the termination test instruction from the plurality of virtual machines.
4. A method according to claim 3, wherein before the server obtains the network address information of the virtual machine from the configuration file, the method further comprises:
the server obtains the network address information of the virtual machine from the configuration file, and the network address information comprises: and the server acquires the virtual machine network address information with the quantity corresponding to the quantity of the virtual machines to be deleted from the configuration file.
5. A storage testing apparatus for use with a server, the apparatus comprising:
the acquisition module is used for acquiring storage pressure caused by a plurality of virtual machines for performing storage performance test on the storage module;
the processing module is used for determining whether the storage pressure is greater than a preset threshold value;
the first execution module is used for deleting the virtual machine from the plurality of virtual machines if the first execution module is larger than the preset threshold value;
the second execution module is used for newly building a virtual machine after suspending the test process of all the current virtual machines if the virtual machine is smaller than the preset threshold value, and updating the newly built configuration information of the virtual machine into a configuration file so as to enable the newly built virtual machine and the plurality of virtual machines to perform the storage performance test;
the storage pressure comprises a first pressure value used for representing the utilization rate of a magnetic disk, a second pressure value used for representing the idle duty ratio of a CPU (Central processing Unit) and a third pressure value used for representing the blocking process number, the storage pressure is equal to the sum of the first pressure value, the second pressure value and the third pressure value, and the server determines the number of virtual machines to be deleted according to the storage pressure and the multiple of the difference value of the preset threshold value and the second preset threshold value.
6. The apparatus of claim 5, wherein the first execution module is further to:
if the network address information of the virtual machine is larger than the preset threshold value, acquiring the network address information of the virtual machine from the configuration file; and sending a termination test instruction to the virtual machine through the network address information so as to delete the virtual machine executing the termination test instruction from the plurality of virtual machines.
7. A server, comprising: memory, a processor and a computer program stored in the memory and executable on the processor, which processor implements the storage testing method according to any of claims 1-4 when executing the computer program.
8. A storage medium having instructions stored therein which, when executed on a computer, cause the computer to perform the storage testing method of any of claims 1-4.
CN201910812806.3A 2019-08-30 2019-08-30 Storage testing method, device, server and storage medium Active CN110569157B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910812806.3A CN110569157B (en) 2019-08-30 2019-08-30 Storage testing method, device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910812806.3A CN110569157B (en) 2019-08-30 2019-08-30 Storage testing method, device, server and storage medium

Publications (2)

Publication Number Publication Date
CN110569157A CN110569157A (en) 2019-12-13
CN110569157B true CN110569157B (en) 2023-07-14

Family

ID=68777001

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910812806.3A Active CN110569157B (en) 2019-08-30 2019-08-30 Storage testing method, device, server and storage medium

Country Status (1)

Country Link
CN (1) CN110569157B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111399985B (en) * 2020-03-19 2021-02-19 国网山东省电力公司 Load balancing method based on storage difference iteration in cloud computing environment
CN114510726B (en) * 2022-04-21 2022-08-12 南京赛宁信息技术有限公司 Automatic vulnerability mining method and system for self-adjusting load

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104683186A (en) * 2015-03-11 2015-06-03 杭州华三通信技术有限公司 Network resource scheduling method and device
CN107766125A (en) * 2017-11-06 2018-03-06 国云科技股份有限公司 A kind of delet method of cloud platform virtual machine

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102123061B (en) * 2011-03-28 2013-03-13 杭州电子科技大学 Method for determining performance of Web server
CN102710814B (en) * 2012-06-21 2016-03-30 北京奇虎科技有限公司 The control method of virtual machine IP address and device
TWI528187B (en) * 2013-11-12 2016-04-01 財團法人資訊工業策進會 Cloud auto-test system, method and non-transitory computer readable storage medium of the same
US9436490B2 (en) * 2014-01-13 2016-09-06 Cisco Technology, Inc. Systems and methods for testing WAAS performance for virtual desktop applications
CN105446846B (en) * 2015-11-30 2018-07-10 中电科华云信息技术有限公司 Performance test methods based on cloud desktop
TWI598744B (en) * 2017-03-16 2017-09-11 廣達電腦股份有限公司 Management systems of cloud resources and management methods thereof
CN107092541A (en) * 2017-04-27 2017-08-25 郑州云海信息技术有限公司 A kind of method that utilization virtual machine carries out storage performance test
CN109327557B (en) * 2018-10-16 2021-10-01 郑州云海信息技术有限公司 Method and device for managing IP address of virtual machine
CN109542746B (en) * 2018-11-23 2022-11-11 北京车和家信息技术有限公司 Pressure testing method and system and server pressure testing system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104683186A (en) * 2015-03-11 2015-06-03 杭州华三通信技术有限公司 Network resource scheduling method and device
CN107766125A (en) * 2017-11-06 2018-03-06 国云科技股份有限公司 A kind of delet method of cloud platform virtual machine

Also Published As

Publication number Publication date
CN110569157A (en) 2019-12-13

Similar Documents

Publication Publication Date Title
US11392461B2 (en) Method and apparatus for processing information
US9342390B2 (en) Cluster management in a shared nothing cluster
CN107644075B (en) Method and device for collecting page information
CN110569157B (en) Storage testing method, device, server and storage medium
CN112667405B (en) Information processing method, device, equipment and storage medium
JP2022159405A (en) Method and device for appending data, electronic device, storage medium, and computer program
US10318343B2 (en) Migration methods and apparatuses for migrating virtual machine including locally stored and shared data
CN110209548B (en) Service control method, system, electronic device and computer readable storage medium
CN114064435A (en) Database test method, device, medium and electronic equipment
CN113961465A (en) Method, device and program product for processing reproduction of program crash scene
CN116450184B (en) System upgrading method and device, electronic equipment and storage medium
CN111078418B (en) Operation synchronization method, device, electronic equipment and computer readable storage medium
CN111367799B (en) Method, device, medium and electronic equipment for locating source code breakdown position
CN112631994A (en) Data migration method and system
CN112181942A (en) Time sequence database system and data processing method and device
CN112463574A (en) Software testing method, device, system, equipment and storage medium
CN114726657A (en) Method and device for interrupt management and data receiving and sending management and intelligent network card
CN110569182B (en) Crash rate calculation method and device, computer equipment and storage medium
CN114489930A (en) Virtual machine live migration method, device and system
CN108960433B (en) Method and system for running machine learning modeling process
CN113836114B (en) Data migration method, system, equipment and storage medium
CN112202636B (en) Communication test method and system
JP2013232035A (en) Information processing system, information processing device, information processing method, and program
CN109933566B (en) File reading and writing method, device, equipment and computer readable storage medium
CN112532747B (en) Method, apparatus, device and storage medium for outputting information

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
TA01 Transfer of patent application right

Effective date of registration: 20220601

Address after: 230088 floor 6, Zone C, building G4, phase II, innovation industrial park, No. 2800, innovation Avenue, high tech Zone, Hefei, Anhui Province

Applicant after: Huayun Data Co.,Ltd.

Address before: 301700 room 510-6, No. 1, west side of Gaowang Road, Gaocun Town, Wuqing District, Tianjin (centralized office area)

Applicant before: Tianjin Huayun Software Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant