A pressure testing method, device, equipment and storage medium

By converting the specified memory into a virtual memory disk in a stress test environment, the disk bottleneck problem when the device is subjected to large requests is solved, and the normal progress of the test process is ensured without increasing the test cost.

CN112000574BActive Publication Date: 2024-08-27CHINA CONSTRUCTION BANK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010832882.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-18
Publication Date
2024-08-27
Estimated Expiration
2040-08-18

AI Technical Summary

Technical Problem

Existing stress testing methods are prone to disk bottlenecks when the device is under heavy request pressure, resulting in increased testing costs and complexity, and cannot meet users' needs for cost and convenience.

Method used

By running the specified business in the preset stress test environment, the running text is obtained and saved in the configured disk, and the disk operation indicators are detected. When the indicators exceed the preset threshold, the specified memory is converted into a virtual memory disk to expand the disk capacity, thereby Avoid disk bottlenecks.

Benefits of technology

It can avoid disk bottlenecks, reduce test costs, simplify the test process, and improve test efficiency and security without increasing actual hardware resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112000574B
    Figure CN112000574B
Patent Text Reader

Abstract

The present invention discloses a stress test method, device, equipment and storage medium, the method comprising: running a specified business under a preset stress test environment and obtaining a running text; saving the running text in a configured disk and detecting the running index of the disk; when it is determined that the running index exceeds a preset threshold, converting the specified memory into a virtual memory disk so that the virtual memory disk expands the disk; and obtaining the stress test result according to the expanded disk. By converting the specified memory into a virtual memory disk, the disk bottleneck in the test process can be avoided without artificially adding actual hardware resources, thereby ensuring the normal progress of the test process without increasing the test cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of software testing technology, and in particular to a stress testing method, apparatus, device and storage medium. Background Art

[0002] With the development of the software testing industry, equipment stress testing is becoming more and more popular. Stress testing uses automated testing tools to simulate a variety of normal peak and abnormal load conditions to test various performance indicators of the equipment. By allowing the equipment to run designated services for a long time or with an extremely large load, the performance, reliability, and stability of the equipment are tested. During the stress test, a large number of temporary files will be generated during the operation of the designated service. When the equipment is under great pressure, it will cause insufficient equipment resources, for example, the disk will reach a bottleneck.

[0003] In order to avoid disk bottlenecks affecting the normal progress of device stress testing and hindering the determination of performance indicators of the device under heavy request pressure, adding hardware resources, such as hard disks, is currently commonly used. However, this method will significantly increase the cost of the test, and when the test is completed, a large amount of temporary text needs to be manually deleted, which increases the complexity of the stress test. Therefore, the existing stress testing method cannot meet users' needs for cost and convenience. Summary of the invention

[0004] The embodiment of the present invention provides a stress test method, device, equipment and storage medium to avoid hard disk bottleneck without increasing the test copy and ensure the normal progress of the test process.

[0005] In a first aspect, an embodiment of the present invention provides a stress testing method, including:

[0006] Run the specified business in the preset stress test environment and obtain the running text;

[0007] The running text is saved in a configured disk, and the running index of the disk is detected;

[0008] When it is determined that the operating indicator exceeds a preset threshold, converting the designated memory into a virtual memory disk so that the virtual memory disk expands the capacity of the disk;

[0009] Obtain stress test results based on the expanded disk.

[0010] In a second aspect, an embodiment of the present invention provides a pressure testing device, including:

[0011] The running text acquisition module is used to run the specified business under the preset stress test environment and obtain the running text;

[0012] An operation index acquisition module, used for saving the operation text in a configured disk and detecting the operation index of the disk;

[0013] A memory conversion module, used for converting the specified memory into a virtual memory disk when it is determined that the operating index exceeds a preset threshold, so that the virtual memory disk expands the capacity of the disk;

[0014] The stress test result acquisition module is used to obtain the stress test result according to the expanded disk.

[0015] In a third aspect, an embodiment of the present invention further provides a device, the device comprising:

[0016] one or more processors;

[0017] A storage device for storing one or more programs;

[0018] When the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any embodiment of the present invention.

[0019] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in any embodiment of the present invention.

[0020] In the embodiment of the present invention, by converting the designated memory into a virtual memory disk, the disk bottleneck in the test process can be avoided without manually adding actual hardware resources, thereby ensuring the normal progress of the test process without increasing the test cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] FIG. 1( a ) is a flow chart of a pressure testing method provided in Embodiment 1 of the present invention;

[0022] FIG1( b ) is an architecture diagram of a distributed system provided in Embodiment 1 of the present invention;

[0023] Figure 2 is a flow chart of a pressure testing method provided by Embodiment 2 of the present invention;

[0024] Figure 3 is a structural schematic diagram of a pressure testing device provided in Embodiment 3 of the present invention;

[0025] Figure 4 This is a structural block diagram of a device provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION

[0026] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0027] Embodiment 1

[0028] FIG. 1( a) is a flow chart of a stress test method provided by Embodiment 1 of the present invention. This embodiment can be applied to avoid hard disk bottlenecks without increasing the test cost and ensure the normal progress of the test process. The method can be executed by a stress test device in the embodiment of the present invention, which can be implemented by software and / or hardware. The method in the embodiment of the present invention specifically includes the following steps:

[0029] Step 101: Run a specified business in a preset stress test environment and obtain the running text.

[0030] Optionally, before running the designated business in the preset stress test environment and obtaining the running text, the method may also include: receiving a test environment setting instruction; and obtaining the preset stress test environment according to the setting instruction.

[0031] Optionally, the specified services include: map cutting function.

[0032] Optionally, the test environment setting instruction includes: specifying the type of business, the disk location or the disk size for the stress test.

[0033] Specifically, in this embodiment, before performing a stress test, an environment setting instruction input by a user through a human-computer exchange page may be received, wherein the environment setting instruction may specifically include the specified business type used for the stress test, the disk location and size for the stress test, and the type of software required to be installed for the stress test. According to the test environment setting instruction, the specified business type is selected, the disk location and size are determined, and the required software is installed to obtain a preset stress test environment. Of course, this embodiment is only illustrative by way of example, and does not limit the specific content contained in the setting instruction. As long as the preset stress test environment can be obtained, it is within the scope of protection of this application.

[0034] The designated service specifically refers to the map cutting function. When the device executes the map cutting function, a large amount of running text, i.e., temporary images, will be generated. In the process of continuously generating a large number of temporary images, the carrying capacity of the device is stress tested. In this implementation, the map cutting function is used as an example for illustration, and the specific type of the designated service is not limited in actual application. As long as the corresponding running text can be generated by running the designated service, it is within the protection scope of this application, and it is not limited in the implementation of this application.

[0035] Optionally, running the specified business in a preset stress test environment and obtaining the running text may include: obtaining an execution instruction in the preset stress test environment, wherein the execution instruction includes the number of concurrent users; running the specified business according to the execution instruction and obtaining the running text.

[0036] Specifically, when the preset stress test environment has been configured, a formal stress test can be performed, which can be obtained by obtaining execution instructions, including the number of concurrent users. The number of concurrent users can be set to 2000 and 4000 in sequence to simulate different numbers of users running the map cutting function at the same time, so as to achieve a continuous increase in the number of concurrent users to stress test the device. When simulating different numbers of concurrent users to execute the map cutting function, a large number of temporary images will be generated.

[0037] Step 102, save the running text in the configured disk, and detect the running index of the disk.

[0038] Optionally, saving the running text in a configured disk and detecting the running indicators of the disk may include: saving the running text in a configured disk according to a preset path; detecting the running indicators of the disk when saving the running text, wherein the running indicators include: drive activity time ratio, read speed, write speed or data transmission speed.

[0039] Specifically, during the stress test, the running text, i.e., the temporary image, will be saved in the configured disk. The disk is an actual hardware resource, and the size, location, and storage path of the disk are predetermined according to the test environment setting instructions when the test environment is determined in order to support the stress test. During the stress test, the running indicators of the disk when saving the running text are detected in real time, for example, the drive activity time ratio Disk Time, the read speed Avg.Disk Sec / Read, the write speed Avg.Disk Sec / Write, or the data transfer speed Avg.Disk Sec / Transfer. Of course, this embodiment is only for illustration by example, and the running indicators may also include the Idle Time, which is the percentage of time when no request is processed and there is no request in the queue, so the specific definition of the running indicators is not limited.

[0040] Step 103: when it is determined that the operation index exceeds a preset threshold, the designated memory is converted into a virtual memory disk, so that the virtual memory disk expands the capacity of the disk.

[0041] Optionally, when it is determined that the operating indicator exceeds a preset threshold, converting the specified memory into a virtual memory disk may include: when it is determined that the operating indicator exceeds the preset threshold, obtaining a configuration instruction; determining a configuration location according to the configuration instruction; and converting the specified memory into a virtual memory disk at the configuration location.

[0042] Optionally, the configuration instruction includes: a specified memory, and a configuration position corresponding to the specified memory.

[0043] After obtaining the operation index of the disk, the obtained operation index is compared with the preset threshold value. For example, when it is determined that the value of the drive activity time ratio Disk Time is greater than 90%, or the value of at least one of the reading speed Avg.Disk Sec / Read, the writing speed Avg.Disk Sec / Write and the data transmission speed Avg.Disk Sec / Transfer is greater than 20 milliseconds, it is determined that the operation index exceeds the preset threshold value. In this case, the configuration instruction directly input by the user is obtained, or the configuration instruction previously input by the user is obtained by triggering, so as to obtain the configuration position according to the configuration instruction, and convert the designated memory at the configuration position into a virtual memory disk, so that the disk can be expanded without increasing the real hardware resources, and the designated memory refers to the memory determined by the user according to the actual needs. For example, if the device itself has 5GB of memory and the device itself uses 2GB, the remaining 3GB can be used as the designated memory.

[0044] Among them, since the virtual memory disk converts the memory into a disk for use, the virtual memory disk is essentially different from the hardware of the device itself, and has the properties of memory, such as high read and write efficiency, improved IO utilization, etc. By converting the memory into a virtual memory disk, it can effectively avoid the situation where the stress test cannot be carried out normally due to insufficient storage resources.

[0045] Step 104, obtaining stress test results according to the expanded disk.

[0046] Optionally, when it is determined that the running index exceeds a preset threshold, after converting the designated memory into a virtual memory disk, the method may further include: setting a storage path for the running text for the virtual memory disk.

[0047] Optionally, obtaining stress test results based on the expanded disk may include: obtaining new operation text generated by the specified business operation; saving the new operation text in the virtual memory disk according to the storage path; obtaining status parameters of the disk and the virtual memory disk, and obtaining stress test results based on the status parameters.

[0048] Specifically, after the designated memory is converted into a virtual memory disk, a storage path for the running text is set for the virtual memory disk, so that when the device performs stress testing by running the designated service, the newly generated running text can be saved in the created virtual memory disk according to the set storage path. Thus, during the stress test, the stress test will not be interrupted or unable to be performed due to insufficient hardware resources. During the stress test, the operating pressure of the device is continuously increased by continuously increasing the number of concurrent users, and the status parameters of the disk and the virtual memory disk can be obtained, wherein the status parameters can include the operating indicators mentioned above, and the relevant parameters of the CPU of the device itself are also obtained, for example, %user indicates the total proportion of time spent on the operation of the designated service, %system indicates the proportion of time spent by the CPU on the operation of the kernel space, and %idle indicates the proportion of time when the CPU is in an idle state. At the same time, other performance indicators of the device are also obtained, so that the values ​​of various indicators obtained are used as the results of the device stress test.

[0049] Among them, this embodiment can also be applied to a distributed system including multiple device nodes, as shown in FIG1(b) which is an architecture diagram of a distributed system, wherein the distributed system includes a master node and multiple child nodes, and the master node device and the child node device can be stress tested at the same time, so that a virtual memory disk can be obtained in each node by memory conversion to expand the disk contained in each node itself. Among them, since the master node can send data to the child node, after creating a virtual memory disk on the child node, a storage path of the virtual memory disk in the child node can be established in a linking manner, so that the newly generated running text in the master node can be saved in the virtual memory disk of the child node device according to the storage path. As shown in FIG1(b), the cache directory can specifically be the storage path described above, and the virtual memory disk can specifically be the installed software tool for converting the specified memory into a virtual memory disk.

[0050] It should be noted that since the created virtual memory disk is volatile, the data stored in it can be automatically deleted when it is uninstalled. Therefore, after completing the test, you only need to uninstall the created virtual memory disk through the installed software tool to quickly release the data without the need for users to manually delete it, thereby simplifying the complexity of the stress testing process and improving the safety of the testing process.

[0051] In the embodiment of the present invention, by converting the designated memory into a virtual memory disk, the disk bottleneck in the test process can be avoided without manually adding actual hardware resources, thereby ensuring the normal progress of the test process without increasing the test cost.

[0052] Embodiment 2

[0053] Figure 2 This is a flow chart of a stress testing method provided in Example 2 of the present invention. This embodiment is based on the above embodiment. After obtaining the stress test result based on the expanded disk, it also includes: when it is determined that the stress test result has failed due to insufficient disk, an alarm message is generated, and an alarm is issued according to the alarm message.

[0054] Step 201: Run a specified business in a preset stress test environment and obtain the running text.

[0055] Optionally, before running the designated business in the preset stress test environment and obtaining the running text, the method may also include: receiving a test environment setting instruction; and obtaining the preset stress test environment according to the setting instruction.

[0056] Optionally, the specified services include: map cutting function.

[0057] Optionally, running the specified business in a preset stress test environment and obtaining the running text may include: obtaining execution instructions in the preset stress test environment, wherein the specified instructions include the number of concurrent users; running the specified business according to the execution instructions and obtaining the running text.

[0058] Step 202, save the running text in the configured disk, and detect the running index of the disk.

[0059] Optionally, saving the running text in a configured disk and detecting the running indicators of the disk may include: saving the running text in a configured disk according to a preset path; detecting the running indicators of the disk when saving the running text, wherein the running indicators include: drive activity time ratio, read speed, write speed or data transmission speed.

[0060] Step 203: when it is determined that the operation index exceeds a preset threshold, the designated memory is converted into a virtual memory disk, so that the virtual memory disk expands the capacity of the disk.

[0061] Optionally, when it is determined that the operating indicator exceeds a preset threshold, converting the specified memory into a virtual memory disk may include: when it is determined that the operating indicator exceeds the preset threshold, obtaining a configuration instruction; determining a configuration location according to the configuration instruction; and converting the specified memory into a virtual memory disk at the configuration location.

[0062] Step 204, obtaining stress test results according to the expanded disk.

[0063] Optionally, when it is determined that the running index exceeds a preset threshold, after converting the designated memory into a virtual memory disk, the method may further include: setting a storage path for the running text for the virtual memory disk.

[0064] Optionally, obtaining stress test results based on the expanded disk may include: obtaining new operation text generated by the specified business operation; saving the new operation text in the virtual memory disk according to the storage path; obtaining status parameters of the disk and the virtual memory disk, and obtaining stress test results based on the status parameters.

[0065] Step 205: When it is determined that the stress test result has failed due to insufficient disks, an alarm message is generated, and an alarm prompt is given according to the alarm message.

[0066] Optionally, an alarm prompt is given according to the alarm information, including: giving an alarm in the form of an image and / or voice.

[0067] Specifically, in this embodiment, during the stress test, if it is determined based on the stress test results that the test has failed. Since the reasons for the failure of the test include a variety of situations, for example, the device's insufficient processing capacity for high concurrency, errors in the program code, problems with the database, or disk bottlenecks. Since the disk has been expanded by converting the memory to a virtual memory disk during the above operation, if it is determined that the reason for the failure of the test is insufficient disk, it means that the memory has not been successfully converted to a virtual memory disk in the above operation, and a fault has occurred during the above memory conversion process, which may be due to the failure of the conversion tool, the storage path setting error, etc. In order to remind the tester to perform maintenance in a timely manner, an alarm message will be generated when it is determined that the reason for the failure of the test is insufficient disk.

[0068] Among them, in this embodiment, the alarm information is given in the form of images and / or voice. For example, a flashing red light is used to give an alarm, or a voice message "The memory conversion operation failed, please pay attention to maintenance" is issued. Of course, this embodiment is only an example for illustration, and does not limit the specific method of alarm. As long as it can serve as a reminder to the tester, it is within the scope of protection of this application.

[0069] In the embodiment of the present invention, by converting the designated memory into a virtual memory disk, the disk bottleneck in the test process can be avoided without manually adding actual hardware resources, thereby ensuring the normal progress of the test process without increasing the test cost. When it is determined that the test fails due to insufficient disk, an alarm message will be generated to prompt the tester that the memory conversion process has failed so that timely maintenance can be carried out.

[0070] Embodiment 3

[0071] Figure 3 It is a heterogeneous resource arrangement device provided by the fourth embodiment of the present invention, which specifically includes: an operation text acquisition module 301, an operation indicator acquisition module 302, a memory conversion module 303 and a stress test result acquisition module 304.

[0072] The operation text acquisition module 301 is used to run a specified business under a preset stress test environment and obtain an operation text;

[0073] The operation index acquisition module 302 is used to save the operation text in the configured disk and detect the operation index of the disk;

[0074] The memory conversion module 303 is used to convert the specified memory into a virtual memory disk when it is determined that the operation index exceeds a preset threshold, so that the virtual memory disk expands the disk capacity;

[0075] The stress test result acquisition module 304 is used to acquire the stress test result according to the disk after the expansion.

[0076] Optionally, the running text acquisition module is specifically used to: obtain execution instructions in a preset stress test environment, wherein the execution instructions include the number of concurrent users; run the specified business according to the execution instructions and obtain the running text.

[0077] Optionally, the specified services include: map cutting function.

[0078] Optionally, an operation indicator acquisition module is used to save the operation text in a configured disk according to a preset path; detect the operation indicators of the disk when saving the operation text, wherein the operation indicators include: drive activity time ratio, read speed, write speed or data transmission speed.

[0079] Optionally, a memory conversion module is used to obtain configuration instructions when it is determined that the operating indicator exceeds a preset threshold; determine the configuration location according to the configuration instructions; and convert the specified memory at the configuration location into a virtual memory disk.

[0080] Optionally, the device also includes: a storage path setting module, used to set the storage path of the running text for the virtual memory disk.

[0081] Optionally, a stress test result acquisition module is used to obtain new operation text generated by the specified business operation; save the new operation text in the virtual memory disk according to the storage path; obtain the status parameters of the disk and the virtual memory disk, and obtain the stress test results based on the status parameters.

[0082] Optionally, the device also includes: a preset stress test environment acquisition module, which is used to receive a test environment setting instruction; and acquire a preset stress test environment according to the setting instruction.

[0083] Optionally, the device also includes an alarm module, which is used to generate an alarm message when it is determined that the pressure test result has failed due to insufficient disk space; the alarm message is sent in the form of an image and / or voice.

[0084] By converting the designated memory into a virtual memory disk, the disk bottleneck in the test process can be avoided without manually adding actual hardware resources, thereby ensuring the normal progress of the test process without increasing the test cost.

[0085] The above device can execute the stress test method provided by any embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not described in detail in this embodiment, please refer to the method provided by any embodiment of the present invention.

[0086] Embodiment 4

[0087] Figure 4It is a structural schematic diagram of a computer device provided by an embodiment of the present invention. Figure 4 A block diagram of an exemplary computer device 412 suitable for use in implementing embodiments of the present invention is shown. Figure 4 The computer device 412 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0088] like Figure 4 As shown, the computer device 412 appears in the form of a general-purpose computing device. The components of the computer device 412 may include, but are not limited to: one or more processors 412, a memory 428, and a bus 418 connecting different system components (including the memory 428 and the processor 416).

[0089] Bus 418 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.

[0090] The computer device 412 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer device 412, including volatile and non-volatile media, removable and non-removable media.

[0091] Memory 428 is used to store instructions. Memory 428 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 430 and / or cache memory 432. Computer device 412 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 434 may be used to read and write non-removable, non-volatile magnetic media ( Figure 4 not shown, usually called a "hard drive"). Although Figure 4 Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 418 via one or more data medium interfaces. The memory 428 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.

[0092] A program / utility 440 having a set (at least one) of program modules 442 may be stored, for example, in memory 428, such program modules 442 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. Program modules 442 generally perform the functions and / or methods of the embodiments described herein.

[0093] The computer device 412 may also communicate with one or more external devices 414 (e.g., keyboard, pointing device, display 424, etc.), one or more devices that enable a user to interact with the computer device 412, and / or any device that enables the computer device 412 to communicate with one or more other computing devices (e.g., network card, modem, etc.). Such communication may be performed via input / output (I / O) interface 422. Furthermore, the computer device 412 may also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN) and / or public network, such as the Internet) via network adapter 420. As shown, the network adapter 420 communicates with other modules of the computer device 412 via bus 418. It should be understood that although Figure 4 Not shown, other hardware and / or software modules may be used in conjunction with computer device 412, including but not limited to microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0094] The processor 416 executes instructions stored in the memory 428 to perform various functional applications and data processing, such as performing the following operations:

[0095] Run the specified business under the preset stress test environment and obtain the running text; save the running text in the configured disk and detect the running index of the disk; when it is determined that the running index exceeds the preset threshold, convert the specified memory into a virtual memory disk so that the virtual memory disk can expand the disk; obtain the stress test result based on the expanded disk.

[0096] Embodiment 5

[0097] Embodiment 5 of the present invention further provides a storage medium including computer executable instructions, wherein the computer executable instructions are used to execute a method for orchestrating heterogeneous resources when executed by a computer processor, the method comprising:

[0098] In response to a request to create a target platform, display a public resource element library, wherein the public resource element library includes a plurality of resource elements of different types;

[0099] In response to element arrangement instructions for at least two target resource elements in the common resource element library, construct an arrangement template matching the target platform;

[0100] Various heterogeneous resources matching the target platform are generated according to the orchestration template.

[0101] Of course, the computer executable instructions of a storage medium including computer executable instructions provided by an embodiment of the present invention are not limited to the method operations described above, and can also execute related operations in the heterogeneous resource orchestration method provided by any embodiment of the present invention.

[0102] Through the above description of the implementation methods, technicians in the relevant field can clearly understand that the present invention can be implemented with the help of software and necessary general-purpose hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute the express cabinet user loss prediction method described in each embodiment of the present invention.

[0103] It is worth noting that in the embodiment of the above-mentioned express locker user churn prediction device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0104] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A stress testing method, characterized in that: include: Run the specified business in the preset stress test environment and obtain the running text; The running text is saved in a configured disk, and the running index of the disk is detected; When it is determined that the operating index exceeds a preset threshold, the designated memory is converted into a virtual memory disk, so that the virtual memory disk expands the capacity of the disk, wherein the virtual memory disk has the attribute characteristics of the memory; Obtain stress test results based on the expanded disk; The step of storing the running text in a configured disk and detecting the running index of the disk comprises: storing the running text in a configured disk according to a preset path; detecting the running index of the disk when storing the running text, wherein the running index comprises: a drive activity time ratio, a reading speed, a writing speed or a data transmission speed; The method of converting the specified memory into a virtual memory disk when it is determined that the operating index exceeds a preset threshold value comprises: obtaining a configuration instruction when it is determined that the operating index exceeds a preset threshold value; determining a configuration position according to the configuration instruction; converting the specified memory into the virtual memory disk at the configuration position, wherein the configuration instruction comprises: a specified memory and a configuration position corresponding to the specified memory; The step of obtaining the stress test result according to the expanded disk includes: obtaining a new operation text generated by the operation of the specified service; Saving the new running text in the virtual memory disk according to the storage path; Obtaining status parameters of the disk and the virtual memory disk, and obtaining the stress test result according to the status parameters, wherein the status parameters include the operation index, the time ratio occupied by the specified business operation, the time ratio of the CPU running the kernel space, and the time ratio of the CPU being in an idle state; After converting the designated memory into a virtual memory disk when it is determined that the operation index exceeds a preset threshold, the method further includes: setting a storage path of the operation text for the virtual memory disk.

2. The method according to claim 1, characterized in that The running of the specified business under the preset stress test environment and obtaining the running text includes: Obtaining an execution instruction in a preset stress test environment, wherein the execution instruction includes the number of concurrent users; The specified service is run according to the execution instruction and the running text is obtained.

3. The method according to claim 2, characterized in that The designated services include: map cutting function.

4. The method according to claim 1, characterized in that: Before running the specified business in the preset stress test environment and obtaining the running text, the method further includes: Receive test environment setting instructions; The preset stress test environment is obtained according to the setting instruction.

5. The method according to claim 4, characterized in that The test environment setting instruction includes: specifying the type of business, the disk location or the disk size for the stress test.

6. The method according to any one of claims 1 to 5, characterized in that: After obtaining the stress test result according to the expanded disk, the method further includes: When it is determined that the stress test result fails due to insufficient disk space, an alarm message is generated; An alarm prompt is given according to the alarm information.

7. The method according to claim 6, characterized in that The step of providing an alarm prompt according to the alarm information includes: The alarm information is sent as an alarm in the form of images and / or voice.

8. A pressure testing device, characterized in that: The device comprises: The running text acquisition module is used to run the specified business under the preset stress test environment and obtain the running text; An operation index acquisition module, used for saving the operation text in a configured disk and detecting the operation index of the disk; A memory conversion module, used for converting the specified memory into a virtual memory disk when it is determined that the operation index exceeds a preset threshold, so that the virtual memory disk expands the capacity of the disk, wherein the virtual memory disk has the attribute characteristics of the memory; A stress test result acquisition module is used to obtain stress test results based on the expanded disk; The operation index acquisition module is used to save the operation text in a configured disk according to a preset path; detect the operation index of the disk when saving the operation text, wherein the operation index includes: drive activity time ratio, reading speed, writing speed or data transmission speed; The method of converting the specified memory into a virtual memory disk when it is determined that the operating index exceeds a preset threshold value comprises: obtaining a configuration instruction when it is determined that the operating index exceeds a preset threshold value; determining a configuration position according to the configuration instruction; converting the specified memory into the virtual memory disk at the configuration position, wherein the configuration instruction comprises: a specified memory and a configuration position corresponding to the specified memory; The step of obtaining the stress test result according to the expanded disk includes: obtaining a new operation text generated by the operation of the specified service; Saving the new running text in the virtual memory disk according to the storage path; Obtaining status parameters of the disk and the virtual memory disk, and obtaining the stress test result according to the status parameters, wherein the status parameters include the operation index, the time ratio occupied by the specified business operation, the time ratio of the CPU running the kernel space, and the time ratio of the CPU being in an idle state; After converting the designated memory into a virtual memory disk when it is determined that the operation index exceeds a preset threshold, the method further includes: setting a storage path of the operation text for the virtual memory disk.

9. A device, characterized in that: The device comprises: one or more processors; A storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.