CN112564996A - Pressure test flow scheduling method, pressure test flow control device and computer readable medium - Google Patents

Pressure test flow scheduling method, pressure test flow control device and computer readable medium Download PDF

Info

Publication number
CN112564996A
CN112564996A CN201910919570.3A CN201910919570A CN112564996A CN 112564996 A CN112564996 A CN 112564996A CN 201910919570 A CN201910919570 A CN 201910919570A CN 112564996 A CN112564996 A CN 112564996A
Authority
CN
China
Prior art keywords
flow
timing
task
rule
flow control
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
CN201910919570.3A
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201910919570.3A priority Critical patent/CN112564996A/en
Publication of CN112564996A publication Critical patent/CN112564996A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0894Packet rate
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/20Traffic policing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/22Traffic shaping
    • H04L47/225Determination of shaping rate, e.g. using a moving window
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling

Abstract

The application provides a pressure test flow scheduling and controlling scheme, which can provide a control interface for a user, then obtain a pressure test task created by the user on the control interface and a plurality of flow control rules input about the pressure test task for generating a timing task, wherein the timing task can be sent to a pressure applying device so as to enable the pressure applying device to output flow for pressure test according to flow information at a timing time, and as the flow control rules can be used for generating the timing task and the timing task comprises the flow information of the timing time and is used for controlling the pressure applying device to output the flow for pressure test according to the flow information at the timing time, for the user, a plurality of flow control rules are input at one time only when the pressure test task is created for combining the timing task, namely the pressure applying device can be controlled to simulate a complex scene with frequently changed flow according to the flow information, therefore, the pressure test conforming to the actual scene is conveniently realized.

Description

Pressure test flow scheduling method, pressure test flow control device and computer readable medium
Technical Field
The present application relates to the field of information technology, and in particular, to a method, a device, and a computer readable medium for pressure test traffic scheduling and control.
Background
With the development of information technology, service providers are able to provide more and more services to users through the internet. To ensure the quality of the service system, it may be necessary to perform a pressure test on the service system, which typically simulates the flow generated by the actual user by controlling the pressure applying device, and tests the performance of the service system at similar flows. In an actual scenario, since traffic from users may change frequently with time, for example, during some peak periods, user traffic may increase sharply, and during other periods, user traffic may decrease sharply, and the like, which may cause traffic carried by the service system in the actual scenario to present a very complex curve.
Current pressure test tools only support manual adjustment of the test flow or simple incrementing or decrementing of the flow at specified intervals. If the mode of manually changing the flow is adopted, the flow needs to be frequently set by testing personnel in the testing process, the operation is complex, and the cost of manual intervention is high. And the flow is increased or reduced according to the specified interval, although frequent setting by testers is not needed, the operation is simplified, but only a scene of step-like change of the flow can be covered, and a complex scene of frequent change of the flow in an actual scene cannot be simulated.
Content of application
An object of the present application is to provide a pressure test traffic scheduling and controlling scheme, so as to solve the problem that a user cannot conveniently simulate a traffic complex change scenario in a pressure test in the existing scheme.
The embodiment of the application provides a pressure test flow scheduling method, which comprises the following steps:
acquiring a plurality of flow control rules;
generating a timing task according to the plurality of flow control rules, wherein the timing task comprises flow information of timing time;
and sending the timing task to a pressure applying device so that the pressure applying device outputs flow for pressure testing according to the flow information at a timing time.
The embodiment of the application provides a pressure test flow control method, which comprises the following steps:
providing a control interface to a user;
the method comprises the steps of obtaining a pressure test task created by a user on a control interface and a plurality of input flow control rules related to the pressure test task, wherein the flow control rules are used for generating a timing task, and the timing task comprises flow information of timing time and is used for controlling pressure applying equipment to output flow for pressure test at the timing time according to the flow information.
The embodiment of the present application further provides a pressure test flow scheduling device, which includes:
the data acquisition module is used for acquiring a plurality of flow control rules;
the data processing module is used for generating a timing task according to the plurality of flow control rules, and the timing task comprises flow information of timing time;
and the data sending module is used for sending the timing task to the pressure applying equipment so as to enable the pressure applying equipment to output the flow for pressure testing at the timing time according to the flow information.
An embodiment of the present application further provides a pressure test flow control device, and the device includes:
the interaction module is used for providing a control interface for a user;
the data acquisition module is used for acquiring a pressure test task created by a user on the control interface and a plurality of input flow control rules related to the pressure test task, the flow control rules are used for generating a timing task, and the timing task contains flow information of timing time and is used for controlling the pressure applying equipment to output flow for pressure test at the timing time according to the flow information.
Further, a computing device is provided in an embodiment of the present application, the device comprising a memory for storing computer program instructions and a processor for executing the computer program instructions, wherein the computer program instructions, when executed by the processor, trigger the device to perform the stress test flow scheduling method.
The embodiment of the application also provides a computer readable medium, wherein computer program instructions are stored on the computer readable medium and can be executed by a processor to realize the pressure test flow scheduling method.
According to the pressure test flow scheduling scheme, a plurality of flow control rules can be acquired, a timing task is generated according to the flow control rules, the timing task is sent to the pressure applying equipment, so that the pressure applying equipment outputs flow for pressure test at timing time according to the flow information, the timing task contains the flow information of the timing time, and the timing task is generated by combining the flow control rules, so that the flow information of the timing time contained in the timing task simulates a complex scene with frequent flow change, and the pressure test conforming to an actual scene is realized.
In addition, the pressure test flow control scheme provided by the embodiment of the application can provide a control interface for a user, and then acquire a pressure test task created by the user on the control interface and a plurality of input flow control rules related to the pressure test task, because the plurality of flow control rules can be used for generating a timing task, and the timing task contains flow information of timing time, so as to control the pressure applying equipment to output flow for pressure test according to the flow information at the timing time, for the user, the plurality of flow control rules only need to be input once when the pressure test task is created, so as to combine the timing task, that is, the pressure applying equipment can be controlled to simulate a complex scene with frequently changed flow according to the flow information, thereby conveniently realizing the pressure test conforming to an actual scene.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
fig. 1 is a processing flow chart of a pressure test traffic scheduling method according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of an actual flow rate variation during a pressure test in the embodiment of the present application;
FIG. 3 is a schematic diagram of another actual flow rate variation during pressure testing in the embodiment of the present application;
FIG. 4 is a schematic diagram of the flow rate variation in a pulse form when a pressure test is performed in the embodiment of the present application;
FIG. 5 is a schematic diagram of a flow variation in a sine wave form when a pressure test is performed in an embodiment of the present application;
FIG. 6 is a schematic view of another flow variation in the form of a sine wave when pressure testing is performed in an embodiment of the present application;
fig. 7 is a schematic structural diagram of a pressure test flow scheduling device according to an embodiment of the present application;
fig. 8 is a schematic diagram of a pressure testing system for implementing traffic scheduling and control according to an embodiment of the present disclosure;
FIG. 9 is a schematic structural diagram of a computing device according to an embodiment of the present application;
the same or similar reference numbers in the drawings identify the same or similar elements.
Detailed Description
The present application is described in further detail below with reference to the attached figures.
In a typical configuration of the present application, the terminal, the devices serving the network each include one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, which include both non-transitory and non-transitory, removable and non-removable media, may implement the information storage by any method or technology. The information may be computer readable instructions, data structures, program means, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
The embodiment of the application provides a pressure test flow scheduling method, which can obtain a plurality of flow control rules, then generate a timing task according to the flow control rules, and send the timing task to a pressure applying device so that the pressure applying device outputs flow for pressure test at a timing time according to the flow information.
When the stress test traffic scheduling method is implemented, the implementation of the main body thereof may include, but is not limited to, implementations such as a network host, a single network server, multiple network server sets, or a computer set based on cloud computing. Here, the Cloud is made up of a large number of hosts or web servers based on Cloud Computing (Cloud Computing), which is a type of distributed Computing, one virtual computer consisting of a collection of loosely coupled computers.
Fig. 1 shows a method for scheduling a stress test flow provided by an embodiment of the present application, where the method includes:
in step S101, a plurality of flow control rules are acquired. The flow control rule contains relevant information for determining the flow rate of the pressure test performed by the pressure applying device at a specific time, for example, the flow control rule may be that the test flow rate is increased or decreased by a preset value at a specific time, or the flow rate is adjusted accordingly when the current flow rate satisfies what condition, etc.
And step S102, generating a timing task according to the plurality of flow control rules, wherein the timing task comprises flow information of timing time. The timing task can be provided for the pressure applying equipment, so that the pressure applying equipment is controlled to output the flow for pressure test at the timing time according to the flow information, and therefore for a user, only a plurality of flow control rules need to be input once when the pressure test task is created, so that the timing task is combined, the pressure applying equipment can be controlled to simulate a complex scene with frequently changed flow according to the flow information, and the pressure test conforming to an actual scene can be conveniently realized.
In some embodiments of the present application, the timing task generated by combining the plurality of flow control rules includes flow information of a timing time, the timing time being a time point determined based on the flow control rules at which an adjustment of the flow of the pressure test is required, and the flow information of the timing time being a flow value adjusted at the adjusted time point. For example, in the embodiment of the present application, a timing task t1 is to adjust the flow rate of the pressure test to 1000 at the time point of 16:30:20, so that the flow rate information of the included timing time is: 16:30:20, 1000, it is understood that the flow rate is set to 1000 at this point in time 16:30: 20.
In an actual scenario, the number of timing tasks that can be determined based on the flow control rule may be multiple, and thus the flow rate of the pressure test may be continuously adjusted for the timing time corresponding to the multiple timing tasks, so that a complex scenario in which the flow rate frequently changes is simulated. In some embodiments of the present application, each flow control rule includes at least first rule information for determining a timing time and second rule information for determining flow information.
The timing time required to adjust the flow may be determined by the first rule information, and may include, for example, a delay time, an interval time, an execution number, and the like, where the delay time refers to a time when the flow adjustment is first performed, the first timing time corresponding to the flow control rule may be determined, the interval time refers to an interval of each subsequent execution, the subsequent timing time corresponding to the flow control rule may be determined, the execution number refers to a number of times when the flow adjustment is performed based on the flow control rule, and the number of timing times corresponding to the flow control rule may be determined. In a specific case, if the execution is required to be always executed, the execution times can be set to be infinite. For example, if the first rule information of a certain flow control rule includes information of delay time, time interval, and execution times of 200s, 10s, and 100 times, respectively, it can be determined that after the first timing time of the timing task corresponding to the flow control rule is 200 seconds, each of the subsequent 10 seconds is a timing time, such as 210 seconds, 220 seconds … …, and the like, the total of 100 times is executed.
The flow value adjusted at each timing time may be determined by the second rule information, and may include, for example, an adjustment rule, an initial value, and the like. The adjustment rule is a calculation rule for adjusting the flow rate value at each timing time, and may be, for example, a rule related to time, a rule related to historical flow, or a binary dynamic parameter rule related to both time and historical flow. In practical scenarios, the adjustment rule may be expressed in a function expression related to time and/or historical flow, for example, 600+500 · sin (t/240 · 2 · pi) may represent a flow adjustment rule in a sine wave form related to time, last +50 may represent an adjustment rule in an incremental form related to historical flow (last adjusted flow value), and if (last > 50) the return 50 may represent an adjustment rule in a conditional decision form related to historical flow. The initial value may be used to set the flow value at the time of the first adjustment, and may be used in combination with a partial adjustment rule to complete the adjustment of the flow, for example, the initial value of the flow may be set to 50.
Therefore, the flow control rule comprises the first rule information and the second rule information, and the corresponding timing task can be analyzed.
And step S103, sending the timing task to a pressure applying device so that the pressure applying device outputs flow for pressure testing according to the flow information at a timing time. Because the flow control rules are mutually independent, corresponding timing tasks can be determined, each timing task is used for correspondingly adjusting the flow in the corresponding timing time, and a complex flow change scene can be simulated after the timing tasks are combined, so that the pressure test conforming to the actual scene is realized.
In some embodiments of the present application, when obtaining a plurality of flow control rules, an original rule input by a user may be obtained first, and then an orchestration task set may be obtained by parsing according to the original rule. The arrangement task set comprises a plurality of arrangement tasks which are independent from each other, and each arrangement task comprises a corresponding flow control rule. For example, the original rule R provided by the user may be in the form of a character string, and after the device obtains the character string, the device may obtain an arrangement task set by parsing the character string, where each arrangement task in the arrangement task set has a respective attribute. These attributes may represent the first rule information and the second rule information, thereby constituting a flow control rule for each orchestration task. For example, in the present embodiment, the orchestration task set obtained by parsing the original rule may include orchestration tasks r1, r2, and r3, each of which includes the following attributes: latency, interval, scheduling rules, number of executions, whether to execute forever, whether to reset, initialization values, etc.
Taking r1 as an example, the delay time is 10s, the interval time is 10s, the execution times is 5, and whether the execution is always performed is no, the arrangement rule is: last +10, if reset is true, the initialization value is 20, where the delay time, interval time, execution times, and whether to execute the first rule information that can constitute the flow control rule forever, and the scheduling rule, whether to reset, and the initialization value constitute the second rule information in the flow control rule. And the delay time in the attribute of the scheduling task r2 is 60s, the interval time is 10s, the execution times is 5, and whether the execution is always negative is determined as follows: last-10, if the reset is no, the initialization value is null; the delay time of the attribute of the orchestration task r3 is 110s, the interval time is 10s, the execution times is 5, and whether the execution is always yes or not, the orchestration rule is: last + t/10, if the reset is no, the initialization value is null. Therefore, based on the arrangement task set obtained by analyzing the original rule R, a total of 15 timing tasks can be determined, and the timing time corresponding to the timing tasks is respectively 10s, 20s, 30s, … …, 140s and 150 s. After the timing task is sent to the pressure applying device, the pressure applying device can output the flow rate for the pressure test at the timing time according to the flow rate information, and fig. 2 is a schematic diagram of the flow rate for the pressure test in this embodiment.
In an actual scenario, different scheduling task sets can be obtained according to different original rules R, wherein flow control information included in the scheduling tasks is also different, so that various different flow change situations can be combined, for example, fig. 3 to 6 are schematic diagrams of flow change situations simulated by using the scheme provided by the embodiment of the present application to implement flow scheduling during pressure testing, so that flow change scenarios including periodicity, impulse and other high correlation with time series can be simulated.
In some embodiments of the present application, the scheduling device generates a timing task according to the plurality of flow control rules, and then sends the timing task to the pressure applying device, so that the pressure applying device outputs a flow for pressure testing according to the flow information at a timing time. In a practical scenario, the dispatching device may generate timing tasks one by one or batch by batch and send the timing tasks to the pressure applying device for execution, so that a short-time high load caused by generating all timing tasks at the same time may be avoided in a complex scenario. In this embodiment, it may be determined whether a next timing time exists based on the current time, and when the next timing time exists, a first timing task corresponding to the next timing time may be generated according to the flow control rule, where the first timing task includes flow information of the next timing time. For example, taking the above-mentioned scheduling task set including scheduling tasks r1, r2, and r3 as an example, if the current time is the start time 9:00:00 of the current pressure test, it can be known that the next timing time is 9:00:10, and the flow value corresponding to the time is last + 10: 30, so that it can be determined that the first timing task t is to adjust the flow rate of the pressure test to 30 at 9:00: 10.
In this scenario, the scheduling device sends the first timing task to the pressure applying device after the next timing time of the first timing task is reached, so that the pressure applying device outputs a flow rate for pressure testing according to the flow rate information. After the scheduling device sends the first timing task to the pressure applying device, the pressure applying device may receive and process information included in the first timing task, and adjust the generated flow rate by the asynchronous pressure measurement engine at the next timing 9:00: 10. The scheduling device may continue to attempt to generate a new first timing task while sending the first timing task, that is, continue to determine whether a next timing time exists based on the current time (9:00:10), and when the next timing time exists (9:00:20), generate a first timing task t' corresponding to the next timing time according to the flow control rule, and repeat the above process until all timing tasks corresponding to the current flow scheduling are completed.
In other embodiments of the present application, besides generating and sending the timing tasks one by one, a plurality of timing tasks may be taken as one batch, so as to generate and send the timing tasks in batches. For example, three timing tasks t1, t2, t3 may be generated simultaneously at a time, and then when the preset time is reached, the following two operations are performed: firstly, sending timing tasks t1, t2 and t3 to a pressure applying device; and secondly, updating the timing tasks t1, t2 and t3 to be t1', t2' and t3' according to the flow control rule corresponding to the scheduling task. And then repeating the process until all timing tasks corresponding to the current flow scheduling are completed.
In addition, the embodiment of the application also provides a pressure test flow control method, which can provide a control interface for a user, and then acquire a pressure test task created by the user on the control interface and a plurality of input flow control rules related to the pressure test task.
The control interface can be used for a user to input a corresponding operation instruction so as to realize the creation of the stress test task and the input of relevant information about the stress test task.
For example, in an actual scenario, an input box for inputting a URL to be tested may be provided in the control interface, a task of performing a pressure test on the URL may be created by inputting the URL to be tested in the input box, an input area for inputting a flow control rule may be provided, a plurality of flow control rules may be input by a user in the input area, or a trigger button for directly searching for a preset flow control rule may be provided in the input area, so that the user may search for a preset default rule in a rule base without manually inputting the default rule by the user each time. It will be understood by those skilled in the art that the specific forms of the control interface described above are merely exemplary, and that other forms, whether now known or later developed based on similar principles, if applicable to the present application, are intended to be included within the scope of the present application and are hereby incorporated by reference.
The plurality of flow control rules can be used for generating a timing task, the timing task comprises flow information of timing time, the flow information can be provided for the pressure applying equipment to control the pressure applying equipment to output flow for pressure testing according to the flow information at the timing time, therefore, for a user, the pressure applying equipment can be controlled to simulate a complex scene with frequently changing flow according to the flow information only by inputting the plurality of flow control rules once when the pressure testing task is created so as to combine the timing task, and the pressure applying equipment can be controlled to conveniently realize the pressure testing according with the actual scene.
In an actual scenario, an execution subject of the pressure test flow control method may be a user equipment, or a device formed by integrating the user equipment and a network device through a network. The user equipment includes an input/output device for implementing interaction with a user, such as acquiring operation and instruction of the user, displaying an image, and the like. The part of the scheme related to data processing can be implemented locally in the user equipment, or can be implemented in the network equipment and provides the processing result to the user equipment through the network, and the part related to interaction is implemented only by the user equipment. The user equipment comprises but is not limited to various terminal equipment such as a computer, a mobile phone and a tablet computer; including but not limited to implementations such as a network host, a single network server, multiple sets of network servers, or a cloud-computing-based collection of computers. Here, the Cloud is made up of a large number of hosts or web servers based on Cloud Computing (Cloud Computing), which is a type of distributed Computing, one virtual computer consisting of a collection of loosely coupled computers.
Based on the same inventive concept, the embodiment of the application also provides a pressure test flow scheduling and controlling device, the corresponding method of the device is the pressure test flow scheduling and controlling method in the previous embodiment, and the principle of solving the problem is similar to the method.
The pressure test flow scheduling device provided by the embodiment of the application can acquire a plurality of flow control rules, then generates a timing task according to the flow control rules, and sends the timing task to the pressure applying device so as to enable the pressure applying device to output the flow for pressure test at the timing time according to the flow information.
In a practical scenario, the specific implementation of the apparatus may include, but is not limited to, implementations such as a network host, a single network server, multiple network server sets, or a cloud computing-based computer collection. Here, the Cloud is made up of a large number of hosts or web servers based on Cloud Computing (Cloud Computing), which is a type of distributed Computing, one virtual computer consisting of a collection of loosely coupled computers.
Fig. 7 shows a structure of a stress test traffic scheduling apparatus provided in an embodiment of the present application, where the apparatus includes a data obtaining module 710, a data processing module 720, and a data sending module 730. The data obtaining module 710 is configured to obtain a plurality of flow control rules; the data processing module 720 is configured to generate a timing task according to the plurality of flow control rules, where the timing task includes flow information of a timing time; the data sending module 730 is configured to send the timing task to the pressure applying device, so that the pressure applying device outputs a flow rate for pressure testing according to the flow rate information at a timing time.
The flow control rule contains relevant information for determining the flow rate of the pressure test performed by the pressure applying device at a specific time, for example, the flow control rule may be that the test flow rate is increased or decreased by a preset value at a specific time, or the flow rate is adjusted accordingly when the current flow rate satisfies what condition, etc.
The timing task can be provided for the pressure applying equipment, so that the pressure applying equipment is controlled to output the flow for pressure test at the timing time according to the flow information, and therefore for a user, only a plurality of flow control rules need to be input once when the pressure test task is created, so that the timing task is combined, the pressure applying equipment can be controlled to simulate a complex scene with frequently changed flow according to the flow information, and the pressure test conforming to an actual scene can be conveniently realized.
In some embodiments of the present application, the timing task generated by combining the plurality of flow control rules includes flow information of a timing time, the timing time being a time point determined based on the flow control rules at which an adjustment of the flow of the pressure test is required, and the flow information of the timing time being a flow value adjusted at the adjusted time point. For example, in the embodiment of the present application, a timing task t1 is to adjust the flow rate of the pressure test to 1000 at the time point of 16:30:20, so that the flow rate information of the included timing time is: 16:30:20, 1000, it is understood that the flow rate is set to 1000 at this point in time 16:30: 20.
In an actual scenario, the number of timing tasks that can be determined based on the flow control rule may be multiple, and thus the flow rate of the pressure test may be continuously adjusted for the timing time corresponding to the multiple timing tasks, so that a complex scenario in which the flow rate frequently changes is simulated. In some embodiments of the present application, each flow control rule includes at least first rule information for determining a timing time and second rule information for determining flow information.
The timing time required to adjust the flow may be determined by the first rule information, and may include, for example, a delay time, an interval time, an execution number, and the like, where the delay time refers to a time when the flow adjustment is first performed, the first timing time corresponding to the flow control rule may be determined, the interval time refers to an interval of each subsequent execution, the subsequent timing time corresponding to the flow control rule may be determined, the execution number refers to a number of times when the flow adjustment is performed based on the flow control rule, and the number of timing times corresponding to the flow control rule may be determined. In a specific case, if the execution is required to be always executed, the execution times can be set to be infinite. For example, if the first rule information of a certain flow control rule includes information of delay time, time interval, and execution times of 200s, 10s, and 100 times, respectively, it can be determined that after the first timing time of the timing task corresponding to the flow control rule is 200 seconds, each of the subsequent 10 seconds is a timing time, such as 210 seconds, 220 seconds … …, and the like, the total of 100 times is executed.
The flow value adjusted at each timing time may be determined by the second rule information, and may include, for example, an adjustment rule, an initial value, and the like. The adjustment rule is a calculation rule for adjusting the flow rate value at each timing time, and may be, for example, a rule related to time, a rule related to historical flow, or a binary dynamic parameter rule related to both time and historical flow. In practical scenarios, the adjustment rule may be expressed in a function expression related to time and/or historical flow, for example, 600+500 · sin (t/240 · 2 · pi) may represent a flow adjustment rule in a sine wave form related to time, last +50 may represent an adjustment rule in an incremental form related to historical flow (last adjusted flow value), and if (last > 50) the return 50 may represent an adjustment rule in a conditional decision form related to historical flow. The initial value may be used to set the flow value at the time of the first adjustment, and may be used in combination with a partial adjustment rule to complete the adjustment of the flow, for example, the initial value of the flow may be set to 50.
Therefore, the flow control rule comprises the first rule information and the second rule information, and the corresponding timing task can be analyzed.
Because the flow control rules are mutually independent, corresponding timing tasks can be determined, each timing task is used for correspondingly adjusting the flow in the corresponding timing time, and a complex flow change scene can be simulated after the timing tasks are combined, so that the pressure test conforming to the actual scene is realized.
In some embodiments of the present application, when obtaining a plurality of flow control rules, an original rule input by a user may be obtained first, and then an orchestration task set may be obtained by parsing according to the original rule. The arrangement task set comprises a plurality of arrangement tasks which are independent from each other, and each arrangement task comprises a corresponding flow control rule. For example, the original rule R provided by the user may be in the form of a character string, and after the device obtains the character string, the device may obtain an arrangement task set by parsing the character string, where each arrangement task in the arrangement task set has a respective attribute. These attributes may represent the first rule information and the second rule information, thereby constituting a flow control rule for each orchestration task. For example, in the present embodiment, the orchestration task set obtained by parsing the original rule may include orchestration tasks r1, r2, and r3, each of which includes the following attributes: latency, interval, scheduling rules, number of executions, whether to execute forever, whether to reset, initialization values, etc.
Taking r1 as an example, the delay time is 10s, the interval time is 10s, the execution times is 5, and whether the execution is always performed is no, the arrangement rule is: last +10, if reset is true, the initialization value is 20, where the delay time, interval time, execution times, and whether to execute the first rule information that can constitute the flow control rule forever, and the scheduling rule, whether to reset, and the initialization value constitute the second rule information in the flow control rule. And the delay time in the attribute of the scheduling task r2 is 60s, the interval time is 10s, the execution times is 5, and whether the execution is always negative is determined as follows: last-10, if the reset is no, the initialization value is null; the delay time of the attribute of the orchestration task r3 is 110s, the interval time is 10s, the execution times is 5, and whether the execution is always yes or not, the orchestration rule is: last + t/10, if the reset is no, the initialization value is null. Therefore, based on the arrangement task set obtained by analyzing the original rule R, a total of 15 timing tasks can be determined, and the timing time corresponding to the timing tasks is respectively 10s, 20s, 30s, … …, 140s and 150 s. After the timing task is sent to the pressure applying device, the pressure applying device can output the flow rate for the pressure test at the timing time according to the flow rate information, and fig. 2 is a schematic diagram of the flow rate for the pressure test in this embodiment.
In an actual scenario, different scheduling task sets can be obtained according to different original rules R, wherein flow control information included in the scheduling tasks is also different, so that various different flow change situations can be combined, for example, fig. 3 to 6 are schematic diagrams of flow change situations simulated by using the scheme provided by the embodiment of the present application to implement flow scheduling during pressure testing, so that flow change scenarios including periodicity, impulse and other high correlation with time series can be simulated.
In some embodiments of the present application, the scheduling device generates a timing task according to the plurality of flow control rules, and then sends the timing task to the pressure applying device, so that the pressure applying device outputs a flow for pressure testing according to the flow information at a timing time. In a practical scenario, the dispatching device may generate timing tasks one by one or batch by batch and send the timing tasks to the pressure applying device for execution, so that a short-time high load caused by generating all timing tasks at the same time may be avoided in a complex scenario. In this embodiment, the data processing module may determine whether there is a next timing time based on the current time, and when there is the next timing time, generate a first timing task corresponding to the next timing time according to the flow control rule, where the first timing task includes flow information of the next timing time. For example, taking the above-mentioned scheduling task set including scheduling tasks r1, r2, and r3 as an example, if the current time is the start time 9:00:00 of the current pressure test, it can be known that the next timing time is 9:00:10, and the flow value corresponding to the time is last + 10: 30, so that it can be determined that the first timing task t is to adjust the flow rate of the pressure test to 30 at 9:00: 10.
In this scenario, the data sending module of the scheduling device sends the first timing task to the pressure applying device after the next timing time of the first timing task is reached, so that the pressure applying device outputs a flow for pressure testing according to the flow information. After the scheduling device sends the first timing task to the pressure applying device, the pressure applying device may receive and process information included in the first timing task, and adjust the generated flow rate by the asynchronous pressure measurement engine at the next timing 9:00: 10. The scheduling device may continue to attempt to generate a new first timing task while sending the first timing task, that is, continue to determine whether a next timing time exists based on the current time (9:00:10), and when the next timing time exists (9:00:20), generate a first timing task t' corresponding to the next timing time according to the flow control rule, and repeat the above process until all timing tasks corresponding to the current flow scheduling are completed.
In other embodiments of the present application, besides generating and sending the timing tasks one by one, a plurality of timing tasks may be taken as one batch, so as to generate and send the timing tasks in batches. For example, three timing tasks t1, t2, t3 may be generated simultaneously at a time, and then when the preset time is reached, the following two operations are performed: firstly, sending timing tasks t1, t2 and t3 to a pressure applying device; and secondly, updating the timing tasks t1, t2 and t3 to be t1', t2' and t3' according to the flow control rule corresponding to the scheduling task. And then repeating the process until all timing tasks corresponding to the current flow scheduling are completed.
In addition, the embodiment of the application also provides a pressure test flow control device, which comprises an interaction module and a data acquisition module. The data acquisition module is used for providing a control interface for a user. The control interface can be used for a user to input a corresponding operation instruction so as to realize the creation of the stress test task and the input of relevant information about the stress test task. The data acquisition module is used for acquiring a pressure test task created by a user on the control interface and a plurality of flow control rules input by the user about the pressure test task.
The control interface can be used for a user to input a corresponding operation instruction so as to realize the creation of the stress test task and the input of relevant information about the stress test task.
For example, in an actual scenario, an input box for inputting a URL to be tested may be provided in the control interface, a task of performing a pressure test on the URL may be created by inputting the URL to be tested in the input box, an input area for inputting a flow control rule may be provided, a plurality of flow control rules may be input by a user in the input area, or a trigger button for directly searching for a preset flow control rule may be provided in the input area, so that the user may search for a preset default rule in a rule base without manually inputting the default rule by the user each time. It will be understood by those skilled in the art that the specific forms of the control interface described above are merely exemplary, and that other forms, whether now known or later developed based on similar principles, if applicable to the present application, are intended to be included within the scope of the present application and are hereby incorporated by reference.
The plurality of flow control rules can be used for generating a timing task, the timing task comprises flow information of timing time, the flow information can be provided for the pressure applying equipment to control the pressure applying equipment to output flow for pressure testing according to the flow information at the timing time, therefore, for a user, the pressure applying equipment can be controlled to simulate a complex scene with frequently changing flow according to the flow information only by inputting the plurality of flow control rules once when the pressure testing task is created so as to combine the timing task, and the pressure applying equipment can be controlled to conveniently realize the pressure testing according with the actual scene.
In a practical scenario, the control device may be a user device, or a device formed by integrating a user device and a network device through a network. The user equipment includes an input/output device for implementing interaction with a user, such as acquiring operation and instruction of the user, displaying an image, and the like. The part of the scheme related to data processing can be implemented locally in the user equipment, or can be implemented in the network equipment and provides the processing result to the user equipment through the network, and the part related to interaction is implemented only by the user equipment. The user equipment comprises but is not limited to various terminal equipment such as a computer, a mobile phone and a tablet computer; including but not limited to implementations such as a network host, a single network server, multiple sets of network servers, or a cloud-computing-based collection of computers. Here, the Cloud is made up of a large number of hosts or web servers based on Cloud Computing (Cloud Computing), which is a type of distributed Computing, one virtual computer consisting of a collection of loosely coupled computers.
Fig. 8 shows a schematic diagram of a pressure testing system, which includes a rule storage database 810, a scheduling platform 820, a pressure testing machine cluster 830, and a pressed service 840, where the rule storage database 810 is used to store an original rule, and the scheduling platform 820 is used to implement control and scheduling of pressure testing flow, and may include a control device that controls pressure testing flow and a scheduling device that implements flow scheduling provided in this embodiment of the present application, and a user may input the original rule by himself through a control interface provided by the control device, or may obtain the original rule from the rule storage database 810 through the control interface to complete input, where the original rule is a flow control rule, and may be used by the scheduling device to generate a timing task after analysis, and provide the timing task to the pressure testing machine cluster 830. The cluster 830 of pressure testers is a pressure applying device in this embodiment, and calls a pressure testing engine to adjust the generated flow rate according to the information in the timing task, and then sends a corresponding request to be processed to the pressed service 840 according to the required flow rate to apply a test pressure.
To sum up, in the pressure test flow scheduling scheme provided in the embodiment of the present application, a plurality of flow control rules may be obtained, and then a timing task is generated according to the plurality of flow control rules, and the timing task is sent to the pressure applying device, so that the pressure applying device outputs the flow for pressure test at the timing time according to the flow information.
The pressure test flow control scheme provided by the embodiment of the application can provide a control interface for a user, then obtains a pressure test task created by the user on the control interface and a plurality of input flow control rules related to the pressure test task, and because the flow control rules can be used for generating a timing task which contains flow information of timing time and is used for controlling the pressure applying equipment to output the flow for pressure test at the timing time according to the flow information, for the user, the pressure applying equipment can be controlled to simulate a complex scene with frequently changed flow according to the flow information by inputting the flow control rules at one time when the pressure test task is created so as to combine the timing task, thereby conveniently realizing the pressure test according with an actual scene.
In addition, some of the present application may be implemented as a computer program product, such as computer program instructions, which when executed by a computer, may invoke or provide methods and/or techniques in accordance with the present application through the operation of the computer. Program instructions which invoke the methods of the present application may be stored on a fixed or removable recording medium and/or transmitted via a data stream on a broadcast or other signal-bearing medium and/or stored within a working memory of a computer device operating in accordance with the program instructions. Some embodiments according to the present application include a computing device as shown in fig. 9, which includes one or more memories 910 storing computer-readable instructions and a processor 920 for executing the computer-readable instructions, wherein when the computer-readable instructions are executed by the processor, the device is caused to perform the method and/or the technical solution according to the embodiments of the present application.
Furthermore, some embodiments of the present application also provide a computer readable medium, on which computer program instructions are stored, the computer readable instructions being executable by a processor to implement the methods and/or aspects of the foregoing embodiments of the present application.
It should be noted that the present application may be implemented in software and/or a combination of software and hardware, for example, implemented using Application Specific Integrated Circuits (ASICs), general purpose computers or any other similar hardware devices. In some embodiments, the software programs of the present application may be executed by a processor to implement the above steps or functions. Likewise, the software programs (including associated data structures) of the present application may be stored in a computer readable recording medium, such as RAM memory, magnetic or optical drive or diskette and the like. Additionally, some of the steps or functions of the present application may be implemented in hardware, for example, as circuitry that cooperates with the processor to perform various steps or functions.
It will be evident to those skilled in the art that the present application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the apparatus claims may also be implemented by one unit or means in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.

Claims (14)

1. A pressure test flow scheduling method comprises the following steps:
acquiring a plurality of flow control rules;
generating a timing task according to the plurality of flow control rules, wherein the timing task comprises flow information of timing time;
and sending the timing task to a pressure applying device so that the pressure applying device outputs flow for pressure testing according to the flow information at a timing time.
2. The method of claim 1, wherein the flow control rule includes at least first rule information for determining a timing time and second rule information for determining flow information.
3. The method of claim 2, wherein the second rule information comprises time-related rules and/or historical traffic-related rules.
4. The method of claim 1, wherein obtaining a plurality of flow control rules comprises:
acquiring an original rule input by a user;
and analyzing according to the original rule to obtain a scheduling task set, wherein the scheduling task set comprises a plurality of scheduling tasks, and the scheduling tasks comprise flow control rules.
5. The method of claim 1, wherein generating a timed task according to the flow control rule, the timed task containing flow information for a timed time comprises:
judging whether the next timing time exists or not based on the current time, and generating a first timing task corresponding to the next timing time according to the flow control rule when the next timing time exists, wherein the first timing task comprises flow information of the next timing time;
sending the timing task to a pressure applying device so that the pressure applying device outputs flow for pressure testing according to the flow information at a timing time, wherein the timing task comprises the following steps:
and after the next timing time of the first timing task is reached, sending the next timing time of the first timing task to the pressure applying equipment so that the pressure applying equipment outputs the flow for pressure testing according to the flow information.
6. A pressure test flow control method, wherein the method comprises:
providing a control interface to a user;
the method comprises the steps of obtaining a pressure test task created by a user on a control interface and a plurality of input flow control rules related to the pressure test task, wherein the flow control rules are used for generating a timing task, and the timing task comprises flow information of timing time and is used for controlling pressure applying equipment to output flow for pressure test at the timing time according to the flow information.
7. A pressure test traffic scheduling apparatus, wherein the apparatus comprises:
the data acquisition module is used for acquiring a plurality of flow control rules;
the data processing module is used for generating a timing task according to the plurality of flow control rules, and the timing task comprises flow information of timing time;
and the data sending module is used for sending the timing task to the pressure applying equipment so as to enable the pressure applying equipment to output the flow for pressure testing at the timing time according to the flow information.
8. The apparatus of claim 7, wherein the flow control rule includes at least first rule information for determining a timing time and second rule information for determining flow information.
9. The device of claim 8, wherein the second rule information comprises a time-related rule and/or a historical traffic-related rule.
10. The apparatus of claim 7, wherein the data acquisition module is configured to acquire an original rule input by a user; and analyzing according to the original rule to obtain a scheduling task set, wherein the scheduling task set comprises a plurality of scheduling tasks, and the scheduling tasks comprise flow control rules.
11. The device according to claim 7, wherein the data processing module is configured to determine whether a next timing time exists based on a current time, and when the next timing time exists, generate a first timing task corresponding to the next timing time according to the flow control rule, where the first timing task includes flow information of the next timing time;
and the data sending module is used for sending the data to the pressure applying equipment after the next timing time of the first timing task is reached so as to enable the pressure applying equipment to output the flow for pressure testing according to the flow information.
12. A pressure test flow control device, wherein the device comprises:
the interaction module is used for providing a control interface for a user;
the data acquisition module is used for acquiring a pressure test task created by a user on the control interface and a plurality of input flow control rules related to the pressure test task, the flow control rules are used for generating a timing task, and the timing task contains flow information of timing time and is used for controlling the pressure applying equipment to output flow for pressure test at the timing time according to the flow information.
13. A computing device, wherein the device comprises a memory for storing computer program instructions and a processor for executing the computer program instructions, wherein the computer program instructions, when executed by the processor, trigger the device to perform the method of any of claims 1 to 6.
14. A computer readable medium having stored thereon computer program instructions executable by a processor to implement the method of any one of claims 1 to 6.
CN201910919570.3A 2019-09-26 2019-09-26 Pressure test flow scheduling method, pressure test flow control device and computer readable medium Pending CN112564996A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910919570.3A CN112564996A (en) 2019-09-26 2019-09-26 Pressure test flow scheduling method, pressure test flow control device and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910919570.3A CN112564996A (en) 2019-09-26 2019-09-26 Pressure test flow scheduling method, pressure test flow control device and computer readable medium

Publications (1)

Publication Number Publication Date
CN112564996A true CN112564996A (en) 2021-03-26

Family

ID=75030122

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910919570.3A Pending CN112564996A (en) 2019-09-26 2019-09-26 Pressure test flow scheduling method, pressure test flow control device and computer readable medium

Country Status (1)

Country Link
CN (1) CN112564996A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114124747A (en) * 2021-10-15 2022-03-01 微梦创科网络科技(中国)有限公司 Flow pressure measurement system
CN114584490A (en) * 2022-03-25 2022-06-03 阿里巴巴(中国)有限公司 Data transmission detection method and device
CN114124747B (en) * 2021-10-15 2024-04-30 微梦创科网络科技(中国)有限公司 Flow pressure measurement system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1842035A (en) * 2005-08-03 2006-10-04 中国移动通信集团公司 Data service performance testing method and apparatus based on mobile communication network
US20150178646A1 (en) * 2013-12-20 2015-06-25 Sas Institute Inc. Integrated stress testing framework system and method
CN105868097A (en) * 2015-01-22 2016-08-17 阿里巴巴集团控股有限公司 System testing method and apparatus thereof
CN107015892A (en) * 2017-03-30 2017-08-04 腾讯科技(深圳)有限公司 A kind of method for testing pressure, device and system
US20180034780A1 (en) * 2016-07-27 2018-02-01 International Business Machines Corporation Generation of asset data used in creating testing events
CN109726102A (en) * 2018-05-14 2019-05-07 网联清算有限公司 Flow pressure test method and device
CN109828912A (en) * 2018-12-26 2019-05-31 同盾控股有限公司 A kind of software method for testing pressure and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1842035A (en) * 2005-08-03 2006-10-04 中国移动通信集团公司 Data service performance testing method and apparatus based on mobile communication network
US20150178646A1 (en) * 2013-12-20 2015-06-25 Sas Institute Inc. Integrated stress testing framework system and method
CN105868097A (en) * 2015-01-22 2016-08-17 阿里巴巴集团控股有限公司 System testing method and apparatus thereof
US20180034780A1 (en) * 2016-07-27 2018-02-01 International Business Machines Corporation Generation of asset data used in creating testing events
CN107015892A (en) * 2017-03-30 2017-08-04 腾讯科技(深圳)有限公司 A kind of method for testing pressure, device and system
CN109726102A (en) * 2018-05-14 2019-05-07 网联清算有限公司 Flow pressure test method and device
CN109828912A (en) * 2018-12-26 2019-05-31 同盾控股有限公司 A kind of software method for testing pressure and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
M. SEAMAN; 3COM; A. SMITH; EXTREME NETWORKS; E. CRAWLEY; ARGON NETWORKS;J. WROCLAWSKI;MIT LCS;: "Integrated Service Mappings on IEEE 802 Networks", IETF, 31 August 1998 (1998-08-31) *
李军豪;陈焕英;: "视频监控系统压力测试的设计与实现", 制造业自动化, no. 06, 25 March 2011 (2011-03-25) *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114124747A (en) * 2021-10-15 2022-03-01 微梦创科网络科技(中国)有限公司 Flow pressure measurement system
CN114124747B (en) * 2021-10-15 2024-04-30 微梦创科网络科技(中国)有限公司 Flow pressure measurement system
CN114584490A (en) * 2022-03-25 2022-06-03 阿里巴巴(中国)有限公司 Data transmission detection method and device
CN114584490B (en) * 2022-03-25 2024-04-09 阿里巴巴(中国)有限公司 Data transmission detection method and device

Similar Documents

Publication Publication Date Title
CN108319547B (en) Test case generation method, device and system
CN106897206B (en) Service testing method and device
US10686891B2 (en) Migration of applications to a computing environment
CN109309596B (en) Pressure testing method and device and server
WO2019169725A1 (en) Test data generation method, device, and apparatus, and computer readable storage medium
CN110221959B (en) Application program testing method, device and computer readable medium
Bermbach et al. BenchFoundry: a benchmarking framework for cloud storage services
CN109284115A (en) A kind of method and device generating tracker script
CN107391528B (en) Front-end component dependent information searching method and equipment
CN110334012B (en) Risk assessment method and device
US20210133195A1 (en) Dynamic access paths
WO2017162028A1 (en) Method and device for simulating on-line pressure test
CN112199261A (en) Application program performance analysis method and device and electronic equipment
CN112564996A (en) Pressure test flow scheduling method, pressure test flow control device and computer readable medium
CN107395663B (en) Data acquisition method and device
CN112256984A (en) Method and device for acquiring interface background screenshot corresponding to webpage
CN110058996B (en) Program debugging method, device, equipment and storage medium
CN110909072B (en) Data table establishment method, device and equipment
CN110399287B (en) Coverage rate collection method and coverage rate collection device for application test
CN116069577A (en) Interface testing method, equipment and medium for RPC service
CN110968500A (en) Test case execution method and device
CN114168456A (en) Front-end performance automatic testing method based on 3D-GIS
CN110297625B (en) Application processing method and device
CN113282631A (en) Method and equipment for determining target user based on user portrait data
CN113760715A (en) Method and device for testing system

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