CN115391202A - Multi-control cluster race performance testing method, device, terminal and storage medium - Google Patents

Multi-control cluster race performance testing method, device, terminal and storage medium Download PDF

Info

Publication number
CN115391202A
CN115391202A CN202211035430.8A CN202211035430A CN115391202A CN 115391202 A CN115391202 A CN 115391202A CN 202211035430 A CN202211035430 A CN 202211035430A CN 115391202 A CN115391202 A CN 115391202A
Authority
CN
China
Prior art keywords
race
test
host
cluster
executing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211035430.8A
Other languages
Chinese (zh)
Inventor
刘献煜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202211035430.8A priority Critical patent/CN115391202A/en
Publication of CN115391202A publication Critical patent/CN115391202A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/3648Software debugging using additional hardware
    • G06F11/3656Software debugging using additional hardware using a specific debug interface
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention relates to the field of multi-control cluster race performance test, and particularly discloses a multi-control cluster race performance test method, a multi-control cluster race performance test device, a multi-control cluster race performance test terminal and a multi-control cluster race performance test storage medium, wherein an environment configuration program is executed to configure a test environment; executing a host establishing online program, establishing a race host on the storage cluster, and performing online configuration on the race host; executing a volume creation mapping program, creating a volume in the storage cluster and mapping the volume to the once host; executing a volume scanning program, scanning the volume on the storage cluster and generating a vdbech script; and executing the vdbech script to test the race performance and outputting a test result. According to the invention, the automatic configuration of the test environment is realized by executing the program, and the performance test is automatically carried out after the test environment configuration is completed, so that the manual operation is not needed, the one-key test on the front-end rock performance of the multi-control cluster is realized, the time of a tester on building the test environment configuration test script is saved, and the test is more efficient.

Description

Multi-control cluster race performance testing method, device, terminal and storage medium
Technical Field
The invention relates to the field of multi-control cluster race performance testing, in particular to a multi-control cluster race performance testing method, a multi-control cluster race performance testing device, a multi-control cluster race performance testing terminal and a multi-control cluster race performance testing storage medium.
Background
race is a network protocol defined in the IBTA standard that allows the use of RDMA over ethernet, which can be viewed as an application of RDMA technology in a super converged data center, cloud, storage and virtualization environment. At present, when the performance test is carried out on the multi-control cluster of the race networking, the multi-control cluster is manually operated, for example, manual environment deployment, volume creation and the like, a tester needs to carry out multiple operations, and a large amount of time is wasted by the operations, so that the test efficiency is relatively low.
Disclosure of Invention
In order to solve the problems, the invention provides a multi-control cluster race performance testing method, a multi-control cluster race performance testing device, a multi-control cluster race performance testing terminal and a multi-control cluster race performance testing storage medium, which are used for automatically deploying environments and automatically testing the performance, so that the testing efficiency is improved.
In a first aspect, a technical solution of the present invention provides a method for testing a multiple control cluster race performance, including the following steps:
s1, executing an environment configuration program to configure a test environment, including,
configuring a secret-free login among all servers, configuring a secret-free login of a master station point of the server to a storage cluster, and configuring an Ethernet port of the storage cluster;
s2, executing a host establishing online program, establishing a race host on the storage cluster, and performing online configuration on the race host;
s3, executing a volume creation mapping program, creating a volume in the storage cluster and mapping the volume to the once host;
s4, executing a volume scanning program, scanning the volumes on the storage cluster and generating a vdbech script;
and S5, executing the vdbech script to test the race performance, and outputting a test result.
Further, configuring a secret-free login among the servers in step S1 specifically includes:
s1-11, using sh-keygen to generate a secret key and a public key on each server;
s1-12, collecting all public keys into a total authorization key file, wherein the authorization key file comprises the authentications of all mutually trusted machines;
s1-13, distributing the authorization key file to all servers.
Further, configuring a server master site for a password-free login of the storage cluster in step S1 specifically includes:
s1-21, sending the public key file of the server master site to an upgrade directory under a storage cluster super user;
s1-22, modifying the user attribute based on the public key file of the server master site, and realizing the password-free login of the server master site to the storage cluster.
Further, configuring the storage cluster ethernet port in step S1 specifically includes:
s1-31, a server master site checks storage ports of a storage cluster, retrieves all 25G ports, captures port IDs and node IDs of all 25G ports and stores the port IDs and the node IDs in variables;
s1-32, calling a variable to be transmitted to a parameter required by a configuration port IP command;
s1-33, executing a configuration port IP command to configure the Ethernet ports of the storage cluster, and distinguishing two ports of each 25G network card through odd-even judgment in the configuration process to ensure that the two ports of the same 25G network card are not in the same network segment.
Further, step S2 specifically includes:
s2-1, a server main site obtains a host nqn parameter from a host nqn file;
s2-2, login of the storage cluster without secret is carried out, and creation of a once host is carried out according to the acquired nqn parameters of the host;
s2-3, checking an Ethernet port of the storage cluster, and storing an Ethernet port IP as a variable;
s2-4, using the stored variables as input parameters discovered by the race host, executing a port discovery command, and obtaining a storage identifier of the storage cluster;
and S2-5, connecting all Ethernet ports of the storage cluster by using the storage identifier, and connecting the race host.
Further, step S3 specifically includes:
the server master site logs in the storage cluster without secret, 48 volumes are created in the storage cluster, the 48 volumes are divided into 4 parts, each part is provided with 12 volumes, and each 12 volumes are mapped to a once host.
Further, step S4 specifically includes:
s4-1, creating a performance test file under a server main site vdbech directory, and writing hd parameters of the vdbech, including a remotely used once host and a login mode;
s4-2, interacting with a user, judging whether to perform a compression retry test on the volume, and prompting the user to input a compression rate, a deduplication rate and a block size if the compression retry test is performed; if not, entering the next step;
s4-3, performing path scanning aggregation by using a multi-path tool, checking the mapped volume, saving the obtained path of the volume into a performance test file, and setting a race host name;
s4-4, remotely logging in other servers without secret, and executing the step S4-3;
and S4-5, writing the wd parameter of the vdbench into a performance test file, wherein the performance test file comprises the working load parameter of the operation test of the storage equipment, and the working load parameter comprises the number of issued IOs per second, a read-write ratio column, a random read-write ratio column and the size of a transmission block.
Correspondingly, step S5 specifically includes:
s5-1, executing the performance test file generated in the step S4;
and S5-2, storing the test result into a specific file.
In a second aspect, a technical solution of the present invention provides a multi-control cluster race performance testing apparatus, including,
an environment configuration module: the execution environment configuration program performs test environment configuration including,
configuring the secret-free login among all servers, configuring the secret-free login of a master station point of the servers to a storage cluster, and configuring an Ethernet port of the storage cluster;
the host computer creates an online module: executing a host establishing online program, establishing a race host on the storage cluster, and performing online configuration on the race host;
volume creation mapping module: executing a volume creation mapping program, creating a volume in the storage cluster and mapping the volume to the once host;
a volume scanning module: executing a volume scanning program, scanning the volume on the storage cluster and generating a vdbech script;
the test execution module: and executing the vdbech script to test the race performance and outputting a test result.
In a third aspect, a technical solution of the present invention provides a terminal, including:
the memory is used for storing the multi-control cluster race performance test program;
and the processor is used for realizing the steps of the multi-control cluster race performance test method in any one of the above steps when the multi-control cluster race performance test program is executed.
In a fourth aspect, a technical solution of the present invention provides a computer-readable storage medium, where a multi-control cluster race performance test program is stored on the readable storage medium, and the multi-control cluster race performance test program, when executed by a processor, implements the steps of any one of the multi-control cluster race performance test methods described above.
Compared with the prior art, the multi-control cluster race performance test method, the multi-control cluster race performance test device, the multi-control cluster race performance test terminal and the multi-control cluster race performance test storage medium have the following beneficial effects: the automatic configuration of the test environment is realized through the executive program, the performance test is automatically carried out after the test environment configuration is completed, manual operation is not needed, one-key test on the front-end rock performance of the multi-control cluster is realized, the time of testers on building test environment configuration test scripts is saved, and the test is more efficient.
Drawings
In order to clearly illustrate the embodiments or technical solutions of the present application, the drawings used in the embodiments or technical solutions of the present application will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic diagram of an architecture principle of a multi-control cluster race performance testing method provided by an embodiment of the present invention.
Fig. 2 is a schematic flow chart of a multi-control cluster race performance testing method provided by an embodiment of the present invention.
Fig. 3 is a schematic block diagram of a structure of a multi-control cluster race performance testing apparatus according to an embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
Some terms related to the present invention are explained below.
inpah: the method is based on a multi-path software package developed by a Linux platform multi-path framework.
vdbech:vdbechis an I/O workload generator used to verify data integrity and measure the performance of direct attached and networked storage. It is a free tool, easy to use, and often used for testing and benchmarking.
And (3) multi-control cluster: the single storage generally has two controllers, and the single storage building work cluster is a double-control cluster. Due to the complexity of the service, a plurality of storage devices are usually connected to form a cluster on site to form a whole to provide a service function, for example, two storage devices form a cluster to form a four-way control system; the cluster constructed by the plurality of storages is called a multi-control cluster.
And (3) performance testing: and a plurality of servers are adopted, and the volume mapped by the storage cluster is read and written, so that the maximum IOPS is obtained under the specified time delay condition, and the performance quality of the storage cluster is visually reflected.
IOPS: an Input/Output Operations Per Second is a measurement method for performance test of a computer storage device (such as a Hard Disk Drive (HDD), a Solid State Drive (SSD), or a Storage Area Network (SAN)), and may be regarded as the number of read/write Operations Per Second.
nvme qualified names, which are used as the unique identification of the device bearing the nvme protocol (the nvme device, such as a hard disk) and are used for the identification and authentication of the host or the nvme subsystem.
And (4) race: all known as RDMA over converted Ethernet, is a network protocol defined in the InfiniBand Trade Association (IBTA) standard that allows RDMA to be used over Ethernet networks. In short, it can be seen as an application of RDMA technology in a hyper-converged data center, cloud, storage, and virtualization environment.
RDMA: the abbreviation of Remote Direct Memory Access means Remote Direct data Access, which is generated to solve the delay of server-side data processing in network transmission. RDMA transfers material directly to a storage area of a computer over a network and quickly moves data from one system to a remote system memory without any impact on the operating system, thus not requiring as many computer processing functions as needed. It eliminates the overhead of external memory copy and context switch, thus freeing up memory bandwidth and CPU cycles for improved application system performance.
In order that those skilled in the art will better understand the disclosure, the following detailed description will be given with reference to the accompanying drawings. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The core of the invention is that the provided method for testing the multiple control cluster race performance realizes automatic environment deployment and testing, and FIG. 1 is a schematic diagram of the method architecture principle, and realizes automatic environment deployment and testing by executing the functions of the following aspects: 1. during performance testing, secret login-free automatic configuration among a plurality of servers is realized; 2. the server master station automatically configures the storage cluster without secret login; 3. automatically configuring an Ethernet port of a storage cluster; 4. host creation on the storage cluster and host end discovery and connection of the stored Ethernet port; 5, automatically creating and mapping the storage device volume to the host; 6. the host side scans the volume by using inpath and generates a vdbech script; 7. and executing the vbtech script and outputting an execution result.
As shown in fig. 2, a schematic flow chart of a method for testing the performance of the multiple-control cluster race according to the embodiment of the present invention specifically executes the following steps to implement the foregoing functions.
S1, executing an environment configuration program to configure a test environment, including,
and configuring the secret-free login among all the servers, configuring the secret-free login of the master station of the servers to the storage cluster, and configuring the Ethernet port of the storage cluster.
And S2, executing a host establishing online program, establishing a race host on the storage cluster, and performing online configuration on the race host.
And S3, executing a volume creation mapping program, creating a volume in the storage cluster and mapping the volume to the once host.
And S4, executing a volume scanning program, scanning the volume on the storage cluster and generating a vddbench script.
And S5, executing the vdbech script to test the race performance, and outputting a test result.
According to the method for testing the race performance of the multi-control cluster, provided by the embodiment of the invention, the automatic configuration of the test environment is realized through the execution program, the performance test is automatically carried out after the configuration of the test environment is completed, manual operation is not needed, the one-key test of the front-end race performance of the multi-control cluster is realized, the time of a tester on the construction of a test environment configuration test script is saved, and the test is more efficient.
The following steps are described in detail to provide a further understanding of the present invention.
(1) And executing the environment configuration program to configure the test environment.
The environment configuration includes three aspects: and configuring the secret-free login among all servers, configuring the secret-free login of a master station of the server to the storage cluster, and configuring an Ethernet port of the storage cluster.
In a first aspect, configuring a secret-free login between servers specifically includes the following steps.
S1-11, using sh-keygen to generate a secret key and a public key on each server;
s1-12, collecting all public keys into a total authorization key file, wherein the authorization key file comprises the authentication of all mutually trusted machines;
s1-13, distributing the authorization key file to all servers.
The ssh-keygen is used for generating a key and a public key on each server, all public key files are collected into a total authorized key file, the key file contains the authentication of all mutually trusted machines and is distributed to all servers, and therefore mutually trusted secret-free login is achieved among all servers.
In a second aspect, configuring a server master site to perform a password-free login to a storage cluster specifically includes the following steps.
S1-21, sending the public key file of the server master site to an upgrade directory under a storage cluster super user;
s1-22, modifying the user attribute based on the public key file of the server master site, and realizing the secret-free login of the server master site to the storage cluster.
And sending the public key file of the master site of the server in the last step to a storage cluster super user/upgrade directory, and modifying the user attribute by using a user command to enable the server to log in for storage without secret.
In a third aspect, configuring a storage cluster ethernet port specifically includes the following steps.
S1-31, a server master site checks storage ports of a storage cluster, retrieves all 25G ports, captures port IDs and node IDs of all 25G ports and stores the port IDs and the node IDs in variables;
s1-32, calling a variable to be transmitted to a parameter required by a configuration port IP command;
s1-33, executing a configuration port IP command to configure the Ethernet ports of the storage cluster, and distinguishing two ports of each 25G network card through odd-even judgment in the configuration process to ensure that the two ports of the same 25G network card are not in the same network segment.
And checking the storage ports at the server master station, retrieving the 25G ports, capturing the port ID and the node ID of each port, storing the port ID and the node ID in a variable, and calling the variable to transfer the variable to a parameter required by the port IP configuration command. Meanwhile, each 25G network card requires that two ports cannot be in the same network segment, so that two ports of each clip are distinguished through simple odd-even judgment, and the two ports of the same card are not in the same network segment.
(2) And executing a host establishing online program, establishing a race host on the storage cluster, and performing online configuration on the race host.
The method for realizing automatic host creation on the storage cluster and host end discovery and connection of the stored Ethernet port specifically comprises the following steps.
S2-1, a server main site obtains a host nqn parameter from a host nqn file;
s2-2, login of the storage cluster without secret is carried out, and a once host is created according to the obtained nqn parameters of the host;
s2-3, checking an Ethernet port of the storage cluster, and storing an Ethernet port IP as a variable;
s2-4, using the stored variables as input parameters discovered by the race host, executing a port discovery command, and obtaining a storage identifier of the storage cluster;
and S2-5, connecting all Ethernet ports of the storage cluster by using the storage identifier to connect the once host.
The hostnqn file is checked at the server side, the nqn of the host is stored in the hostnqn file and is used as a parameter, the password-free login storage side executes the creation of the race host, the state of the host just created is offline, a connection relation needs to be established between the host side and the storage, and the establishment of the relation is the discovery and connection of the Ethernet port IP. The server stores the IP as a variable by checking the stored Ethernet port, executes a port discovery command by using the variable as an input parameter for the race discovery to obtain a stored subqn (storage identifier), uses the stored subqn to connect and store all the Ethernet ports, and when the storage end checks the state of the host, the host is in an online state at the moment.
(3) And executing a volume creation mapping program, creating a volume in the storage cluster and mapping the volume to the once host.
A server main site logs in a storage cluster in a secret-free mode, 48 volumes are created in the storage cluster, the 48 volumes are divided into 4 parts, each part is provided with 12 volumes, and each 12 volumes are mapped to a once host.
(4) And executing a volume scanning program, scanning the volume on the storage cluster and generating a vdbench script.
The method comprises the following steps of automatically scanning a volume by using an inpath and generating a vdbech script by using a host side.
S4-1, creating a performance test file under a vdbecch directory of a server main site, and writing hd parameters of the vdbecch, including a remotely used pace host and a login mode;
s4-2, interacting with a user, judging whether to perform a compression retry test on the volume, and prompting the user to input a compression rate, a deduplication rate and a block size if the compression retry test is performed; if not, entering the next step;
s4-3, performing path scanning aggregation by using a multi-path tool, checking the mapped volume, obtaining a path of the volume, storing the path of the volume into a performance test file, and setting a race host name;
s4-4, remotely logging in other servers without secret, and executing the step S4-3;
and S4-5, writing the wd parameter of the vdbench into a performance test file, wherein the performance test file comprises the working load parameter of the operation test of the storage equipment, and the working load parameter comprises the number of issued IOs per second, a read-write ratio column, a random read-write ratio column and the size of a transmission block.
Firstly, creating a performance test file under a directory of the vdbench at a server main site, and writing hd parameters of the vdbench, including a host used remotely and a login mode; interacting with a user, judging whether to perform compression deduplication testing on the volume, if the user selects to perform the compression deduplication testing, prompting the user to input a compression rate, a deduplication rate and a block size, and if the user does not perform the compression deduplication testing, skipping the step; scanning and aggregating paths by using a multipath tool inpath, checking the mapped volume by using an inpath query command, storing and writing the checked path of the volume into a performance test file, and setting a host name; remotely logging in other servers without secret by the same principle, scanning and aggregating paths by using inpath, and writing the paths and the host names of the volumes into a performance test file; and finally, writing the wd parameter of the vdbench into a performance test file, namely, carrying out operation test on the storage equipment according to the workload, wherein the operation test comprises the steps of issuing IO (input/output) number, reading and writing proportion, random reading and writing proportion and the size of a transmission block per second.
(5) And executing the vdbech script to test the race performance and outputting a test result.
The method comprises the following steps of automatically executing the vdbech script and outputting an execution result, wherein the method specifically comprises the following steps:
s5-1, executing the performance test file generated in the step S4;
and S5-2, storing the test result into a specific file.
And performing background execution on the performance test file generated in the step S4, and storing the test result in a specific file in the current directory for a tester to check and analyze the test result.
The embodiment of the method for testing the multi-control cluster race performance is described in detail, and the method for testing the multi-control cluster race performance is described based on the embodiment.
Fig. 3 is a schematic block diagram of a structure of a multi-control cluster race performance testing apparatus provided in an embodiment of the present invention, and as shown in fig. 3, the apparatus includes: an environment configuration module 101, a host creation online module 102, a volume creation mapping module 103, a volume scanning module 104, and a test execution module 105.
The environment configuration module 101: the execution environment configuration program performs test environment configuration including,
and configuring the secret-free login among all the servers, configuring the secret-free login of the master station of the servers to the storage cluster, and configuring the Ethernet port of the storage cluster.
The host-created online module 102: and executing a host establishing online program, establishing a race host on the storage cluster, and performing online configuration on the race host.
Volume creation mapping module 103: and executing a volume creation mapping program, creating a volume in the storage cluster and mapping the volume to the once host.
The volume scanning module 104: and executing a volume scanning program, scanning the volume on the storage cluster and generating a vdbench script.
The test execution module 105: and executing the vdbech script to test the race performance and outputting a test result.
The multi-control cluster race performance testing device of this embodiment is used for implementing the foregoing multi-control cluster race performance testing method, and therefore a specific implementation manner in the device may be found in the foregoing embodiment section of the multi-control cluster race performance testing method, and therefore, the specific implementation manner may refer to descriptions of corresponding respective section embodiments, and is not described herein again.
In addition, since the multi-control cluster race performance testing device of this embodiment is used to implement the multi-control cluster race performance testing method, the role thereof corresponds to that of the method described above, and details are not described here.
Fig. 4 is a schematic structural diagram of a terminal device 400 according to an embodiment of the present invention, including: a processor 410, a memory 420, and a communication unit 430. The processor 410 is configured to implement the following steps when implementing the multi-control cluster race performance test program stored in the memory 420:
s1, executing an environment configuration program to configure a test environment, including,
configuring a secret-free login among all servers, configuring a secret-free login of a master station point of the server to a storage cluster, and configuring an Ethernet port of the storage cluster;
s2, executing a host establishing online program, establishing a race host on the storage cluster, and performing online configuration on the race host;
s3, executing a volume creation mapping program, creating a volume in the storage cluster and mapping the volume to the once host;
s4, executing a volume scanning program, scanning the volumes on the storage cluster and generating a vdbech script;
and S5, executing the vdbech script to test the race performance, and outputting a test result.
According to the invention, the automatic configuration of the test environment is realized by executing the program, and the performance test is automatically carried out after the test environment configuration is completed, so that the manual operation is not needed, the one-key test on the front-end rock performance of the multi-control cluster is realized, the time of a tester on building the test environment configuration test script is saved, and the test is more efficient.
The terminal apparatus 400 includes a processor 410, a memory 420, and a communication unit 430. The components communicate via one or more buses, and those skilled in the art will appreciate that the architecture of the server shown in the figures is not intended to be limiting, and that it may be a bus architecture, a star architecture, a combination of more or fewer components than shown, or a different arrangement of components.
The memory 420 may be used for storing instructions executed by the processor 410, and the memory 420 may be implemented by any type of volatile or non-volatile storage terminal or combination thereof, such as a Static Random Access Memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, a magnetic disk, or an optical disk. The executable instructions in memory 420, when executed by processor 410, enable terminal 400 to perform some or all of the steps in the method embodiments described below.
The processor 410 is a control center of the storage terminal, connects various parts of the entire electronic terminal using various interfaces and lines, and performs various functions of the electronic terminal and/or processes data by operating or executing software programs and/or modules stored in the memory 420 and calling data stored in the memory. The processor may be formed by an Integrated Circuit (IC), for example, a single packaged IC, or a plurality of packaged ICs with the same or different functions. For example, the processor 410 may include only a Central Processing Unit (CPU). In the embodiment of the present invention, the CPU may be a single operation core, or may include multiple operation cores.
A communication unit 430, configured to establish a communication channel so that the storage terminal can communicate with other terminals. And receiving user data sent by other terminals or sending the user data to other terminals.
The present invention also provides a computer storage medium, wherein the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a Random Access Memory (RAM).
The computer storage medium stores a multi-control cluster race performance test program, and when the multi-control cluster race performance test program is executed by a processor, the following steps are realized:
s1, executing an environment configuration program to configure a test environment, including,
configuring the secret-free login among all servers, configuring the secret-free login of a master station point of the servers to a storage cluster, and configuring an Ethernet port of the storage cluster;
s2, executing a host establishing online program, establishing a pace host on the storage cluster, and performing online configuration on the pace host;
s3, executing a volume creation mapping program, creating a volume in the storage cluster and mapping the volume to the once host;
s4, executing a volume scanning program, scanning the volumes on the storage cluster and generating a vdbech script;
and S5, executing the vdbech script to test the race performance, and outputting a test result.
According to the invention, the automatic configuration of the test environment is realized by executing the program, and the performance test is automatically carried out after the test environment configuration is completed, so that the manual operation is not needed, the one-key test on the front-end rock performance of the multi-control cluster is realized, the time of a tester on building the test environment configuration test script is saved, and the test is more efficient.
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented as software plus a required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be substantially or partially embodied in the form of a software product, the computer software product is stored in a storage medium, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and various media capable of storing program codes include several instructions for enabling a computer terminal (which may be a personal computer, a server, or a second terminal, a network terminal, etc.) to execute all or part of the steps of the method in the embodiments of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The above disclosure is only for the preferred embodiments of the present invention, but the present invention is not limited thereto, and any non-inventive changes that can be made by those skilled in the art and several modifications and amendments made without departing from the principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. A method for testing the race performance of a multi-control cluster is characterized by comprising the following steps:
s1, executing an environment configuration program to configure a test environment, including,
configuring the secret-free login among all servers, configuring the secret-free login of a master station point of the servers to a storage cluster, and configuring an Ethernet port of the storage cluster;
s2, executing a host establishing online program, establishing a race host on the storage cluster, and performing online configuration on the race host;
s3, executing a volume creation mapping program, creating a volume in the storage cluster and mapping the volume to the once host;
s4, executing a volume scanning program, scanning the volumes on the storage cluster and generating a vdbech script;
and S5, executing the vdbech script to test the race performance, and outputting a test result.
2. The method for testing the performance of the multiple-control cluster race according to claim 1, wherein step S1 configures a secret-free login between the servers, and specifically comprises:
s1-11, using sh-keygen to generate a secret key and a public key on each server;
s1-12, collecting all public keys into a total authorization key file, wherein the authorization key file comprises the authentication of all mutually trusted machines;
s1-13, distributing the authorization key file to all servers.
3. The method for testing the performance of the multiple-control cluster race according to claim 2, wherein the step S1 of configuring the server master station for the password-free login of the storage cluster specifically comprises:
s1-21, sending the public key file of the server master site to an upgrade directory under a storage cluster super user;
s1-22, modifying the user attribute based on the public key file of the server master site, and realizing the secret-free login of the server master site to the storage cluster.
4. The method for testing the performance of the multiple control cluster race according to claim 3, wherein the step S1 of configuring the storage cluster ethernet port specifically comprises:
s1-31, a server master site checks storage ports of a storage cluster, retrieves all 25G ports, captures port IDs and node IDs of all 25G ports and stores the port IDs and the node IDs in variables;
s1-32, calling a variable to transmit to a parameter required by a configuration port IP command;
s1-33, executing a configuration port IP command to configure the Ethernet port of the storage cluster, and distinguishing two ports of each 25G network card through odd-even judgment in the configuration process to ensure that the two ports of the same 25G network card are not in the same network segment.
5. The method for testing the race performance of the multi-control cluster according to claim 4, wherein the step S2 specifically comprises:
s2-1, a server main site obtains a host nqn parameter from a host nqn file;
s2-2, login of the storage cluster without secret is carried out, and creation of a once host is carried out according to the acquired nqn parameters of the host;
s2-3, checking an Ethernet port of the storage cluster, and storing an Ethernet port IP as a variable;
s2-4, using the stored variables as input parameters discovered by the race host, executing a port discovery command, and obtaining a storage identifier of the storage cluster;
and S2-5, connecting all Ethernet ports of the storage cluster by using the storage identifier, and connecting the race host.
6. The method for testing the race performance of the multi-control cluster according to claim 5, wherein the step S3 specifically comprises:
a server main site logs in a storage cluster in a secret-free mode, 48 volumes are created in the storage cluster, the 48 volumes are divided into 4 parts, each part is provided with 12 volumes, and each 12 volumes are mapped to a once host.
7. The method for testing the race performance of the multi-control cluster according to claim 6, wherein the step S4 specifically comprises:
s4-1, creating a performance test file under a server main site vdbech directory, and writing hd parameters of the vdbech, including a remotely used once host and a login mode;
s4-2, interacting with a user, judging whether to perform a compression retry test on the volume, and if so, prompting the user to input a compression rate, a deduplication rate and a block size; if not, entering the next step;
s4-3, performing path scanning aggregation by using a multi-path tool, checking the mapped volume, saving the obtained path of the volume into a performance test file, and setting a race host name;
s4-4, remotely logging in other servers without secret, and executing the step S4-3;
s4-5, writing the wd parameter of the vdbench into a performance test file, wherein the wd parameter comprises a working load parameter of a storage device operation test, and the working load parameter comprises the IO number issued per second, a read-write ratio column, a random read-write ratio column and the size of a transmission block;
correspondingly, step S5 specifically includes:
s5-1, executing the performance test file generated in the step S4;
and S5-2, storing the test result into a specific file.
8. A multi-control cluster race performance testing device is characterized by comprising,
an environment configuration module: the execution environment configuration program performs test environment configuration including,
configuring a secret-free login among all servers, configuring a secret-free login of a master station point of the server to a storage cluster, and configuring an Ethernet port of the storage cluster;
the host machine establishes an online module: executing a host establishing online program, establishing a race host on the storage cluster, and performing online configuration on the race host;
volume creation mapping module: executing a volume creation mapping program, creating a volume in the storage cluster and mapping the volume to the once host;
a volume scanning module: executing a volume scanning program, scanning the volume on the storage cluster and generating a vdbench script;
the test execution module: and executing the vdbech script to test the race performance and outputting a test result.
9. A terminal, comprising:
the memory is used for storing the multi-control cluster race performance test program;
a processor, configured to implement the steps of the multi-control cluster race performance testing method according to any one of claims 1 to 7 when executing the multi-control cluster race performance testing program.
10. A computer readable storage medium, having stored thereon a multi-control cluster race performance testing program that, when executed by a processor, performs the steps of the multi-control cluster race performance testing method of any of claims 1-7.
CN202211035430.8A 2022-08-26 2022-08-26 Multi-control cluster race performance testing method, device, terminal and storage medium Pending CN115391202A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211035430.8A CN115391202A (en) 2022-08-26 2022-08-26 Multi-control cluster race performance testing method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211035430.8A CN115391202A (en) 2022-08-26 2022-08-26 Multi-control cluster race performance testing method, device, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN115391202A true CN115391202A (en) 2022-11-25

Family

ID=84122063

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211035430.8A Pending CN115391202A (en) 2022-08-26 2022-08-26 Multi-control cluster race performance testing method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN115391202A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115529236A (en) * 2022-09-05 2022-12-27 苏州浪潮智能科技有限公司 Lossless network configuration method and device and computer equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115529236A (en) * 2022-09-05 2022-12-27 苏州浪潮智能科技有限公司 Lossless network configuration method and device and computer equipment

Similar Documents

Publication Publication Date Title
WO2020151483A1 (en) Stress testing system for internet-of-things platform, method, device, and server
KR20090065747A (en) System for load regenerating using packets of load test and its method
CN104317726A (en) Testing method for storage IO performance
CN110519127B (en) Network delay detection method, device and storage medium
CN102426548B (en) Debugging method, debugger and debugging system for embedded system
CN115391202A (en) Multi-control cluster race performance testing method, device, terminal and storage medium
CN101656642B (en) Method, device and system for testing authentication performance of network access equipment
CN112882877A (en) Reliability test method and device for electric energy meter operating system and computer equipment
CN109428778B (en) Mainboard network connectivity test method and device
CN111966551A (en) Method, system, terminal and storage medium for verifying remote command execution result
CN105391601A (en) Network management equipment performance testing method and system
WO2015084140A1 (en) A system and method for emulating multiple independent wireless client devices in the cloud
CN114338493A (en) NCSI test method, system, device and storage medium based on network protocol stack
CN116743619A (en) Network service testing method, device, equipment and storage medium
CN113872826B (en) Network card port stability testing method, system, terminal and storage medium
Hine et al. Scalable emulation of enterprise systems
CN114564387A (en) Scene type automatic testing method and system for OpenStack cloud platform
CN115017864A (en) Authentication method, authentication apparatus, electronic device, and computer-readable storage medium
CN110955537B (en) Method and device for containing pipes by physical machine
CN114020678A (en) Redirection method, device and system for server serial console and electronic equipment
CN112272125A (en) Method, system, terminal and storage medium for testing load balancing protocol
CN114490202B (en) Password equipment testing method and device, electronic equipment and storage medium
CN111884837A (en) Migration method and device of virtual encryption machine and computer storage medium
CN101335654B (en) Interface positioning test method and system
CN109710483A (en) A kind of smashclp function test method, device, terminal 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